Cannot create COM object from ASP.NET (Creating an instance of the COM component with CLSID {} from the IClassFactory failed... error: 8007000e)
I have an API DLL which is a COM object. I’ve used this DLL in a Winforms application successfully. When I use it in ASP.NET application I get the E_OUTOFMEMORY error: “Creating an instance of the COM component with CLSID {} from the IClassFactory failed due to the following error: 8007000e”
when I create an instance of the COM object.
Although I don’t think it is a security issue, I’ve tried using windows authentication and also to give privileges to the ASPNET user with no use.
I don’t have the source code of the COM object. I'm using .NET Framework 3.5.
Thanks in advance, Sharon.开发者_如何学运维
Visual Studio / Tools / Error Lookup reveals:
"Not enough storage is available to complete this operation."
This isn't necessarily an OOM exception, I've had cases in serialization where deserializing the object size silently failed returning -1, and the subsequent allocation failed with an OOM exception (because usually (unsigned)-1 == all memory except one element).
After hours of investigation we found that the problem is in the API.
Thanks for everyone.
Sharon.
精彩评论