I have .Net 1.1 Application that works fine with the same dll, after redesigning application to 2.o Framework I have this error, I tried to compile it with /MT (this is C++ project in ANSI C, planned to be working on different platforms), but had no luck.
Even tryed to make dummy dll with function doing nothing - still didn't work. What can be problem and how to fix it?
I am getting the same error message. "The specified module could not be found. (Exception from HRESULT: 0x8007007E)" Just wondering if you found a solution to this problem. My problem is a little bit different. I compile a DLL under VS2003 (.NET 1.1) run
it on my development machine which is running VS2005 (.NET 2.0). My Web Application runs just fine using my DLL on my development machine. When I copy the web app to my production server i get the message above. The server is running windows 2000 server
with (.NET 2.0) intstalled.
I have the same problem with the only difference that the component that causes the problem is a third party component.
Got any clues why this only happens when deployed to server?
I use a WinXP Pro machine for development and there it works perfectly, but the production server running on Windows 2000 Standard Server refuses to work.
/Per Salmi
Per Salmi, Software Developer .NET Technologies PerSalmi.NET
We have received several feedback about this exception. So far they are related with native files (.dll or .lib) referenced by managed dll are not in the PATH.
Some suggestion here:
You need to figure out which managed dll, native dll and lib files are referenced by your application (directly or indirectly).
For managed dll, make sure they are in the web's bin folder.
For native dll and .lib files, check out whether those .dll and .lib files are in the PATH. If not, you can either copy them to there; or, you can put them into a folder and add that folder into the PATH. Then restart VS and IIS (command "iisreset") to make
sure the setting is picked up.
By the way, putting all of the files in the web's bin folder won't help. The reason is CLR copies the files into a temporary folder under framework directory and run the web there, but CLR only copies away managed dll (not the native ones), so you still
get "module not found" error.
I have reproduced this error using the following sample solution
1. Web1 references a managed c++ project say "MCpp1.dll". The project further references two unmanaged c++ projects with the output say "Lib1.lib" and "Lib2.lib"
2. If I copy all of those files into web's bin folder, I get the exception of "module not found error".
3. I create a folder say "C:\Lib" and copy "Lib1.lib" and "Lib2.lib" into it and add this folder into PATH. I restart VS, and also run "IISReset" since I have a IIS web
4. Open VS and request a page and it works now
You can also feel free to send me some sample webs demonstrating this issue at yugangw at microsoft dot com. I will be very happy to take a look and figure out the issues for you.
I have also contacted the CLR/Fusion team for suggestion of how to get the related module name when this exception happens, which should be very helpful to make diagnosis.
I have had this problem with two completely different projects using different components. Both actually was missing the "msvcr71.dll" that is not included in the .Net Framework 2.0 installation. So the explanation was correct
even if the detail info on the exact dll that was missing came from one of the component makers support people.
/Per Salmi
Per Salmi, Software Developer .NET Technologies PerSalmi.NET
After so much of headache, at last i was able to find a solution for my problem.
Solution is :-
"ABCpdfCE6.dll" (in BIN Folder) should have the Rights for "Read and Execute" for IIs User(IUSER) which can be given from Control Panel on a Shared Server.
Hope this helps for others also..
Bye and Take care and
HAPPY PROGRAMMING
Deepak Gupta
(Broadway Infotech Private Limited,Noida)
Website:www.broadwayinfotech.com.au
Email-deepak.gupta@broadwayinfotech.com.au
Web Design Software Development .net Development
sorvik
Member
45 Points
9 Posts
Unable to load DLL 'foo.dll': The specified module could not be found. (Exception from HRESULT: 0...
Nov 22, 2005 07:32 PM|LINK
garddawg
Member
5 Points
1 Post
Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception from HRESUL...
Dec 09, 2005 08:50 PM|LINK
persa
Participant
915 Points
144 Posts
Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception from HR...
Dec 14, 2005 05:48 PM|LINK
I have the same problem with the only difference that the component that causes the problem is a third party component.
Got any clues why this only happens when deployed to server?
I use a WinXP Pro machine for development and there it works perfectly, but the production server running on Windows 2000 Standard Server refuses to work.
/Per Salmi
PerSalmi.NET
YugangW
Participant
1149 Points
227 Posts
Microsoft
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Dec 16, 2005 12:20 AM|LINK
We have received several feedback about this exception. So far they are related with native files (.dll or .lib) referenced by managed dll are not in the PATH.
Some suggestion here:
You need to figure out which managed dll, native dll and lib files are referenced by your application (directly or indirectly).
For managed dll, make sure they are in the web's bin folder.
For native dll and .lib files, check out whether those .dll and .lib files are in the PATH. If not, you can either copy them to there; or, you can put them into a folder and add that folder into the PATH. Then restart VS and IIS (command "iisreset") to make sure the setting is picked up.
By the way, putting all of the files in the web's bin folder won't help. The reason is CLR copies the files into a temporary folder under framework directory and run the web there, but CLR only copies away managed dll (not the native ones), so you still get "module not found" error.
I have reproduced this error using the following sample solution
1. Web1 references a managed c++ project say "MCpp1.dll". The project further references two unmanaged c++ projects with the output say "Lib1.lib" and "Lib2.lib"
2. If I copy all of those files into web's bin folder, I get the exception of "module not found error".
3. I create a folder say "C:\Lib" and copy "Lib1.lib" and "Lib2.lib" into it and add this folder into PATH. I restart VS, and also run "IISReset" since I have a IIS web
4. Open VS and request a page and it works now
You can also feel free to send me some sample webs demonstrating this issue at yugangw at microsoft dot com. I will be very happy to take a look and figure out the issues for you.
I have also contacted the CLR/Fusion team for suggestion of how to get the related module name when this exception happens, which should be very helpful to make diagnosis.
Hope this helps
Yugang
persa
Participant
915 Points
144 Posts
Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception from HRESU...
Dec 16, 2005 11:08 AM|LINK
I have had this problem with two completely different projects using different components. Both actually was missing the "msvcr71.dll" that is not included in the .Net Framework 2.0 installation. So the explanation was correct even if the detail info on the exact dll that was missing came from one of the component makers support people.
/Per Salmi
PerSalmi.NET
MartinSmithh
Member
393 Points
104 Posts
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Mar 16, 2006 12:10 PM|LINK
I too am having this issue.
What is the "PATH"?
Is this something in the solution file, web config file, assembly a specific folder on the machine or something different?
If you don't know the answer already this reply is no help at all.
Searching for "Path" in the help yields far too many irrelevant results.
Is there a KB on this?
MartinSmithh
Member
393 Points
104 Posts
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Mar 16, 2006 12:26 PM|LINK
As an addition to my previous post I now realise that you are on about the PATH environment variable.
Hopefully this will help someone else finding this page through Google
deepakleo200...
Member
138 Points
92 Posts
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Jan 07, 2008 08:42 AM|LINK
Hi Friends
After so much of headache, at last i was able to find a solution for my problem.
Solution is :-
"ABCpdfCE6.dll" (in BIN Folder) should have the Rights for "Read and Execute" for IIs User(IUSER) which can be given from Control Panel on a Shared Server.
Hope this helps for others also..
Bye and Take care and
HAPPY PROGRAMMING
(Broadway Infotech Private Limited,Noida)
Website:www.broadwayinfotech.com.au
Email-deepak.gupta@broadwayinfotech.com.au
Web Design Software Development .net Development
cam11970
Member
2 Points
1 Post
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Feb 11, 2009 06:22 PM|LINK
Thanks Yugang. I added the third party dll to the class path. restarted the VS and I am off and running.
manjunath_s@...
Member
52 Points
15 Posts
Re: Sv: Re: Unable to load DLL 'foo.dll': The specified module could not be found. (Exception fro...
Apr 07, 2009 06:17 AM|LINK
Thanks.
I added the path to the envronment variables and it worked.