无法从 C# 代码访问 GAC

发布于 2024-09-25 23:06:23 字数 371 浏览 0 评论 0原文

我安装并注册了一个第三方 .net DLL,它出现在 GAC (c:\windows\Assembly) 中。我能够在开发和测试环境中成功访问 GAL,但无法在生产环境中访问。

我的Web服务是用C#.Net、.Net 2.0框架编写的。我只能假设问题发生在调用 Assembly.LoadWithPartialName() 的行中

我的开发环境是 Windows XP Pro;测试是Windows Server 2003;生产是Windows Server 2003。测试和生产之间的唯一区别是生产是通过https 运行的,而测试是在http 上运行的。是否有可能存在其他权限错误?

我什至尝试过将 DLL 导入到项目中,但没有成功。

非常感谢任何帮助或见解!

I have a third-party .net DLL that I installed and registered, and appears in the GAC (c:\windows\assembly). I am able to successfully access the GAL in my development and my test environments, but not in production.

My web service is written in C#.Net, .Net 2.0 framework. I can only assume that the problem occurs during the line where Assembly.LoadWithPartialName() is called

My development environment is Windows XP Pro; test is Windows Server 2003; and production is Windows Server 2003. The only difference between test and production is that production is running over https, whereas test is in http. Is it possible that there is some other permissions error?

I've even tried importing the DLL into the project, but with no luck of success.

Any help or insight is much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

行至春深 2024-10-02 23:06:23

好的,这里是:由于服务器上的某种原因,当我安装该组件时,它作为“服务器应用程序”而不是“库应用程序”运行

管理工具 -->组件服务
控制台根目录 -->组件服务 -->计算机 -->我的电脑 --> COM+ 应用程序

右键单击​​相关实用程序,然后选择属性。激活下,选择库应用;然后重新启动。

Ok, here it is: for some reason on the server, when I installed the component, it was running as a "Server application" instead of a "library application"

Administrative Tools --> Component Services
Console Root --> Component Services --> Computers --> My Computer --> COM+ Applications

Right click the utility in question, and select properties. Under activation, select library application; then restart.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文