Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM wrapper issues
Message
From
11/08/2011 13:00:01
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
COM wrapper issues
Environment versions
Environment:
ASP.NET
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01520727
Message ID:
01520727
Views:
104
Ok, I'm stumped.

Years ago, I created a COM EXE which is called from my ASP.NET app to generate documents to PDF files. The COM object has been working perfectly for years, and still does. Recently the company was acquired and we're trying to move the web site to a different server. On the new server, the COM object can be initialized from my code-behind, but calls to any of it's methods results in a COM exception error:

Exception type: COMException
Exception message: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

I'm able to instantiate the object and generate the PDF files on the same box using a simple CreateObject(). I'm also able to generate them directly from a simple ASP page using:
         dim objCustomer
         dim strCustomerName
         dim cFile

         set objCustomer = server.createobject("btwcom.BTWReports")
         cFile = objCustomer.GenerateInvoice("123456")

         Response.Write cFile
The credentials the object runs under are the same as the rest of the web site. It's as if the COM wrapper referenced in the code behind does not know how to handle the method calls. Does anyone have an idea of why method calls would just stop working?

Any ideas would be GREATLY appreciated - I'm stuck!

Thanks!
~Erik Folley
Next
Reply
Map
View

Click here to load this message in the networking platform