Hello,
I have a website that uses an ASP.NET 2.0 front end (.ASPX pages) and a set of custom VB6 DLL to handle database communication and data processing. The website was originally an ASP Classic front end however we are working to slowly convert it.
When working locally from my PC in IIS 7.5 (Windows 7 32-bit) the site has no issues using the VB6 com objects (with interop in between). However when I set up the site in the exact same way on our server (Windows Server 2008 64-bit) any call to a routine in the VB6 com objects results in the below error:
Exception Details: System.Runtime.InteropServices.COMException: Invalid procedure call or argument
Anyone know what could be causing this?
I have confirmed all permissions to the website directory and the com objects are working. Using the same app ID to run an ASP Classic website calling the same com objects works fine. The application pool setting Enable 32-bit Applications is set to True. The objects are created successfully and I can see them spin up in w3wp.
Code example:
Line 7: Dim gSec As Blue.ASPSecurity = New Blue.ASPSecurity
Line 8: If gSec.Authenticated Then
Error on Line 8.