.NET Forum / .NET Framework / New Users / August 2007
FileNotFoundException when loading a dll I think is really there
|
|
Thread rating:  |
Zachary Hilbun - 28 Aug 2007 03:38 GMT I've just converted a C# app (see my Visual Studio information below) to a 3D API (OSG) using the OsgDotNet C# to C++ wrappers. When I tried to run it the first time I got a FileNotFoundException (see below). The exception is thrown in main when it tries to create the first Form. I can't figure out why this exception is occuring. I have all the Osg and Osg.NET dll's copied into my Debug directory and the Osg.NET dll's are Referenced in my project. The Osg.NET dll's wrap the Osg C++ dll's.
Using an app named FileMon I can watch my app try to load the dll's. I thought I would see it try to reference a dll that was not on my computer, but it all looks normal to me. It doesn't find *2.Manifest and *2.Config but I think that might be normal. I see the following sequence (the full trace is at the end of the email):
Access Osg.NET.dll a few times Look for Osg.NET.INI, which it does not find. Access Osg.NET.dll a few times Look for Osg.NET.dll.2.Manifest which it does not find Look for Osg.NET.dll.2.Config which it does not find Access osg.dll a few times Access Osg.NET.dll a few times
The exception message VVVVVVVVVVVVVVVVVVV
System.IO.FileNotFoundException was unhandled Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)" Source="Pistol Drills" StackTrace: at Drills.Form1..ctor() at Drills.Form1.Main() in C:\Users\ZacharyH\C\Drills\Main.cs:line 587 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback allback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Visual Studio Information VVVVVVVVVVVVV
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727
Installed Edition: Professional
Microsoft Visual C# 2005 77626-009-0370515-41939 Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-0370515-41939 Microsoft Visual C++ 2005
Microsoft Visual Web Developer 2005 77626-009-0370515-41939 Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 2005 77626-009-0370515-41939 Microsoft Web Application Projects 2005 Version 8.0.50727.762
Crystal Reports AAC60-G0CSA4B-V7000AY Crystal Reports for Visual Studio 2005
DirectX extensions for Visual Studio DirectX extensions for Visual Studio .NET
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601) This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this service pack will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/926601
The full Filemon trace VVVVVVVVVVVVVVVVVVVVVVVVVVVVvv
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\SymNeti.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Attributes:_N_Options:_Open
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Size:_5836800
IRP_MJ_CLEANUP____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CLOSE_____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Attributes:_N_Options:_Open
IRP_MJ_QUERY_VOLUME_INFORMATION__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____FileFsVolumeInformation
IRP_MJ_QUERY_INFORMATION____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____BUFFER_OVERFLOW____FileAllInformation
IRP_MJ_QUERY_VOLUME_INFORMATION__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____FileFsVolumeInformation
IRP_MJ_QUERY_INFORMATION____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____BUFFER_OVERFLOW____FileAllInformation
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Size:_5836800
IRP_MJ_CLEANUP____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CLOSE_____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS____Attributes:_Any_Options:_Open
IRP_MJ_CLEANUP____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CLOSE_____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll.2.Manifest____FILE_NOT_FOUND____Attributes:_Any_Options:_Open
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll.2.Config____FILE_NOT_FOUND____Attributes:_Any_Options:_Open
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\Users\ZH\C\Drills\bin\Debug\osg.dll____SUCCESS____Attributes:_Any_Options:_Open
IRP_MJ_CLEANUP____C:\Users\ZH\C\Drills\bin\Debug\osg.dll____SUCCESS
IRP_MJ_CLOSE_____C:\Users\ZH\C\Drills\bin\Debug\osg.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CLEANUP____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CLOSE_____C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\cscompee.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS____Size:_1003520
IRP_MJ_CLEANUP____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS____Attributes:_Any_Options:_Open
IRP_MJ_CLEANUP____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS____Size:_1003520
FASTIO_QUERY_OPEN__C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\c86724b99cb7eb7830f5c29bf2e5133e\System.Configuration.ni.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
IRP_MJ_READ*____C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Data\f14f04e0c720fda570787859c2571ad1\System.Data.ni.dll____SUCCESS____Offset:_2273280_Length:_28672
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS____Attributes:_Any_Options:_Open
CLOSE_________C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS____Size:_547840
IRP_MJ_CLEANUP____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS____Attributes:_Any_Options:_Open
IRP_MJ_CLEANUP____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll.2.Manifest____FILE_NOT_FOUND____Attributes:_Any_Options:_Open
IRP_MJ_CREATE____C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll.2.Config____FILE_NOT_FOUND____Attributes:_Any_Options:_Open
FASTIO_QUERY_OPEN__C:\Users\ZH\C\Drills\bin\Debug\Osg.NET.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Attributes:_N_Options:_Open
CLOSE_________C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS
FASTIO_READ______C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Offset:_0_Length:_4096
FASTIO_READ______C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Offset:_128_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Offset:_376_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Offset:_3944444_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS____Offset:_3944472_Length:_512
IRP_MJ_CLEANUP____C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0_b77a5c561934e089\mscorlib.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Attributes:_N_Options:_Open
IRP_MJ_READ_____C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Offset:_0_Length:_4096
CLOSE_________C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS
FASTIO_READ______C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Offset:_128_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Offset:_376_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Offset:_31160_Length:_512
FASTIO_READ______C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS____Offset:_31188_Length:_512
IRP_MJ_CLEANUP____C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0_b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\Program_Files\Microsoft_Visual_Studio_8\Common7\Packages\Debugger\1033\vsdebugui.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
FASTIO_QUERY_OPEN__C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CREATE____C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Attributes:_Any_Options:_Open
FASTIO_QUERY_STANDARD_INFO__C:\WINDOWS\system32\Msimtf.dll____SUCCESS____Size:_159232
IRP_MJ_CLEANUP____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
IRP_MJ_CLOSE_____C:\WINDOWS\system32\Msimtf.dll____SUCCESS
=================================================== Zachary Hilbun Software Consultant http://www.vianova.com Via Nova OpenGL, Open Inventor 3D products, Windows 95/NT Dallas, Texas VC++, C#, embedded systems, VxD's 1977 SSII SRX31185 http://www.inlocalarea.com for gun information
Vadym Stetsiak - 28 Aug 2007 09:29 GMT Hello, Zachary!
To trace what modules are being loaded by your application you can use Fusion Log Viewer For more details here http://msdn2.microsoft.com/en-us/library/e74a18c4(vs.71).aspx
-- With best regards, Vadym Stetsiak. Blog: http://vadmyst.blogspot.com
You wrote on Mon, 27 Aug 2007 21:38:27 -0500:
ZH> I've just converted a C# app (see my Visual Studio information ZH> below) to a 3D API (OSG) using the OsgDotNet C# to C++ wrappers. ZH> When I tried to run it the first time I got a ZH> FileNotFoundException (see below). The exception is thrown in main ZH> when it tries to create the first Form. I can't figure out why ZH> this exception is occuring. I have all the Osg and Osg.NET dll's ZH> copied into my Debug directory and the Osg.NET dll's are Referenced ZH> in my project. ZH> The Osg.NET dll's wrap the Osg C++ dll's.
ZH> Using an app named FileMon I can watch my app try to load the dll's. ZH> I thought I would see it try to reference a dll that was not on my ZH> computer, but it all looks normal to me. It doesn't find ZH> *2.Manifest and *2.Config but ZH> I think that might be normal. I see the following sequence (the ZH> full trace is at the end of the email):
ZH> Access Osg.NET.dll a few times ZH> Look for Osg.NET.INI, which it does not find. ZH> Access Osg.NET.dll a few times ZH> Look for Osg.NET.dll.2.Manifest which it does not find ZH> Look for Osg.NET.dll.2.Config which it does not find ZH> Access osg.dll a few times ZH> Access Osg.NET.dll a few times
ZH> The exception message VVVVVVVVVVVVVVVVVVV
ZH> System.IO.FileNotFoundException was unhandled Message="The ZH> specified module could not be found. ZH> (Exception from HRESULT: 0x8007007E)" ZH> Source="Pistol Drills" ZH> StackTrace: ZH> at Drills.Form1..ctor() ZH> at Drills.Form1.Main() in ZH> C:\Users\ZacharyH\C\Drills\Main.cs:line 587 at ZH> System.AppDomain.nExecuteAssembly(Assembly assembly, String[] ZH> args) ZH> at System.AppDomain.ExecuteAssembly(String assemblyFile, ZH> Evidence assemblySecurity, String[] args) ZH> at ZH> Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() ZH> at System.Threading.ThreadHelper.ThreadStart_Context(Object ZH> state) ZH> at System.Threading.ExecutionContext.Run(ExecutionContext ZH> executionContext, ContextCallback allback, Object state) ZH> at System.Threading.ThreadHelper.ThreadStart()
Zachary Hilbun - 30 Aug 2007 02:00 GMT I ran Fusion Log Viewer and got the 2 logs below. The documentation is pretty skimpy on how to use Fusion Log Viewer so I just guessed on how to set it up. The Osg dll's are the ones that I suspect are the problem.
This is #1 log entry VVVVVVVVVVVVVVVVVVVVVVVVv
Log Bind Failures To Disk Default Location Default Log Category
*** Assembly Binder Log Entry (8/28/2007 @ 7:42:00 PM) ***
The operation was successful. Bind result: hr = 0x0. The operation completed successfully.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Users\ZacharyH\C\Drills\bin\Debug\Drills.vshost.exe --- A detailed error log follows.
=== Pre-bind state information === LOG: User = HILBUN\ZacharyH LOG: DisplayName = Osg.NET, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///C:/Users/ZacharyH/C/Drills/bin/Debug/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = Drills.vshost.exe Calling assembly : Drills, Version=1.0.2794.31215, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: No application configuration file found. LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Users/ZacharyH/C/Drills/bin/Debug/Osg.NET.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\Users\ZacharyH\C\Drills\bin\Debug\Osg.NET.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: Osg.NET, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null LOG: Binding succeeds. Returns assembly from C:\Users\ZacharyH\C\Drills\bin\Debug\Osg.NET.dll. LOG: Assembly is loaded in default load context.
This is #2 log entry VVVVVVVVVVVVVVVVVVVVVVVVv
Log Bind Failures To Disk Default Location Native Image Log Category
*** Assembly Binder Log Entry (8/28/2007 @ 7:42:00 PM) ***
The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Users\ZacharyH\C\Drills\bin\Debug\Drills.vshost.exe --- A detailed error log follows.
=== Pre-bind state information === LOG: User = HILBUN\ZacharyH LOG: DisplayName = Osg.NET, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///C:/Users/ZacharyH/C/Drills/bin/Debug/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = Drills.vshost.exe Calling assembly : Drills, Version=1.0.2794.31215, Culture=neutral, PublicKeyToken=null. === LOG: Start binding of native image Osg.NET, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null. WRN: No matching native image found.
 Signature =================================================== Zachary Hilbun Software Consultant http://www.vianova.com Via Nova OpenGL, Open Inventor 3D products, Windows 95/NT Dallas, Texas VC++, C#, embedded systems, VxD's 1977 SSII SRX31185 http://www.inlocalarea.com for gun information
