Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
See more:
Hi, I have a COM+ package which is on the server. I have used the following code in one of the components of the package to get the server culture name
C#
string serverCultureName = System.Threading.Thread.CurrentThread.CurrentCulture.Name;


If the COM+ application is running under System Account - Interactive user , above code returns "" which is Invariant Culture. But if the COM+ application is running under particular user account, the same code returns "en-US" which is correct. I want to get the same results regardless of the account under which the COM+ application is running. Can some one suggest me?

Thanks in advance

Raghu
Posted
Updated 9-Feb-11 23:55pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900