无法初始化 COM 对象

发布于 2024-11-30 14:03:51 字数 1711 浏览 0 评论 0原文

我使用 VB.NET 作为代码隐藏文件在 ASP.NET 中创建了一个 Web 应用程序。我正在使用 ProvideX.Script 类的 COM 对象连接到 Sage MAS90 ERP。在 Visual Studio 2010 中一切都工作正常。现在当我进入部署阶段时,问题就开始了......我在 Windows Server 2008 的 IIS7 中部署了我的应用程序。当我运行该应用程序时,出现以下异常... 这是我遇到异常的代码行...

Set oPVX = Server.CreateObject("ProvideX.Script")

我已授予 IUSR 和 IIS_USRS 帐户完全权限,但仍然得到这个错误。我还在 dcomcnfg.exe 中注册了 ProvideX OLE 服务器... 我不知道该怎么办...... plzzzzzzzzzzzzzzzzzzzz 帮助我,我必须在几天内提交该项目...

“/”应用程序中的服务器错误。

无法初始化 ProvideX 库

说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

异常详细信息:System.Runtime.InteropServices.COMException:无法初始化 ProvideX 库

源错误:

在执行当前 Web 请求期间生成未处理的异常。有关异常来源和位置的信息可以使用下面的异常堆栈跟踪来识别。

堆栈跟踪:

[COMException (0x80020009):无法初始化 ProvideX 库] Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(对象o,类型objType,字符串名称,对象[]参数,字符串[]参数名称,布尔[] CopyBack,布尔IgnoreReturn)+792 Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(对象实例,类型类型,字符串成员名称,对象[]参数,字符串[]参数名称,类型[]类型参数,布尔值[] CopyBack,布尔值IgnoreReturn)+182 _Default.btnEnter_Click(对象发送者,ImageClickEventArgs e)+457 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +113 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+5349

I have created a web application in ASP.NET using VB.NET as code behind file. I am using a COM object of ProvideX.Script class to connect to Sage MAS90 ERP. Everything was working fine in visual studio 2010. Now when I moved to the deployment phase, the problem gets started.... I deployed my application in Windows Server 2008 in IIS7. When I run the application I get the following exception...
This is the line of code where I get the exception...

Set oPVX = Server.CreateObject("ProvideX.Script")

I have given the full permissions to IUSR and IIS_USRS accounts, but still getting this error. Also I have registered the ProvideX OLE Server in dcomcnfg.exe ...
I have no ideas what to do..... plzzzzzzzzzzzzzzzzzzzz help me, I have to submit the project in few days...

Server Error in '/' Application.

Failed to initialize the ProvideX library

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Failed to initialize the ProvideX library

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80020009): Failed to initialize the ProvideX library]
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn) +792
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) +182
_Default.btnEnter_Click(Object sender, ImageClickEventArgs e) +457
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +113
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5349

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

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

发布评论

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

评论(2

皓月长歌 2024-12-07 14:03:51

您可能需要联系 ProvideX 人员。请参阅以下线程 - 看来您的问题可能需要某种激活:

http:// pvx.astecom.nl/show_bericht.php?topic=15804

You might want to contact the ProvideX people. See the following thread -- it appears your problem might require some kind of activation:

http://pvx.astecom.nl/show_bericht.php?topic=15804

如何视而不见 2024-12-07 14:03:51

当我遇到类似问题时,我在以下网站上详细介绍了必须执行的步骤。希望它有帮助。 http://www.tek-tips.com/viewthread.cfm ?qid=1640098&page=1

I detailed out the steps I had to go through on the following site when I had a simmilar issue. Hopefully it helps. http://www.tek-tips.com/viewthread.cfm?qid=1640098&page=1

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