如何从COM +包中查找服务器区域性信息

编程入门 行业动态 更新时间:2024-10-11 15:14:28
本文介绍了如何从COM +包中查找服务器区域性信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,我在服务器上有一个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 packageto 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

推荐答案

嗨Raghu,

Hi Raghu,

我们正在对此问题进行研究,可能需要一些时间才能反馈给您.

We are doing research on this issue, It may take some time to feed back to you.

更多推荐

如何从COM +包中查找服务器区域性信息

本文发布于:2023-11-12 12:56:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581556.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区域性   包中   服务器   信息

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!