使用网站激活 COM 对象在 Windows 2003 服务器中不起作用

发布于 2024-08-28 11:13:17 字数 488 浏览 1 评论 0原文

我一直在努力使用 ASP.NET Web 应用程序激活和启动 COM 对象。 aspx 网站有一个代码隐藏文件,其中包含对此 COM 对象(这是一个实际应用程序 - CAD 软件)的引用。当需要时,VB 代码创建(或启动)应用程序。

完整的设置可以在 Win-XP(32 位)环境中使用 Visual Studio 进行调试,也可以在外部用户访问网站时(通过 XP 中的 IIS 服务器)运行。但是,当同一应用程序托管在 Win-2003(32 位)IIS 服务器上时,它不会被激活。我收到“对象引用未设置到对象实例”错误。

我在 Win-XP 中设置的方式是在 DCOM 配置中授予 ASP 用户和 Internet 来宾用户对 COM 对象的权限,并且由于启用了 Windows 防火墙,因此我将 exe 文件(与 COM 对象关联)添加到例外中列表。对于Win-2003服务器的情况,我将网络服务权限添加到COM对象。但该设置似乎根本不起作用。

我不确定我缺少什么以及如何启动该应用程序。任何帮助将不胜感激。

I have been trying really hard to activate and launch a COM object using an ASP.NET web application. The aspx website has a code-behind file that has a reference to this COM object (which is an actual application - a CAD software). When required, the VB code creates (or launches) the application.

The complete set-up works in a Win-XP (32-bit) environment both under debugging using visual studio and when the website is accessed by an outside user (through IIS server in XP). But the same application doesn't get activated when it is hosted onto the Win-2003 (32-bit) IIS server. I get "Object reference not set to an instance of an object" error.

The way I have setup in Win-XP was to grant ASP user and Internet guest user permissions to the COM object in the DCOM Config and since the windows firewall is enabled, I add the exe file (associated with the COM object) to the exception list. For the case of Win-2003 server, I add the Network Service permission to the COM object. But the setup doesn't seem to work at all.

I am not sure what I am missing and how to get the application to launch. Any help will be greatly appreciated.

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

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

发布评论

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

评论(1

要走就滚别墨迹 2024-09-04 11:13:17

需要检查的几件事:

  • 确保您使用 ASPNET 用户,而不是旧的经典 ASP 用户
  • 另外,如果您还没有这样做,请将 ASPNET 用户和 NewtworkService 用户应用到 DCOM 配置中的启动和激活权限。

A Couple of things to check:

  • Make sure your'e using the ASPNET user, not the old classic ASP user
  • Also Apply the ASPNET user and NewtworkService User to the Launch and Activation Permisions in the DCOM Config if you haven't done so already.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文