I have rewritten a VB6 COM+ object using C# .Net. The object works as
expected and registers itself in COM+ on my PC, the development server and
even on the Test server. I did battle with this problem on the test server,
but it seemed to resolve itself. This problem however is not resolving itself
on the Production server.
The COM+ object chats with a 3rd party dll (Registered using Regsrv32) via
an Interop proxy dll. All are in the same folder. "<webApp>\b in"
Via a switch in the web.config file, I can set the application to use either
the VB6 or the .Net version. Both versions use the same 3rd party dll. The
VB6 version works. The .Net version throws the following exception:
1: Error Location:
http://logisonline.pwv.gov.za/logiso...ew-select.aspx
2: Error Source: PackRQ.Net
3: Error Trace:
4:
5: > System.IO.FileN otFoundExceptio n: File or assembly name
Interop.EXLORQT ypeLibrary, or one of its dependencies, was not found.
6: > at System.Web.UI.P age.ProcessRequ estMain()
7: > at System.Web.UI.C ontrol.LoadRecu rsive()
8: > at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
9: > at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
10: > at LogisOnline.Web Forms.rq_view_s elect.Page_Load (Object sender,
EventArgs e)
11: > at LogisOnline.Web Forms.Requisiti onForm.GetRequi sitionMVS(Strin g&
sAction)
12: > at LogisOnline.Bob .RQ.Requisition s.GenericExec(X mlDocument& xmldRQ)
13: > at PackRQ.Net.Pack EXLORQ.EXRQ01DR (String sXML)
14: > at
System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData& msgData,
Int32 type)
15: > at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.SyncProce ssMessage(IMess age
msg, Int32 methodPtr, Boolean fExecuteInConte xt) Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg)
16: > at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.PrivatePr ocessMessage(Me thodBase
mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInConte xt,
Object[]& outArgs)
17: > Server stack trace: at PackRQ.Net.Pack EXLORQ.EXRQ01DR (String sXML)
This is driving me nuts.
Steps that I have taken to date:
Step 1: I temporarily add the ASPNET user to the administrators group to get
the object registered in Component services.
Outcome: The component registers correctly but the above exception is thrown.
Step 2: I register the component using RegSvcs.
Outcome: The component registers correctly but the above exception is thrown.
Step 3: I rename the Interop.EXLORQT ypeLibrary.dll to
Interop.EXLORQT ypeLibrary.dll. old.
Outcome: The Exception is the same as above but only up to line 13.
Step 4: Renaming the 3rd party dll (EXLORQ.dll) has no effect.
Step 5: I tried registering the Interop.EXLORQT ypeLibrary.dll using RegAsm
to see if that would solve the error:
Outcome: same as above.
Step 6: Configured ASPNET registry permissions as stated in Article ID:
327507 (Q327507) in MSDN.
Outcome: Same as above.
Any help would be VERY MUCH Apreciated.