问题描述
您好,我在服务器上有一个COM +软件包.我已在软件包的组件之一中使用以下代码来获取服务器区域性名称
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. 线程 .CurrentThread.CurrentCulture.Name ;
string serverCultureName = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
如果COM +应用程序正在系统帐户-交互式用户"下运行,则上面的代码将返回".这是不变文化.但是,如果COM +应用程序以特定的用户帐户运行,则相同的代码将返回"en-US".哪个是对的.我想要 无论运行COM +应用程序的帐户如何,都可以获得相同的结果.有人可以建议我吗?
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?
预先感谢
Raghu
推荐答案
我们正在对此问题进行研究,可能需要一些时间才能反馈给您.
We are doing research on this issue, It may take some time to feed back to you.
这篇关于如何从COM +包中查找服务器区域性信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!