473,804 Members | 3,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM+ Dependancies: System.IO.FileN otFoundExceptio n

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.
Jul 21 '05 #1
4 2642
You haven't set your COM+ application to run out of process have you?

"W1ld0ne74" wrote:
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.

Jul 21 '05 #2
You haven't set your COM+ application to run out of process have you?

"W1ld0ne74" wrote:
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.

Jul 21 '05 #3
I set it to be a server component (which does run out of process) Why do you
ask though?

David

"James Mahoney" wrote:
You haven't set your COM+ application to run out of process have you?

"W1ld0ne74" wrote:
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.

Jul 21 '05 #4
By setting it up as a server component it gets run inside of DLLhost.exe.
Since this exists in windows\system3 2 instead of your bin folder .NET can't
find the interop file because it starts probing for assemblies from
windows\system3 2.

To get around this you'll have to add the interop files into the GAC (check
with the component vendor for their primary interop files...).

You might also be able to edit machine.config to tell .NET where to find
your components - never tried that though

James

"W1ld0ne74" wrote:
I set it to be a server component (which does run out of process) Why do you
ask though?

David

"James Mahoney" wrote:
You haven't set your COM+ application to run out of process have you?

"W1ld0ne74" wrote:
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.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14051
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All the workstations are DELLs running XP SP1a with the 1.1 .NET Framework. The following line of code generates an exception on the one PC: Dim oMac As New System.Management.ManagementClass("Win32_NetworkAdapterConfiguration") The error it...
1
6705
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new System.EnterpriseServices.ResourcePool(null); The exception I get for this line is System.IO.FileNotFoundException: The specified module could not be found.
2
2746
by: Scott Reynolds | last post by:
I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works well and I am very happy. However when I try and expose this via a web service I get a weird error saying that the dll could not be found. The specific error is: I can't figure it out. I thought it was to do with reflection but I am able to load and view the webservice definition which...
3
2081
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library XmlContent.cs When I run my aspx page, which has a codebehind that instantiates the object from in my assembly, I get the following error, anyone know why? File or assembly name System.Xml, or one of its dependencies, was not found.
2
2316
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its dependencies, was not found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
0
1998
by: Martinh | last post by:
Hi After invoking RetrieveData in a WebService I recieve the following response in a new window... I am running Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 on IIS6 on Server 2003 Enterprise. Does anybody has a working solution for me? Martin
3
1514
by: W1ld0ne74 | last post by:
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...
1
7150
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens the "System.IO.Move" goes in to a loop and keeps creating the file on the destination folder with a 0byte size and keeps entering the error in the log i have until someone stop the service. so what i cant figure out is since it catches the...
2
7956
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer. When someone else uses the web app and tries to open a file using the remote server the error below happens. any help? **Code** C# - filepath is a valid file name which is passed via the form. System.IO.BinaryReader br = new...
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.