English 中文(简体)
还可向ASP提供即时孔标。 NET MVC
原标题:Can t instantiate COM object from ASP.NET MVC app

正如标题所言,我要从一个行业协会那里传来一个商号。 NET MVC喜欢:

dynamic obj = Activator.CreateInstance(Type.GetTypeFromProgID(progID));

但它投下以下概念:

Retrieving the COM class factory for component with CLSID {16542E4F-4594-4B97-922D-BE9C478F93BB} failed due to the following error: 800aea5f Exception from HRESULT: 0x800AEA5F.

同一代码使用的是Winforms,有以下建筑组合:Platform:x86/code>和。 平台目标:x86

我将建筑配置与Winforms在我使用COM标语时对冲锋枪和组件的配制相同。

I m 采用Windows 7, IIS 7.5, ASP。 NET诉4.0 应用联营公司,共有32个Bit应用程序 真正的网站和网站都有一个用户,拥有排雷者的权利。

你们有哪些建议帮助解决这一问题?

最佳回答

3. 将申请库的违约用户配给一名有特别权利的用户

问题回答

@david.s I don t know how to add a screenshot as a comment, so I set it as an answer. As you already have all 32bit stuff set and the DLL can t be called it might be a permission problem.

Call dcomcnfg.exe and check the settings (sorry, only german server, but should work): enter image description here

在环境发生变化之后,你必须重新启用国际监测系统。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...