I have a simple ASP.NET test page that calls a method in a COM dll. When running from within Visual Studio, using Visual Studio's web server, things work fine. When I attempt to run the page outside of Visual Studio via IIS, the pagel errors with the HRESULT: 0x80020009 (DISP_E_EXCEPTION) error. The error occurs at the line of the COM method call.
I don't understand what's different when executing through IIS. The dll is registered, otherwise it wouldn't work within VS. I've tried copying the dll locally to my website's bin folder but that doesn't help.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer
Dim strUserid As Object
Dim strUserName As Object
strUserid = "DEMO"
strUserName = "PASSWORD"
mRMCom = New RMIFCLLib.Client
i = mRMCom.Logon("AUTOSTORE", strUserid, strUserName ) ' ERROR OCCURS HERE
Catch Ex As Exception
Me.Label1.Text = Ex.Message
i = mRMCom.GetFirstUserID(strUserid, strUserName)
While (i >= 0)
Me.ListBox1.Items.Add(strUserid & ", " & strUserName)
i = mRMCom.GetNextUserID(strUserid, strUserName)