Administrator can run a application but produces error while a administrator previllaged user can run without error

1

I have an application which can run as admin prevailed user without error but while administrator runs it it produces error. The input string was not in correct format-application error. I tried to figure it out but not possible, since most of the people are looking for admin privilege to run it, me looking why can't a admin run the program without errors? The program is related to mssql-2008 r2. The SQL log-in settings are same for both the users.

tough

Posted 2012-11-07T10:10:40.867

Reputation: 143

I would assume the program has to be run as administrator. Can you test by right clicking the application, properties and under compatibility check the Run as Administrator. I know this isn't answering you but I'm curious if it fixes it. – Dave – 2012-11-07T10:35:12.680

@DaveRook Thanks for the response. Sorry I did not mention that I am logged in as administrator and running it as administrator, it is a windows server 2003. – tough – 2012-11-07T10:42:52.043

Answers

3

Most likely, administrator and regular user have different regional settings. For example, user has numbers formatted as "1,234.56" and admin as "1 234,56".

You may check this by running powershell as admin and user and checking for differences in output of:

(123456).ToString("N")

[DateTime]::Now

Ivan Milyakov

Posted 2012-11-07T10:10:40.867

Reputation: 161

Thanks a lot, It seems you are right, yet to test, I will get as soon as I test it. – tough – 2012-11-07T11:04:56.370