Click here to Skip to main content
11,640,866 members (65,073 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: COM+ C#4.0 .NET4
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
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 9-Feb-11 23:13pm
Edited 9-Feb-11 23:55pm
(no name)182.5K
v2

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

  Print Answers RSS
0 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 203
3 Afzaal Ahmad Zeeshan 129
4 CPallini 125
0 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 125
4 Afzaal Ahmad Zeeshan 89


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 10 Feb 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100