> Hello, Zachary! > [quoted text clipped - 55 lines] > ZH> executionContext, ContextCallback allback, Object state) > ZH> at System.Threading.ThreadHelper.ThreadStart() Vadym Stetsiak - 30 Aug 2007 09:35 GMT Hello, Zachary!
Did you launched application twice and thus got to logs?
Also you can try to include assemblyBinding configuration into application config file. More details about this config setting - http://msdn2.microsoft.com/en-us/library/twy1dw1e.aspx
You wrote on Wed, 29 Aug 2007 20:00:01 -0500:
ZH> I ran Fusion Log Viewer and got the 2 logs below. The documentation ZH> is pretty skimpy on how to use Fusion Log Viewer so I just guessed ZH> on how to set it up. The Osg dll's are the ones that I suspect are ZH> the problem.
ZH> This is #1 log entry VVVVVVVVVVVVVVVVVVVVVVVVv
ZH> Log Bind Failures To Disk ZH> Default Location ZH> Default Log Category
ZH> *** Assembly Binder Log Entry (8/28/2007 @ 7:42:00 PM) ***
ZH> The operation was successful. ZH> Bind result: hr = 0x0. The operation completed successfully.
ZH> Assembly manager loaded from: ZH> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll ZH> Running under executable ZH> C:\Users\ZacharyH\C\Drills\bin\Debug\Drills.vshost.exe --- A ZH> detailed error log follows.
ZH> === Pre-bind state information === ZH> LOG: User = HILBUN\ZacharyH ZH> LOG: DisplayName = Osg.NET, Version=0.8.1.0, Culture=neutral, ZH> PublicKeyToken=null (Fully-specified) ZH> LOG: Appbase = file:///C:/Users/ZacharyH/C/Drills/bin/Debug/ ZH> LOG: Initial PrivatePath = NULL ZH> LOG: Dynamic Base = NULL ZH> LOG: Cache Base = NULL ZH> LOG: AppName = Drills.vshost.exe ZH> Calling assembly : Drills, Version=1.0.2794.31215, Culture=neutral, ZH> PublicKeyToken=null. ZH> === ZH> LOG: This bind starts in default load context. ZH> LOG: No application configuration file found. ZH> LOG: Using machine configuration file from ZH> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. ZH> LOG: Policy not being applied to reference at this time (private, ZH> custom, partial, or location-based assembly bind). ZH> LOG: Attempting download of new URL ZH> file:///C:/Users/ZacharyH/C/Drills/bin/Debug/Osg.NET.DLL. ZH> LOG: Assembly download was successful. Attempting setup of file: ZH> C:\Users\ZacharyH\C\Drills\bin\Debug\Osg.NET.dll ZH> LOG: Entering run-from-source setup phase. ZH> LOG: Assembly Name is: Osg.NET, Version=0.8.1.0, Culture=neutral, ZH> PublicKeyToken=null ZH> LOG: Binding succeeds. Returns assembly from ZH> C:\Users\ZacharyH\C\Drills\bin\Debug\Osg.NET.dll. ZH> LOG: Assembly is loaded in default load context.
ZH> This is #2 log entry VVVVVVVVVVVVVVVVVVVVVVVVv
ZH> Log Bind Failures To Disk ZH> Default Location ZH> Native Image Log Category
ZH> *** Assembly Binder Log Entry (8/28/2007 @ 7:42:00 PM) ***
ZH> The operation failed. ZH> Bind result: hr = 0x80070002. The system cannot find the file ZH> specified.
ZH> Assembly manager loaded from: ZH> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll ZH> Running under executable ZH> C:\Users\ZacharyH\C\Drills\bin\Debug\Drills.vshost.exe --- A ZH> detailed error log follows.
ZH> === Pre-bind state information === ZH> LOG: User = HILBUN\ZacharyH ZH> LOG: DisplayName = Osg.NET, Version=0.8.1.0, Culture=neutral, ZH> PublicKeyToken=null (Fully-specified) ZH> LOG: Appbase = file:///C:/Users/ZacharyH/C/Drills/bin/Debug/ ZH> LOG: Initial PrivatePath = NULL ZH> LOG: Dynamic Base = NULL ZH> LOG: Cache Base = NULL ZH> LOG: AppName = Drills.vshost.exe ZH> Calling assembly : Drills, Version=1.0.2794.31215, Culture=neutral, ZH> PublicKeyToken=null. ZH> === ZH> LOG: Start binding of native image Osg.NET, Version=0.8.1.0, ZH> Culture=neutral, PublicKeyToken=null. ZH> WRN: No matching native image found.
ZH> -- ZH> =================================================== ZH> Zachary Hilbun ZH> Software Consultant http://www.vianova.com ZH> Via Nova OpenGL, Open Inventor 3D products, Windows 95/NT ZH> Dallas, Texas VC++, C#, embedded systems, VxD's 1977 SSII ZH> SRX31185 http://www.inlocalarea.com for gun information
ZH> "Vadym Stetsiak" <vadmyst@gmail.com> wrote in message ZH> news:%23bdW%230U6HHA.1212@TK2MSFTNGP05.phx.gbl...
>> Hello, Zachary!
>> To trace what modules are being loaded by your application you can >> use >> Fusion Log Viewer >> For more details here >> http://msdn2.microsoft.com/en-us/library/e74a18c4(vs.71).aspx
>> -- >> With best regards, Vadym Stetsiak. >> Blog: http://vadmyst.blogspot.com
>> You wrote on Mon, 27 Aug 2007 21:38:27 -0500: ZH>>> I've just converted a C# app (see my Visual Studio information ZH>>> below) to a 3D API (OSG) using the OsgDotNet C# to C++ wrappers. ZH>>> When I tried to run it the first time I got a ZH>>> FileNotFoundException (see below). The exception is thrown in ZH>>> main when it tries to create the first Form. I can't figure out ZH>>> why this exception is occuring. I have all the Osg and Osg.NET ZH>>> dll's copied into my Debug directory and the Osg.NET dll's are ZH>>> Referenced in my project. ZH>>> The Osg.NET dll's wrap the Osg C++ dll's.
ZH>>> Using an app named FileMon I can watch my app try to load the ZH>>> dll's. ZH>>> I thought I would see it try to reference a dll that was not on ZH>>> my computer, but it all looks normal to me. It doesn't find ZH>>> *2.Manifest and *2.Config but ZH>>> I think that might be normal. I see the following sequence (the ZH>>> full trace is at the end of the email):
ZH>>> Access Osg.NET.dll a few times ZH>>> Look for Osg.NET.INI, which it does not find. ZH>>> Access Osg.NET.dll a few times ZH>>> Look for Osg.NET.dll.2.Manifest which it does not find ZH>>> Look for Osg.NET.dll.2.Config which it does not find ZH>>> Access osg.dll a few times ZH>>> Access Osg.NET.dll a few times
ZH>>> The exception message VVVVVVVVVVVVVVVVVVV
ZH>>> System.IO.FileNotFoundException was unhandled Message="The ZH>>> specified module could not be found. ZH>>> (Exception from HRESULT: 0x8007007E)" ZH>>> Source="Pistol Drills" ZH>>> StackTrace: ZH>>> at Drills.Form1..ctor() ZH>>> at Drills.Form1.Main() in ZH>>> C:\Users\ZacharyH\C\Drills\Main.cs:line 587 at ZH>>> System.AppDomain.nExecuteAssembly(Assembly assembly, String[] ZH>>> args) ZH>>> at System.AppDomain.ExecuteAssembly(String assemblyFile, ZH>>> Evidence assemblySecurity, String[] args) ZH>>> at ZH>>> Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() ZH>>> at System.Threading.ThreadHelper.ThreadStart_Context(Object ZH>>> state) ZH>>> at System.Threading.ExecutionContext.Run(ExecutionContext ZH>>> executionContext, ContextCallback allback, Object state) ZH>>> at System.Threading.ThreadHelper.ThreadStart()
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|