<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx</link><description>So...you're seeing a FileNotFoundException, FileLoadException, BadImageFormatException or you suspect an assembly loading failure? Try the steps below to start your debugging process. First, get the Message property from the exception. If the exception's</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57121</link><pubDate>Fri, 13 Jun 2003 20:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57121</guid><dc:creator>Tomas Restrepo</dc:creator><description>Not related in any way to this specific post, Suzanne, but Welcome to the house! Have fun, and will look forward to reading your posts! :)</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57122</link><pubDate>Sat, 16 Aug 2003 09:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57122</guid><dc:creator>Robert</dc:creator><description>We I load a newly complied DLL for an ASP.NET application on the server the below is my problem. Do you know how to fix it?

For a “The located assembly's manifest definition with name [yourAssembly] does not match the assembly reference&amp;quot; message (for hresult FUSION_E_REF_DEF_MISMATCH, 0x80131040): 
The Fusion log will say which part of the assembly reference failed to match what was found. It will be the assembly name, culture, public key (or token), or version (if the found assembly was strongly-named). </description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57123</link><pubDate>Tue, 19 Aug 2003 00:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57123</guid><dc:creator>Suzanne</dc:creator><description>Robert: Yes, either change the reference so it matches the found assembly, or copy over the right assembly which matches the reference, so that it will be found instead. For example, if the Fusion log says that the version doesn't match, check against the found assembly's version. In that case, probably the problem is that you've recompiled that assembly with another version. So, then, you may want to update the referencing assembly so that it matches the new version, use config to redirect to the new version, or just not change assembly verson numbers between non-shipping builds (see &lt;A HREF="/suzcook/archive/2003/05/29/57148.aspx"&gt;http://blogs.msdn.com/suzcook/archive/2003/05/29/57148.aspx&lt;/A&gt; ).</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57124</link><pubDate>Thu, 02 Oct 2003 13:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57124</guid><dc:creator>Antony Perkov</dc:creator><description>Great post Suzanne.

Do you have any links to more information about fusion logs?  I was hoping to find something that explained a bit about what was going on for each line in the log.

For instance I have a log that ends:

LOG: Entering download cache setup phase.
ERR: Setup failed with hr = 0x80070005.
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

So I was hoping to find a description of what is going on during the &amp;quot;download cache setup phase&amp;quot;.</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57125</link><pubDate>Thu, 02 Oct 2003 21:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57125</guid><dc:creator>Suzanne Cook</dc:creator><description>From winerror.h:
//  Access is denied.
#define ERROR_ACCESS_DENIED              5L

See my original blog entry for debugging advice about this specific hresult.  See http://blogs.gotdotnet.com/alanshi/PermaLink.aspx/d3b8c7d9-b0c6-47fd-8ddf-20db971ba80d for more info about how Fusion has implemented the download cache.</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57126</link><pubDate>Fri, 07 Nov 2003 23:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57126</guid><dc:creator>Phil Pastor</dc:creator><description>Suzanne,

I have read a number of you rposts regarding using the fusion log to debug assembly loading issues, but I just can't get past this, and am hoping you may be able to shed a little light. 

This issue is regarding using the Microsoft.ApplicationBlocks.ExceptionManagement from the GAC for an ASP.NET application. My CustomPublisher is also in the GAC. I have a windows service that uses the same exception publishing assemblies, and it works beautifully. For whatever reason though, the ASP.NET application always fails. The interesting thing is that it does log the exception to the Windows Event log which means that it IS loading the assembly!!? Following are excerpts from various files to show you what I mean...

Web.Config:
	&amp;lt;configSections&amp;gt; 
		&amp;lt;section name=&amp;quot;exceptionManagement&amp;quot; 
			type=&amp;quot;Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,
			Microsoft.ApplicationBlocks.ExceptionManagement,
			version=1.0.1.0, culture=neutral, publicKeyToken=13da6d3f9482dd92&amp;quot;/&amp;gt;
	&amp;lt;/configSections&amp;gt;

	&amp;lt;exceptionManagement mode=&amp;quot;on&amp;quot;&amp;gt;
		&amp;lt;publisher 
			mode=&amp;quot;on&amp;quot; 
			assembly=&amp;quot;Brulant.Library.Exceptions,
			Version=1.0.1.1, Culture=neutral, PublicKeyToken=13da6d3f9482dd92&amp;quot;
			type=&amp;quot;Brulant.Library.Exceptions.BrulantDatabasePublisher&amp;quot;
			exclude=&amp;quot;&amp;quot; /&amp;gt;
		&amp;lt;publisher 
			mode=&amp;quot;on&amp;quot; 
			assembly=&amp;quot;Brulant.Library.Exceptions,
			Version=1.0.1.1, Culture=neutral, PublicKeyToken=13da6d3f9482dd92&amp;quot;
			type=&amp;quot;Brulant.Library.Exceptions.BrulantTextFilePublisher&amp;quot;/&amp;gt;
	&amp;lt;/exceptionManagement&amp;gt;

FUSION LOG:

*** Assembly Binder Log Entry  (11/7/2003 @ 2:28:16 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable  C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=13da6d3f9482dd92
 (Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/CORE
LOG: Initial PrivatePath = bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\core\e5dbef76
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\core\e5dbef76
LOG: AppName = c6d4cac7
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=13da6d3f9482dd92
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/core/e5dbef76/c6d4cac7/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/core/e5dbef76/c6d4cac7/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/CORE/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/CORE/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/core/e5dbef76/c6d4cac7/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/core/e5dbef76/c6d4cac7/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/CORE/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/CORE/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: All probing URLs attempted and failed.


Any help is GREATLY appreciated.

Thank you,

Phil

</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57127</link><pubDate>Sun, 09 Nov 2003 03:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57127</guid><dc:creator>Suzanne</dc:creator><description>The problem is that the Version isn't fully specified (see the &amp;quot;Partial&amp;quot; in the Fusion log) :

LOG: DisplayName = Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=13da6d3f9482dd92
(Partial)

Fusion won't check the GAC for the assembly unless the full display name is given (see http://blogs.gotdotnet.com/suzcook/PermaLink.aspx/07954694-ac03-4459-80df-859a31cd76bc ).
So, the code with the incomplete reference will need to be updated.

It looks like the reference in the web.config is fully-specified, so that wasn't the cause
of this failure.  That's why the bind for the web.config type seemed successful (it was).</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57128</link><pubDate>Wed, 12 Nov 2003 12:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57128</guid><dc:creator>Korhan</dc:creator><description>Suzanne,

Thanks for the informative blog. I am trying to deploy a windows app. Things were fine until I added an installer to the project to perform some custom actions. Using the fuslogvw I have located the problem. AppBase has been changed to Windows/System32 instead of the application folder. Therefore, when CLR probes for the assembly, it cannot find it and bind it. What would be the solution for this? I want the assemblies to stay where they are and not install it to GAC.

Thank you very much for your help.

Korhan</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57129</link><pubDate>Wed, 12 Nov 2003 19:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57129</guid><dc:creator>Phil Pastor</dc:creator><description>Suzaane,

Thanks for your reponse regarding my issue with the Microsoft.ApplicationBlocks.ExceptionManagement in the GAC. It turns out that the web.config WAS the issue. Previously I declared the assembly as:
&amp;lt;section name=&amp;quot;exceptionManagement&amp;quot; 
type=&amp;quot;Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,
Microsoft.ApplicationBlocks.ExceptionManagement,
version=1.0.1.0, culture=neutral, publicKeyToken=13da6d3f9482dd92&amp;quot;/&amp;gt;

...well, I changed it to:
&amp;lt;section name=&amp;quot;exceptionManagement&amp;quot; 
type=&amp;quot;Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,
Microsoft.ApplicationBlocks.ExceptionManagement, version=1.0.1.0, culture=neutral, publicKeyToken=13da6d3f9482dd92&amp;quot;/&amp;gt;

...and it worked! Notice that I removed the CarriageReturn from the declaration between the end of the assembly name and the word &amp;quot;version.&amp;quot; Any idea why this would cause an issue ONLY when the assembly is in the GAC?

Thanks again,

Phil</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57130</link><pubDate>Wed, 12 Nov 2003 23:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57130</guid><dc:creator>Korhan</dc:creator><description>Suzanne,

I thought you might like to see the error log before answering my above question. Here it goes

*** Assembly Binder Log Entry  (11/12/2003 @ 3:45:13 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable  C:\WINDOWS\System32\MsiExec.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = cWiz Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = C:\WINDOWS\System32\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: cWiz Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/WINDOWS/System32/cWiz Client.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/System32/cWiz Client/cWiz Client.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/System32/cWiz Client.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/System32/cWiz Client/cWiz Client.EXE.
LOG: All probing URLs attempted and failed.</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57131</link><pubDate>Fri, 14 Nov 2003 09:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57131</guid><dc:creator>sanjeev</dc:creator><description>sir 
     i have problem whenever calling asp.net pages in the event viewer &amp;quot;aspnet_wp.exe could bot be started .
     HREHULT for the further 80004005</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57132</link><pubDate>Fri, 14 Nov 2003 09:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57132</guid><dc:creator>sanjeev</dc:creator><description>sir 
     i have problem whenever calling asp.net pages in the event viewer &amp;quot;aspnet_wp.exe could bot be started .
     HREHULT for the further 80004005
     
please reply me </description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57133</link><pubDate>Fri, 05 Dec 2003 07:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57133</guid><dc:creator>Suzanne</dc:creator><description>Phil: Pre-v2.0, Fusion didn't ignore newlines in display names. The full display name needs to be (acceptably) specified for binds to the GAC to succeed. So, that's why it failed to load from the GAC. But, partial binds can work in the ApplicationBase, which you've noticed (though they're not recommended).
</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57134</link><pubDate>Fri, 05 Dec 2003 22:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57134</guid><dc:creator>Suzanne</dc:creator><description>Korhan and Sanjeev: Those types of questions are better suited for Microsoft's official technical support channels. They're about MsiExec.exe / ASP.NET specifically, not about the loader. Try http://support.microsoft.com/ .</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57135</link><pubDate>Fri, 19 Dec 2003 13:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57135</guid><dc:creator>Sridhar</dc:creator><description>Hi
I need help please.........
I have developed asp.net web application on 2002 ,Now i have only 2003 in my system and if i am trying to run the web application it is giving error:

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

vbc : error BC32400: Class 'CLSID_CorSymWriter_SxS' could not be created: Class not registered 
vbc : error BC31019: Unable to write to output file 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication3\4c790788\4b8c4c7\r6vd1nnj.pdb': Class not registered 

Thanks in adnace

 
</description></item><item><title>RE: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#57136</link><pubDate>Wed, 31 Dec 2003 02:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:57136</guid><dc:creator>Suzanne</dc:creator><description>Check your registry for that CLSID - sounds like it's not registered. I suspect that you may need to reinstall your v1.1 CLR.</description></item><item><title>re: Executing Code in Another AppDomain</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#64183</link><pubDate>Thu, 29 Jan 2004 05:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:64183</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>Debugging a MissingMethodException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#72729</link><pubDate>Sat, 14 Feb 2004 03:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:72729</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>ReflectionTypeLoadException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#72772</link><pubDate>Sat, 14 Feb 2004 03:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:72772</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>Debugging a MissingMethodException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#72798</link><pubDate>Sat, 14 Feb 2004 04:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:72798</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>re: Interop Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#80153</link><pubDate>Thu, 26 Feb 2004 02:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80153</guid><dc:creator>Soren</dc:creator><description>Suzanne, thank you for the very infromative blog.&lt;br&gt;&lt;br&gt;Could you please explain how does the loader work in the following scenario:&lt;br&gt;&lt;br&gt;- a .net assembly (COM/ActiveX dll, registered for interop) (component 1, located in Folder A on disk)&lt;br&gt;- is called via COM from an unmanaged COM component (component 2, located in the same folder A on disk)&lt;br&gt;- This COM component is invoked from an external Windows application (again unmanaged) (component 3, located in Folder B on disk)&lt;br&gt;&lt;br&gt;Fusion cannot find the .net assembly. The fusion log shows that it is trying to load it from Folder B, the path of component 3, rather than from Folder A.&lt;br&gt;&lt;br&gt;However, if we eliminate component 3 from the scenario and call the assembly directly from the user interface of component 2, it all works fine.&lt;br&gt;&lt;br&gt;In COM there used to be the InProcServer32 key that gave the path to the executable, but there is no such equivalent in .net. &lt;br&gt;&lt;br&gt;Is there a path variable or something that can be set to make the loader locate assemblies like this one?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#83013</link><pubDate>Wed, 03 Mar 2004 01:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:83013</guid><dc:creator>Suzanne</dc:creator><description>Yes, for the failing case, the ApplicationBase is the exe's dir, Folder B.  So, it is by design that it is trying to load it from there when loading by display name.&lt;br&gt;&lt;br&gt;In the success case, I imagine that either the ApplicationBase is Folder A, or the LoadFrom context is being used. (See &lt;a target="_new" href="http://blogs.msdn.com/suzcook/archive/2003/05/29/57143.aspx"&gt;http://blogs.msdn.com/suzcook/archive/2003/05/29/57143.aspx&lt;/a&gt; for info about the LoadFrom context.)&lt;br&gt;&lt;br&gt;Actually, for .NET, the InProcServer32 key may contain both an Assembly and a CodeBase value. However, please see the link above before relying on the CodeBase - usually the Load context is more appropriate.</description></item><item><title>Determining the Referencing Assembly</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#118706</link><pubDate>Fri, 23 Apr 2004 07:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:118706</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>Assemly Loading Failures using Reflection</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#121386</link><pubDate>Tue, 27 Apr 2004 20:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:121386</guid><dc:creator>Lyle Dodge</dc:creator><description>Using a reflection based plugin app.&lt;br&gt;&lt;br&gt;Project A, B, and C are all in the same solution.&lt;br&gt;&lt;br&gt;Project A is a web app.  The web app loads up the assemblies in the bin directory looking for certain types.  Project B is a plugin that project A directly references.  Project C is a plugin that references project B, but is not referenced by Project A.  When the solution is rebuilt (all references are now happy), everything works fine when Project C's assembly is dropped into the bin of the webapp.&lt;br&gt;&lt;br&gt;When Project A and B are rebuilt, but not project C, the Project C's assembly in the bin folder of the webapp now references assemblies which are no longer there when Project C is loaded up in the reflection phase.  What is the proper way to do this if Project C is updated more frequently than Project A or B?&lt;br&gt;&lt;br&gt;The error we are getting is saying that methods in Project C &amp;quot;does not have an implementation&amp;quot;.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#122532</link><pubDate>Wed, 28 Apr 2004 23:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:122532</guid><dc:creator>Suzanne</dc:creator><description>It sounds like the error comes from C having an outdated reference to B, because B is strongly-named, and has been rebuilt with a new version. Getting the Fusion log will verify it. See &lt;a target="_new" href="http://blogs.msdn.com/suzcook/archive/2003/05/29/57148.aspx"&gt;http://blogs.msdn.com/suzcook/archive/2003/05/29/57148.aspx&lt;/a&gt; for a discussion about avoiding that problem. </description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#124772</link><pubDate>Sun, 02 May 2004 20:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:124772</guid><dc:creator>Ols Moessian</dc:creator><description>&lt;br&gt;When loading a managed control in IE, the fusion log shows FileNotFound errors for all the assemblies involved, although everything seems to work just fine. Is this normal?&lt;br&gt;&lt;br&gt;The log errors indicate that the assemblies were searched in localhost and localhost/bin, even though the application is installed in localhost/xx. Perhaps I need to configure something to avoid these messages?&lt;br&gt;&lt;br&gt;Thank you for your time.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#124836</link><pubDate>Mon, 03 May 2004 00:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:124836</guid><dc:creator>Suzanne</dc:creator><description>Ols, see &lt;a target="_new" href="http://blogs.msdn.com/suzcook/archive/2003/09/16/57247.aspx"&gt;http://blogs.msdn.com/suzcook/archive/2003/09/16/57247.aspx&lt;/a&gt; .</description></item><item><title>re: Assemly Loading Failures using Reflection </title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#127177</link><pubDate>Thu, 06 May 2004 15:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127177</guid><dc:creator>Lyle Dodge</dc:creator><description>We kind-of found the problem.  Project C's plugin class was abstract, and inheriting from an abstract class.  the parent abstract class' method was abstract.  when reflecting the abstract parent's abstract method it was erroring out.  changing the abstract parent's method to virtual fixed this.  basically:&lt;br&gt;&lt;br&gt;assembly a - class a : abstract&lt;br&gt;assembly a - class a - method foo : abstract&lt;br&gt;&lt;br&gt;assembly b - class b : abstract : a.a&lt;br&gt;&lt;br&gt;assembly c - class c : concrete&lt;br&gt;assembly c - class c : method foo&lt;br&gt;&lt;br&gt;reflecting foo in c was erroring out, saying the method a:foo was not implemented.  changing a:foo to virtual fixed the problem.&lt;br&gt;&lt;br&gt;Any thoughts?</description></item><item><title>re: The located assembly's manifest definition with name xxx.dll does not match the assembly reference</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#128674</link><pubDate>Sun, 09 May 2004 10:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:128674</guid><dc:creator>Junfeng Zhang's .Net Framework Notes</dc:creator><description /></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#129780</link><pubDate>Tue, 11 May 2004 14:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:129780</guid><dc:creator>Vasasnth  T T</dc:creator><description>File or assembly name Microsoft.ApplicationBlocks.ExceptionManagement, or one of its dependencies, was not found.&lt;br&gt;</description></item><item><title>Wrong version in assembly manifest</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#135961</link><pubDate>Thu, 20 May 2004 17:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:135961</guid><dc:creator>Mark</dc:creator><description>A different sort of assembly reference problem...&lt;br&gt;&lt;br&gt;My application's assembly manifest is referencing an old version of a dependent .NET DLL.  I can't figure out why.&lt;br&gt;&lt;br&gt;The runtime *finds* the correct version, but *thinks* it's the wrong one.&lt;br&gt;&lt;br&gt;The application's Reference is to the correct version.  No DLLs of the old version exist on the file system or in the GAC.  I've rebuilt the app, rebooted, restarted IIS, yelled at my monitor, and pulled out most of my hair.  &lt;br&gt;&lt;br&gt;So when an app is built, where does it get the reference version info that goes in the assembly manifest?&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#141034</link><pubDate>Tue, 25 May 2004 09:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:141034</guid><dc:creator>Rajiv</dc:creator><description>Suzanne , Thanks I had a major problem,I googled and got many tips , Justw ante dto thank you </description></item><item><title>coming soon: wix tasks for msbuild</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#144139</link><pubDate>Sat, 29 May 2004 00:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144139</guid><dc:creator>jeffcal's blogland</dc:creator><description /></item><item><title>Debugging an InvalidCastException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#147201</link><pubDate>Thu, 03 Jun 2004 05:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:147201</guid><dc:creator>Suzanne Cook's .NET CLR Loader Notes</dc:creator><description /></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#150920</link><pubDate>Tue, 08 Jun 2004 13:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:150920</guid><dc:creator>Simon Geering</dc:creator><description>Something else that I found also helps, if you are using project references and you get an Assembly Load Failure exception along the lines of: &lt;br&gt;&lt;br&gt;&amp;quot;The located assembly's manifest definition with name 'xxxx' does not match the assembly reference.&amp;quot;&lt;br&gt;&lt;br&gt;Then check that all projects are selected to be compiled in the active build configuration. So that you re-compile all projects in the solution on the next build. &lt;br&gt;&lt;br&gt;This is achieved by opening the &amp;quot;Build Configuration&amp;quot; option dialogue on the Build menu and checking all checkbox items. &lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;&lt;br&gt;Simon Geering</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#176239</link><pubDate>Thu, 08 Jul 2004 07:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:176239</guid><dc:creator>Nedofeang</dc:creator><description>Compiler Error Message: BC31019: Unable to write to output file 'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\708093bd\6afa7483\acb1iqp0.dll': System Error &amp;amp;H80070005&amp;amp;&lt;br&gt;&lt;br&gt;please i am sick of this,help me out man.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#207858</link><pubDate>Wed, 04 Aug 2004 12:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:207858</guid><dc:creator>bardianto.Net-er</dc:creator><description>Close your browser,find your file(acb1iqp0.dll),delete it and &lt;br&gt;reopen browser.&lt;br&gt;It maybe because of&lt;br&gt;-different file version between browser cache and server file.&lt;br&gt;-setting .NET framework security configuration.&lt;br&gt;&lt;br&gt;Hope this help.</description></item><item><title>GetAssembly can not find a loaded assembly</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#410806</link><pubDate>Fri, 22 Apr 2005 17:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:410806</guid><dc:creator>Anton Sochenov</dc:creator><description>I ran into a strange problem. My web app requires certain assemblies and of course when it starts, these assemblies are loaded in the application domain. And I can access them using AppDomain.GetAssemblies but this works only the first time after application load. Next time when web app is reloaded - because project has recompiled the GetAssembly does not show my assembly on the list of loaded assemblies. What’s a strange - fusion log show that the assembly successfully loaded but GetAssembly does not show it on the list.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#419252</link><pubDate>Wed, 18 May 2005 19:54:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:419252</guid><dc:creator>Michael</dc:creator><description>You may want to point out that a common cause of &amp;quot;Access is denied&amp;quot; issues when loading an assembly under ASP.NET is documented in &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;329065"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;329065&lt;/a&gt;. The Windows Index service can lock the Temporary ASP.NET Files directory and the symptom is often an assembly load failure.&lt;br&gt;&amp;lt;BR&amp;gt;&lt;br&gt;See: PRB: Access Denied Error When You Make Code Modifications with Index Services Running&lt;br&gt;Article ID : 329065</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#420304</link><pubDate>Fri, 20 May 2005 05:27:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:420304</guid><dc:creator>Adam</dc:creator><description>I am encountering the Bind result: hr = 0x80070005. Access is denied.&lt;br&gt; issue. But none of the solutions are working for me.&lt;br&gt;&lt;br&gt;It works fine on 2000 and XP. But we are testing on 2003 and get the error.&lt;br&gt;We are Dynamically creating Assemblies and loading them in a seperate app space.&lt;br&gt;&lt;br&gt;We are using LoadFrom to specify a directory outside the working directory of the current app.&lt;br&gt;&lt;br&gt;Something intresting that I can't find any info on is this message we seen in the fusion logs on OS's where it works...&lt;br&gt;&lt;br&gt;WRN: A duplicate assembly was found while copying the assembly item to the cache.&lt;br&gt;&lt;br&gt;?</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#420308</link><pubDate>Fri, 20 May 2005 05:52:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:420308</guid><dc:creator>Adam</dc:creator><description>Turns out it's just permissions... if i run the Application Pool as an ADmin it goes away.&lt;br&gt;now to find where the permissions are wrong.&lt;br&gt;&lt;br&gt;Still intrested in that WRN message?</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#421687</link><pubDate>Wed, 25 May 2005 13:10:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421687</guid><dc:creator>Vagif Abilov</dc:creator><description>I noticed the following behaviour of ASP.NET sites: when I start a Web side, Fusion reports bindings for assemblies in the BIN directory twice: first with partial name and then with full name. What happens then is that if later I try to load another assembly using LoadFrom, then if this assembly references those already loaded in ASP.NET cache, they fail to load if they have a different strong version. Basically this means that ASP.NET don't really treat private stong named assemblies as strong named: attempt to load extra plugins from other directories may fail if assembly with different version (but same) name is already in the cache.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#425497</link><pubDate>Mon, 06 Jun 2005 02:42:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:425497</guid><dc:creator>john</dc:creator><description>Dude, thanks a ton, I was really in a bind.  Thankfully all it took was depends.exe to expose the issue.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#440545</link><pubDate>Tue, 19 Jul 2005 23:23:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:440545</guid><dc:creator>Greg Robinson</dc:creator><description>We are seeing this when using No Touch Deployment.  Our windows .net clients gets dlls from our web server as needed. &lt;br&gt;&lt;br&gt;Some of the dlls are loaded ok, some of the loads generate a FileNotFoundException.  If I look in the IIS Log file, I see a 200 Return code for the dll\file in question so the web server returned the dll.  Something on the client side is not 'finding' it or is blocking the return. &lt;br&gt;&lt;br&gt;We log the details of the exception and I can see what the loader is trying to do: &lt;br&gt;&lt;br&gt;&lt;br&gt;LOG: Publisher policy file is not found.&lt;br&gt;&lt;br&gt;LOG: Host configuration file not found.&lt;br&gt;&lt;br&gt;LOG: Using machine configuration file from&lt;br&gt;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.&lt;br&gt;&lt;br&gt;LOG: Post-policy reference: Janus.Windows.ButtonBar.v2,&lt;br&gt;Version=2.0.1163.0, Culture=neutral, PublicKeyToken=21d5517571b185bf&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL file:///C:/Program Files/Custom&lt;br&gt;Data Systems/AM.NET/Janus.Windows.ButtonBar.v2.DLL.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL file:///C:/Program Files/Custom&lt;br&gt;Data Systems/AM.NET/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.DLL.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL file:///C:/Program Files/Custom&lt;br&gt;Data Systems/AM.NET/Janus.Windows.ButtonBar.v2.EXE.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL file:///C:/Program Files/Custom&lt;br&gt;Data Systems/AM.NET/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.EXE.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2.DLL"&gt;http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2.DLL&lt;/a&gt;.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.DLL"&gt;http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.DLL&lt;/a&gt;.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2.EXE"&gt;http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2.EXE&lt;/a&gt;.&lt;br&gt;&lt;br&gt;LOG: Attempting download of new URL&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.EXE"&gt;http://172.16.5.1/AMNETAssemblies/Janus.Windows.ButtonBar.v2/Janus.Windows.ButtonBar.v2.EXE&lt;/a&gt;.&lt;br&gt;</description></item><item><title>Fail To Load Resources From Resource File. Please Check Your Setup</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#468469</link><pubDate>Fri, 16 Sep 2005 14:20:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:468469</guid><dc:creator>Puneet Gupta</dc:creator><description>Hi,&lt;br&gt;   I have a windows application using Interop and reflection installed on Win XP &amp;amp; Win2K machine(s). On some machine I get the above message which sometime allows my application to work after the display and sometime it crashes my application. It comes in different contexts and in different scenarios but not reproducable.&lt;br&gt;&lt;br&gt;Can you help me? What I am doing worng n where?</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#472198</link><pubDate>Wed, 21 Sep 2005 09:50:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:472198</guid><dc:creator>Phill Djonov</dc:creator><description>Hi. Maybe I'm trying to do the impossible or maybe this is just a BETA issue but I just want an answer either way.&lt;br&gt;&lt;br&gt;I've got a dll full of horrible, horrible (!) assembly routines. Most of it is SSE stuff and all of it is really useful. I'm trying to add a binding to .NET to my dll and here's what I've done so far.&lt;br&gt;&lt;br&gt;1. Moved my project to VS.NET 2005 (BETA 2).&lt;br&gt;2. Added a managed.cpp file to the project which is supposed to serve as the bridge between the managed world and a pile of __asm blocks.&lt;br&gt;3. On the managed.cpp file ONLY, I have added /clr.&lt;br&gt;4. Set the linker to FORCE IJW.&lt;br&gt;5. Added the dll as a reference to a test app written in C#.&lt;br&gt;6. Hit compile. No errors. No warnings. No trouble with the linker.&lt;br&gt;7. Called some functions in managed.cpp from my C# app's Main. Note: intellisense had picked up the functions in managed.cpp.&lt;br&gt;8. Tried to run the program.&lt;br&gt;&lt;br&gt;I get this every time:&lt;br&gt;&lt;br&gt;System.IO.FileLoadException was unhandled&lt;br&gt;  Message=&amp;quot;Could not load file or assembly 'tnCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. One or more arguments are invalid (Exception from HRESULT: 0x80000003)&amp;quot;&lt;br&gt;  Source=&amp;quot;Stormfall&amp;quot;&lt;br&gt;  FileName=&amp;quot;tnCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null&amp;quot;&lt;br&gt;  FusionLog=&amp;quot;&amp;quot;&lt;br&gt;  StackTrace:&lt;br&gt;       at Stormfall.Program.Main()&lt;br&gt;&lt;br&gt;       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)&lt;br&gt;&lt;br&gt;       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;br&gt;&lt;br&gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;br&gt;&lt;br&gt;       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;br&gt;&lt;br&gt;       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br&gt;&lt;br&gt;       at System.Threading.ThreadHelper.ThreadStart()&lt;br&gt;&lt;br&gt;It's the same outside of the debugger, only without the Microsoft.VisualStudio.HostingProcess bits.&lt;br&gt;&lt;br&gt;The semi-managed dll loads into ILDASM or Reflector (latest version) without any errors. I can browse around its functions and look at their IL without any errors from either program.&lt;br&gt;&lt;br&gt;The fusion log doesn't even mention my dll. It stops logging after the exe loads.&lt;br&gt;&lt;br&gt;What gives? How is it that VS.NET (references window, intellisence), ILDASM, and Reflector, all recognize the dll as a valid CLR image while it keeps failing to load?&lt;br&gt;&lt;br&gt;Is the loader detecting SSE instructions and killing the whole thing (because that just makes no sense at all)? Is this a BETA thing? Am I just doing something that's impossible by design (i.e. give up now and write a seperate wrapper dll or lots of little P/Invoke stubs)?&lt;br&gt;&lt;br&gt;Any help would be more than appreciated.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#472215</link><pubDate>Wed, 21 Sep 2005 10:46:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:472215</guid><dc:creator>Phill Djonov</dc:creator><description>Sorry for posting here. Thought this was a loader bug/limitation. It isn't. The bug belongs to the VC++ compiler team.&lt;br&gt;&lt;br&gt;For anyone that googled their way onto this or are interested, the VC++ (BETA 2, anyway) compiler/linker will generate a bad image if any file in the project is not compiled with /clr (much help that is with asm routines). #pragma unmanaged can then be used to, etc, etc, etc...&lt;br&gt;&lt;br&gt;Sorry again.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#482543</link><pubDate>Wed, 19 Oct 2005 08:47:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:482543</guid><dc:creator>Haris</dc:creator><description>In my case Fusion is not showing any log.In registry I created a new key LogPath in HKLM/Softwarre/Microsoft/Fusion and set its default value to H:\temp\fusion&lt;br&gt;&lt;br&gt;but when I press refresh nothing happens and when i press View Log it says Error: Unable to open cache file!</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#511090</link><pubDate>Tue, 10 Jan 2006 08:26:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:511090</guid><dc:creator>Robert S.</dc:creator><description>Thanks for the info!  Not sure if in my case I have a special issue or if I'm just not fully understanding troubleshooting assemblies.  I created a WinForm app simply named, compiled, installed, running in production.  Recently decided to strong-name the entire VS solution, compiles fine, but does run due to &amp;quot;The located assembly's manifest definition...does not match the assembly reference.&amp;quot;  When I check the Fusion log it's indicating that a prior version of the .exe is being executed.  All updated dependent assemblies show correctly - new ver., pub key, paths, names, etc.  It seems something somewhere is trying to run the old .exe (in the new .exe path no less) despite the new application manifest being seemingly correct.  What implications are there from going from a simply named to strong named code base?</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#520579</link><pubDate>Tue, 31 Jan 2006 17:08:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:520579</guid><dc:creator>Sacha</dc:creator><description>Hi Suzanne&lt;br/&gt;&lt;br/&gt;Thanks for your informative blog.&lt;br/&gt;&lt;br/&gt;I am trying to write a windows service that copies assemblies from a central server and executes them dynamically.  It seems to work fine using a separate app domain to load the assembly to be executed.  I then reload the domain when I have a new version or whatever.&lt;br/&gt;&lt;br/&gt;My problem is that when I try and add a new assembly (for copying locally) that is referenced by the assembly (again that is copied locally) I am executing, I get the following fusion error:&lt;br/&gt;&lt;br/&gt;LOG: Entering run-from-source setup phase.&lt;br/&gt;WRN: Comparing the assembly name resulted in the mismatch: NAME&lt;br/&gt;ERR: The assembly reference did not match the assembly definition found.&lt;br/&gt;ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.&lt;br/&gt;&lt;br/&gt;The referenced assembly I am using is one created by adding a reference to a com object that I know exists on all machines involved.&lt;br/&gt;&lt;br/&gt;Prior to dynamic execution the referenced assembly should not exist on any of the client machines hence I don't know what the &amp;quot;assembly definition&amp;quot; that is not matching refers to.&lt;br/&gt;&lt;br/&gt;Any ideas?&lt;br/&gt;&lt;br/&gt;Many Thanks&lt;br/&gt;&lt;br/&gt;Sacha</description></item><item><title> executable with fixups (IAT with more than 2 sections or a TLS section.) </title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#529633</link><pubDate>Fri, 10 Feb 2006 19:57:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:529633</guid><dc:creator>Boni</dc:creator><description>Dear Madam,&lt;br&gt;thanks for the only explantion of this error, which I found in internet.&lt;br&gt;#his is because MC++ has made optimizations&lt;br&gt;Do you know is it possible to switch this optimizations off? Which compiler setting is it?&lt;br&gt;Thanks,&lt;br&gt;Boni</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#535092</link><pubDate>Sun, 19 Feb 2006 21:08:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535092</guid><dc:creator>Kartik Vaddadi</dc:creator><description>Suzanne, Thanks a lot for the post; it solved a problem that I've been having for hours on end.&lt;br&gt;&lt;br&gt;But in my case, it turned out there was a missing assembly, but the exception message said a type could not be loaded from an assembly that existed. Maybe loading this assembly triggered an attempted load of the non-existent one, but in that case, why doesn't the exception message say so? Why should I have to run fuslogvw?</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#543764</link><pubDate>Sun, 05 Mar 2006 02:11:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:543764</guid><dc:creator>cool</dc:creator><description>Great blog entry.&lt;br&gt;Using the log solved a problem I was stuck on &lt;br&gt;since yesterday.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#558635</link><pubDate>Thu, 23 Mar 2006 07:22:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:558635</guid><dc:creator>daisy</dc:creator><description>Hello Maam,&lt;br&gt;I have this strange problem while re-running any of C# assemlies more than once.&lt;br&gt;mid-way while running my application which references a assembly, i get this error :&lt;br&gt;Access is denied&lt;br&gt;After around 5 mins when i refresh the page it gets loaded.&lt;br&gt;i doubt some problem of history or garbage collection.&lt;br&gt;Can u please help me on this?&lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#563385</link><pubDate>Tue, 28 Mar 2006 23:22:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:563385</guid><dc:creator>Les</dc:creator><description>Thanks for your blog. It helped me fix my managed file load problem. </description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#565392</link><pubDate>Fri, 31 Mar 2006 04:12:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:565392</guid><dc:creator>Ken</dc:creator><description>I am having a problem loading the following MS Enterprise Library assembly. &amp;nbsp;I have tried many of the fixes on this blog (I think) below is the information from the fusion log:&lt;br&gt;&lt;br&gt;Assembly manager loaded from: &amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll&lt;br&gt;Running under executable &amp;nbsp;C:\Documents and Settings\kwenyon\My Documents\Visual Studio 2005\Projects\RetailBeerSystems\RetailBeerSystems\bin\Debug\RetailBeerSystems.vshost.exe&lt;br&gt;--- A detailed error log follows. &lt;br&gt;&lt;br&gt;=== Pre-bind state information ===&lt;br&gt;LOG: User = STRATISINC\kwenyon&lt;br&gt;LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Data, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db1db703afa726aa&lt;br&gt; (Fully-specified)&lt;br&gt;LOG: Appbase = file:///C:/Documents and Settings/kwenyon/My Documents/Visual Studio 2005/Projects/RetailBeerSystems/RetailBeerSystems/bin/Debug/&lt;br&gt;LOG: Initial PrivatePath = NULL&lt;br&gt;Calling assembly : Microsoft.Practices.EnterpriseLibrary.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null.&lt;br&gt;===&lt;br&gt;LOG: This bind starts in default load context.&lt;br&gt;LOG: Using application configuration file: C:\Documents and Settings\kwenyon\My Documents\Visual Studio 2005\Projects\RetailBeerSystems\RetailBeerSystems\bin\Debug\RetailBeerSystems.vshost.exe.config&lt;br&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;br&gt;LOG: Post-policy reference: Microsoft.Practices.EnterpriseLibrary.Data, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db1db703afa726aa&lt;br&gt;LOG: Attempting download of new URL file:///C:/Documents and Settings/kwenyon/My Documents/Visual Studio 2005/Projects/RetailBeerSystems/RetailBeerSystems/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Data.DLL.&lt;br&gt;WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN&lt;br&gt;ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.&lt;br&gt;&lt;br&gt;Can you please help me with this??</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#569129</link><pubDate>Wed, 05 Apr 2006 20:19:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:569129</guid><dc:creator>Ken</dc:creator><description>I found the problem, it was a namespace or scope issue in my config file.</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#570276</link><pubDate>Thu, 06 Apr 2006 23:55:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:570276</guid><dc:creator>Balaji </dc:creator><description>Hello Suzanne - I have a factory that will get all files in the bin folder, load the assembly using Assembly.LoadFrom method and check if it supports a particular interface before creating an instance of the same. My problem is everything works fine when the ASPNET user is a member of the Administrators. Once i remove it from administrators then it fails with Access denied message. Any pointers, ideas is appreciated. Thanks</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#578585</link><pubDate>Wed, 19 Apr 2006 01:17:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:578585</guid><dc:creator>Valar Manickam</dc:creator><description>Hi Suzane,&lt;br&gt;&lt;br&gt; I am trying to Xcopy the ASP.NET application from my local machine (Windows XP) to a development server (Win 2003). I am using the Enterprise library for dalaBase access, Logging, Exception handling etc. The application runs fine in my local machine (I have complete suite of .Net and other tool in my local machine)&lt;br&gt;&lt;br&gt;But When I Xcopy the files and set up the IIs WebServer, my enterrprise library would not load. We have Integrated Windows authentication for our application. Could you please help me solve this problem??&lt;br&gt;&lt;br&gt;Thanks :)&lt;br&gt;&lt;br&gt; I am getting the following error:&lt;br&gt;&lt;br&gt;Server Error in '/ConferenceRoomScheduler' Application.&lt;br&gt;--------------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies. Access is denied. &lt;br&gt;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. &lt;br&gt;&lt;br&gt;Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies. Access is denied.&lt;br&gt;&lt;br&gt;Source Error: &lt;br&gt;&lt;br&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. &amp;nbsp;&lt;br&gt;&lt;br&gt;Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.EnterpriseLibrary.Common' could not be loaded.&lt;br&gt;&lt;br&gt;&lt;br&gt;=== Pre-bind state information ===&lt;br&gt;LOG: User = Unknown&lt;br&gt;LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Common&lt;br&gt; (Partial)&lt;br&gt;LOG: Appbase = file:///C:/SourceCenter/ITSApplications/DotNETApplications/CodeCenter/UserExperience/Applications/ConferenceRoomScheduler/WebApplication/&lt;br&gt;LOG: Initial PrivatePath = C:\SourceCenter\ITSApplications\DotNETApplications\CodeCenter\UserExperience\Applications\ConferenceRoomScheduler\WebApplication\bin&lt;br&gt;Calling assembly : (Unknown).&lt;br&gt;===&lt;br&gt;LOG: This bind starts in default load context.&lt;br&gt;LOG: Using application configuration file: C:\SourceCenter\ITSApplications\DotNETApplications\CodeCenter\UserExperience\Applications\ConferenceRoomScheduler\WebApplication\web.config&lt;br&gt;LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config&lt;br&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;br&gt;LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).&lt;br&gt;LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/conferenceroomscheduler/acb5f87b/720897aa/Microsoft.Practices.EnterpriseLibrary.Common.DLL.&lt;br&gt;LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/conferenceroomscheduler/acb5f87b/720897aa/Microsoft.Practices.EnterpriseLibrary.Common/Microsoft.Practices.EnterpriseLibrary.Common.DLL.&lt;br&gt;LOG: Attempting download of new URL file:///C:/SourceCenter/ITSApplications/DotNETApplications/CodeCenter/UserExperience/Applications/ConferenceRoomScheduler/WebApplication/bin/Microsoft.Practices.EnterpriseLibrary.Common.DLL.&lt;br&gt;LOG: Using application configuration file: C:\SourceCenter\ITSApplications\DotNETApplications\CodeCenter\UserExperience\Applications\ConferenceRoomScheduler\WebApplication\web.config&lt;br&gt;LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config&lt;br&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;br&gt;LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).&lt;br&gt;ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;Stack Trace: &lt;br&gt;&lt;br&gt;&lt;br&gt;[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies. Access is denied.]&lt;br&gt;&lt;br&gt;[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]&lt;br&gt; &amp;nbsp; System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0&lt;br&gt; &amp;nbsp; System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection) +211&lt;br&gt; &amp;nbsp; System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection) +141&lt;br&gt; &amp;nbsp; System.Reflection.Assembly.Load(String assemblyString) +25&lt;br&gt; &amp;nbsp; System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32&lt;br&gt;&lt;br&gt;[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]&lt;br&gt; &amp;nbsp; System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596&lt;br&gt; &amp;nbsp; System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3479049&lt;br&gt; &amp;nbsp; System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180&lt;br&gt; &amp;nbsp; System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +347&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +378&lt;br&gt;&lt;br&gt;[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57&lt;br&gt; &amp;nbsp; System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612&lt;br&gt; &amp;nbsp; System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456&lt;br&gt;&lt;br&gt;[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]&lt;br&gt; &amp;nbsp; System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426855&lt;br&gt; &amp;nbsp; System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88&lt;br&gt; &amp;nbsp; System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149&lt;br&gt;&lt;br&gt; &lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#591011</link><pubDate>Fri, 05 May 2006 22:59:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:591011</guid><dc:creator>Eddie Chin</dc:creator><description>Hi Suzanne,&lt;br&gt;&lt;br&gt;I am trying to do setup and deployment using Visual Studio 2005. I have the plug-in&lt;br&gt;Add Web Deployment Project...&lt;br&gt;that generates a .dll file for&lt;br&gt;my web application and puts it&lt;br&gt;in a bin subdirectory. Next, I&lt;br&gt;build the setup and deployment project and try to install the&lt;br&gt;app on my machine as test case.&lt;br&gt;My web app gets installed at &lt;br&gt;c:/Inetpub/wwwroot/[name of app]&lt;br&gt;and the .dll file for my web app&lt;br&gt;is installed at&lt;br&gt;c:/Inetpub/wwwroot/[name of app]/bin&lt;br&gt;However when I try to browse my web&lt;br&gt;app I get the following error:&lt;br&gt;&amp;quot;Could not load the assembly...&lt;br&gt;Make sure that it is compiled before &lt;br&gt;accessing the page.&amp;quot;&lt;br&gt;and it shows the first line of the&lt;br&gt;.aspx file I am browsing:&lt;br&gt;inherits=&amp;quot;Login, Membership&amp;quot;&lt;br&gt;Login being the class name of the code-behind file associated with the .aspx file. Membership being the name of the .dll file.&lt;br&gt;What am I doing wrong?</description></item><item><title>.NET Resources</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#591372</link><pubDate>Sat, 06 May 2006 11:30:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:591372</guid><dc:creator>mattonsoftware.com</dc:creator><description>The following links to .NET resources have been collated over time with the assistance of colleagues.&amp;amp;amp;nbsp;...</description></item><item><title>Good reference document for debugging assembly loading errors</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#592858</link><pubDate>Tue, 09 May 2006 03:44:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:592858</guid><dc:creator>Aaron Stebner's WebLog</dc:creator><description>I ran across a blog post from Suzanne Cook this past&amp;amp;amp;nbsp;weekend that has been around for a while, but...</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#595796</link><pubDate>Fri, 12 May 2006 05:30:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:595796</guid><dc:creator>Stefan Larimore</dc:creator><description>We have an issue using the hosting APIs from unmanaged C++ app. &amp;nbsp;When calling pAppDomain-&amp;gt;ExecuteAssembly_3 (...) the application runs if it is a C# application. &amp;nbsp;If it is created with MC++, we get the COR_E_FIXUPSINEXE, which you cited above. &amp;nbsp;So far so good.&lt;br&gt;&lt;br&gt;Our problem now is we are hosting C# app which references a MC++ assembly. &amp;nbsp;When the type from the MC++ assembly is used, we see COR_E_BADIMAGEFORMAT thrown. &amp;nbsp;Is there any workaround for this problem?&lt;br&gt;&lt;br&gt;We are using ICorRuntimeHost interface on the CLR v2.0. &amp;nbsp;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#605131</link><pubDate>Tue, 23 May 2006 22:47:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:605131</guid><dc:creator>Brad</dc:creator><description>I am running into one of those Bind erros: &amp;nbsp;result: hr = 0x80070002. The system cannot find the file specified.&lt;br&gt;&lt;br&gt;I cannot figure it out... grrr...&lt;br&gt;&lt;br&gt;It works when deployed on one server, but fails on another.&lt;br&gt;&lt;br&gt;It is a windows forms dll being downloaded from a windows client app using Assembly.Load with a version number and a strong name. &amp;nbsp;Prior to using the strong name I was using LoadFrom and got the same error.&lt;br&gt;&lt;br&gt;The dll references a web service and some standard .net things like system...</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#614611</link><pubDate>Fri, 02 Jun 2006 23:15:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:614611</guid><dc:creator>Kanna</dc:creator><description>&lt;br&gt;I am facing the same problem but I didn't find any useful help to resolve this problem. Could you please send me the pointers to resolve this issue.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=81140&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=81140&amp;amp;SiteID=1&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Kanna&lt;br&gt;</description></item><item><title>I can&amp;#8217;t remember where I read it&amp;#8230;. &amp;raquo; Fusion Log Viewer</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#631533</link><pubDate>Thu, 15 Jun 2006 02:02:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:631533</guid><dc:creator>I can’t remember where I read it…. » Fusion Log Viewer</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://www.adrianbanks.co.uk/?p=12"&gt;http://www.adrianbanks.co.uk/?p=12&lt;/a&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#642966</link><pubDate>Thu, 22 Jun 2006 18:46:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:642966</guid><dc:creator>Rpaul</dc:creator><description>I'm trying to create my own Interop.Scripting Dll. I tlpimp no problem, runs locally fine&lt;br&gt;if I move the dll to the server and regasm I get this error&lt;br&gt;&lt;br&gt;Any help would be appreciated&lt;br&gt;&lt;br&gt;Type library exporter warning: Referenced type is defined in managed component,&lt;br&gt;which is imported from a type library that could not be loaded because it was no&lt;br&gt;t registered (type: 'ADODB.Recordset'; component: 'C:\WINNT\assembly\GAC\ADODB\7&lt;br&gt;.0.3300.0__b03f5f7f11d50a3a\ADODB.dll').&lt;br&gt;RegAsm : error RA0000 : Type library exporter encountered an error while process&lt;br&gt;ing 'rsEventLog.clsEventLog+_clsEventLog.getRSEventsEx(#0), rsEventLog'. Error:&lt;br&gt;Type library exporter cannot load type 'Scripting.Dictionary' (error: System.IO.&lt;br&gt;FileLoadException: Could not load file or assembly 'Interop.Scripting, Version=1&lt;br&gt;.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The lo&lt;br&gt;cated assembly's manifest definition does not match the assembly reference. (Exc&lt;br&gt;eption from HRESULT: 0x80131040)&lt;br&gt;File name: 'Interop.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=&lt;br&gt;null'&lt;br&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#659237</link><pubDate>Fri, 07 Jul 2006 20:50:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659237</guid><dc:creator>MikeFinney</dc:creator><description>Hi Suzanne,&lt;br&gt;&lt;br&gt;Great info, but not quite what I need after reading everything. I am trying to install .NET 2.0 and I keep getting these messages in the windows installer logs for a number of assembly files.&lt;br&gt;&lt;br&gt;07/07/06 00:16:50 DDSet_Status: LANGID: 1033&lt;br&gt;07/07/06 00:16:50 DDSet_Entry: ConfigureNativeImage started&lt;br&gt;07/07/06 00:16:50 DDSet_Status: Deferred or Commit action for NGEN&lt;br&gt;07/07/06 00:16:50 DDSet_Status: CustomActionData: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install &amp;quot;mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot; /NoDependencies /nologo;4308992&lt;br&gt;07/07/06 00:16:50 DDSet_Status: Running Command Line: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe install &amp;quot;mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot; /NoDependencies /nologo&lt;br&gt;07/07/06 00:16:50 DDSet_Status: LANGID: 1033&lt;br&gt;Installing assembly mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;br&gt;Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))&lt;br&gt;You must have administrative credentials to perform this task. Contact your system administrator for assistance.&lt;br&gt;07/07/06 00:16:50 DDSet_Status: Process returned -1&lt;br&gt;07/07/06 00:16:50 DDSet_Status: Incrementing progress bar based on filesize of: 4308992&lt;br&gt;07/07/06 00:16:50 DDSet_CARetVal: 0&lt;br&gt;07/07/06 00:16:50 DDSet_Entry: ConfigureNativeImage ended successfully&lt;br&gt;&lt;br&gt;However, I can run gpresult /z and it clearly shows I am a member of the Domain Admins group.&lt;br&gt;&lt;br&gt;Looking in the windows\assembly folder, mscorlib is there and it is the 2.0 version. &lt;br&gt;&lt;br&gt;This is not the only assembly that gets the access denied message, there are others and they are interspersed with successful ones.&lt;br&gt;&lt;br&gt;I have tried with domain admin accounts as well as local admin accounts. Any ideas would be gratefully appreciated.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Mike Finney&lt;br&gt;</description></item><item><title>Why the "Partial" bind in asp.net</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#664813</link><pubDate>Thu, 13 Jul 2006 22:02:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:664813</guid><dc:creator>kendo_dragon</dc:creator><description>When I look at the fuslogvw window I see there are two entries for each assembly. &amp;nbsp;From what I can tell the first entry is the result of a &amp;quot;partial bind&amp;quot; and all of the useful information is in there. &amp;nbsp;The second entry shows the result of the subsequent &amp;quot;full bind&amp;quot; request and is useful for showing which assembly is requesting the bind.&lt;br&gt;&lt;br&gt;My question is why is it loading on partial and then loading on fully-specified right afterwards? &amp;nbsp;Should it matter to us in our asp.net application? &amp;nbsp;Would we be better off changing to force the fully-specified be used only (i.e., through a vs reference rather than LoadFrom(..) )?&lt;br&gt;&lt;br&gt;Jeff</description></item><item><title>Assembly loading failure logging</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#665071</link><pubDate>Fri, 14 Jul 2006 02:36:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:665071</guid><dc:creator>Rory Primrose</dc:creator><description>This is basically a reminder post, but you might find it useful.&lt;br&gt;In the development I have been doing...</description></item><item><title>Debugging a .NET InvalidCastException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#701909</link><pubDate>Wed, 16 Aug 2006 05:07:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701909</guid><dc:creator>Stale DNA - all things Cappy Popp</dc:creator><description>Thanks to Suzanne Cook for this one. &amp;amp;amp;quot;First, obviously, find the two types for which the cast failed,</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#757989</link><pubDate>Sat, 16 Sep 2006 22:02:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:757989</guid><dc:creator>Natasha</dc:creator><description>Dear Suzanne, I am with .NET C# 2003. I have Web app and 2 Class Library compiled as dll in one solution(datalayer and business layer) . It was all OK, maybe I rebuild my DLLs and something was done wrong. &lt;BR&gt;&lt;BR&gt;I created [HKLM\Software\Microsoft\Fusion\LogPath] pointed to C\mylogs.txt and I have &lt;BR&gt;[HKLM\Software\Microsoft\Fusion\LogFailures] set to 1 as you recommended &lt;BR&gt;&lt;BR&gt;Assembly binding log give me an error when I clickc "View Log" button "Error:Unable to open cache file!" So I failed to see the log and I am having hard time to fix the problem: &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. &lt;BR&gt;&lt;BR&gt;Parser Error Message: Access is denied: 'PCTracker.DataObjects'. &lt;BR&gt;&lt;BR&gt;Source Error: &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Line 196: &amp;lt;add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&amp;gt; &lt;BR&gt;Line 197: &amp;lt;add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&amp;gt; &lt;BR&gt;Line 198: &amp;lt;add assembly="*"/&amp;gt; &lt;BR&gt;Line 199: &amp;lt;/assemblies&amp;gt; &lt;BR&gt;Line 200: &amp;lt;/compilation&amp;gt; &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Source File: c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config &amp;nbsp; &amp;nbsp;Line: 198 &lt;BR&gt;&lt;BR&gt;Assembly Load Trace: The following information can be helpful to determine why the assembly 'PCTracker.DataObjects' could not be loaded. &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;=== Pre-bind state information === &lt;BR&gt;LOG: DisplayName = PCTracker.DataObjects &lt;BR&gt;(Partial) &lt;BR&gt;LOG: Appbase = file:///c:/inetpub/wwwroot/PCTracker &lt;BR&gt;LOG: Initial PrivatePath = bin &lt;BR&gt;Calling assembly : (Unknown). &lt;BR&gt;=== &lt;BR&gt;&lt;BR&gt;LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). &lt;BR&gt;LOG: Post-policy reference: PCTracker.DataObjects &lt;BR&gt;LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pctracker/ae1e1489/30fd1387/PCTracker.DataObjects.DLL. &lt;BR&gt;LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pctracker/ae1e1489/30fd1387/PCTracker.DataObjects/PCTracker.DataObjects.DLL. &lt;BR&gt;LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/PCTracker/bin/PCTracker.DataObjects.DLL. &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1040564</link><pubDate>Thu, 09 Nov 2006 01:20:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1040564</guid><dc:creator>TraderPub</dc:creator><description>&lt;P&gt;I am getting this error in the event view when i run my application. could you please help me see figure this out.&lt;/P&gt;
&lt;P&gt;Event Type: Warning&lt;/P&gt;
&lt;P&gt;Event Source: AdBankError&lt;/P&gt;
&lt;P&gt;Event Category: None&lt;/P&gt;
&lt;P&gt;Event ID: 0&lt;/P&gt;
&lt;P&gt;Date: 11/8/2006&lt;/P&gt;
&lt;P&gt;Time: 4:40:30 PM&lt;/P&gt;
&lt;P&gt;User: N/A&lt;/P&gt;
&lt;P&gt;Computer: TPTTDLAP015598&lt;/P&gt;
&lt;P&gt;Description:&lt;/P&gt;
&lt;P&gt;System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)&lt;/P&gt;
&lt;P&gt;File name: 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; at Trader.AdBank.Data.SqlClient.SqlMessageQueueProviderBase.GetByBrokerName(TransactionManager transactionManager, String broker, String name, Int32 start, Int32 pageLength, Int32&amp;amp; count)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; at Trader.AdBank.Data.Bases.MessageQueueProviderBaseCore.GetByBrokerName(String broker, String name) in C:\Trader\AdBank\Version\3.0\Trader.AdBank.Data\Bases\MessageQueueProviderBaseCore.generated.cs:line 858&lt;/P&gt;
&lt;P&gt;&amp;nbsp; at Trader.AdBank.Messaging.MsmqClient.get_Entity() in C:\Trader\AdBank\Version\3.0\Trader.AdBank.Messaging\MsmqClient.cs:line 608&lt;/P&gt;
&lt;P&gt;&amp;nbsp; at Trader.AdBank.Messaging.MsmqClient.Recieve() in C:\Trader\AdBank\Version\3.0\Trader.AdBank.Messaging\MsmqClient.cs:line 347&lt;/P&gt;
&lt;P&gt;=== Pre-bind state information ===&lt;/P&gt;
&lt;P&gt;LOG: User = NT AUTHORITY\SYSTEM&lt;/P&gt;
&lt;P&gt;LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null&lt;/P&gt;
&lt;P&gt;(Fully-specified)&lt;/P&gt;
&lt;P&gt;LOG: Appbase = file:///C:/Trader/AdBank/Version/3.0/Trader.AdBank.Services.MessageImporter/bin/Debug/&lt;/P&gt;
&lt;P&gt;LOG: Initial PrivatePath = NULL&lt;/P&gt;
&lt;P&gt;Calling assembly : Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null.&lt;/P&gt;
&lt;P&gt;===&lt;/P&gt;
&lt;P&gt;LOG: This bind starts in default load context.&lt;/P&gt;
&lt;P&gt;LOG: Using application configuration file: C:\Trader\AdBank\Version\3.0\Trader.AdBank.Services.MessageImporter\bin\Debug\Trader.AdBank.Services.MessageImporter.exe.config&lt;/P&gt;
&lt;P&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;/P&gt;
&lt;P&gt;LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).&lt;/P&gt;
&lt;P&gt;LOG: Attempting download of new URL file:///C:/Trader/AdBank/Version/3.0/Trader.AdBank.Services.MessageImporter/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Common.DLL.&lt;/P&gt;
&lt;P&gt;WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN&lt;/P&gt;
&lt;P&gt;ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1071103</link><pubDate>Tue, 14 Nov 2006 00:26:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1071103</guid><dc:creator>Sandra</dc:creator><description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you help me on something a bit different?&lt;/P&gt;
&lt;P&gt;I have an unmanaged control (MFC) I want to use in IE. This is using several Dlls managed and unmanaged. &lt;/P&gt;
&lt;P&gt;The only way I set it to work is when I copied the managed assemblies to the IE dir. But they still need to be at the OCX dir for registration to work. Why?&lt;/P&gt;
&lt;P&gt;I also tried to load the managed assembly with LoadFrom, but it doesn't seam to change the IE context.&lt;/P&gt;
&lt;P&gt;I tried to sign the assemblies but now the ocx is not registering, when I specify the publicKey in the dependency.&lt;/P&gt;
&lt;P&gt;Thanks a lot...&lt;/P&gt;
&lt;P&gt;Sandra&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1353183</link><pubDate>Sat, 23 Dec 2006 22:40:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1353183</guid><dc:creator>Jim</dc:creator><description>&lt;P&gt;Could this same information be included in exception messages when loads fail? It is rare for a fusion log to be enabled on a machine, and having to enable it and then try to recreate an error is 1) tedious internally, 2) untenable externally (ever try to get an end-user to enable a fusion log). This information is exactly what a developer expects to see in an exception message.&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1353451</link><pubDate>Sat, 23 Dec 2006 23:07:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1353451</guid><dc:creator>jshowalter</dc:creator><description>&lt;P&gt;We spent two days tracking down the cause of HRESULT: 0x8013141A. The fusion log didn't help. The problem was ultimately tracked to calling LoadFrom with an assembly's full pathname that was not in the build path or GAC, where the assembly being loaded and the assembly doing the loading were both delay signed, and skip verification had not been run. Googling for the answer to the problem was futile, because there were too many false positives. It would be very helpful to have a table available online that lists each of the loader error codes, and every known possible cause of each error. This blog might be a good place to start such a table.&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1365444</link><pubDate>Tue, 26 Dec 2006 20:07:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1365444</guid><dc:creator>jshowalter</dc:creator><description>&lt;P&gt;We have delay-signed assemblies on a test machine. Skip verification has been run. We can load an assembly from the build output directory using Assembly.LoadFrom, but the fusion log consistently displays a load failure for XmlSerializers, an assembly that exists nowhere on our machine. We think it is something that .NET generates. We have disabled all "Generate serialization assembly" dropdowns in all of our projects, and that seems to have no effect. There are numerous posts online about this bind failure and XmlSerializers, but no answers to the problem. Can you explain what is happening, whether that can cause loads to fail (it does in our case if we disable skip verification), and how to make it stop? Here is the fusion log:&lt;/P&gt;
&lt;P&gt;*** Assembly Binder Log Entry &amp;nbsp;(12/26/2006 @ 8:57:50 AM) ***&lt;/P&gt;
&lt;P&gt;The operation failed.&lt;/P&gt;
&lt;P&gt;Bind result: hr = 0x80070002. The system cannot find the file specified.&lt;/P&gt;
&lt;P&gt;Assembly manager loaded from: &amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll&lt;/P&gt;
&lt;P&gt;Running under executable &amp;nbsp;C:\Program Files\TestDriven.NET 2.0\ProcessInvocation.exe&lt;/P&gt;
&lt;P&gt;--- A detailed error log follows. &lt;/P&gt;
&lt;P&gt;=== Pre-bind state information ===&lt;/P&gt;
&lt;P&gt;LOG: User = XYZ\testuser&lt;/P&gt;
&lt;P&gt;LOG: DisplayName = TestProject.XmlSerializers, Version=2.1.3.0, Culture=neutral, PublicKeyToken=7ce6deabcb36a8ea, processorArchitecture=MSIL&lt;/P&gt;
&lt;P&gt;(Fully-specified)&lt;/P&gt;
&lt;P&gt;LOG: Appbase = file:///C:/BuildOutput/assemblies/Debug&lt;/P&gt;
&lt;P&gt;LOG: Initial PrivatePath = NULL&lt;/P&gt;
&lt;P&gt;LOG: Dynamic Base = NULL&lt;/P&gt;
&lt;P&gt;LOG: Cache Base = C:\Documents and Settings\testuser\Local Settings\Temp\TestDrivenShadowCopy\633027202692884393&lt;/P&gt;
&lt;P&gt;LOG: AppName = domain-nunit.addin.dll&lt;/P&gt;
&lt;P&gt;Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.&lt;/P&gt;
&lt;P&gt;===&lt;/P&gt;
&lt;P&gt;LOG: This bind starts in default load context.&lt;/P&gt;
&lt;P&gt;LOG: Using application configuration file: BuildOutput\assemblies\Debug\TestProject.dll.config.temp&lt;/P&gt;
&lt;P&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;/P&gt;
&lt;P&gt;LOG: Post-policy reference: TestProject.XmlSerializers, Version=2.1.3.0, Culture=neutral, PublicKeyToken=7ce6deabcb36a8ea, processorArchitecture=MSIL&lt;/P&gt;
&lt;P&gt;LOG: GAC Lookup was unsuccessful.&lt;/P&gt;
&lt;P&gt;LOG: Attempting download of new URL file:///C:/BuildOutput/assemblies/Debug/TestProject.XmlSerializers.DLL.&lt;/P&gt;
&lt;P&gt;LOG: Attempting download of new URL file:///C:/BuildOutput/assemblies/Debug/TestProject.XmlSerializers/TestProject.XmlSerializers.DLL.&lt;/P&gt;
&lt;P&gt;LOG: Attempting download of new URL file:///C:/BuildOutput/assemblies/Debug/TestProject.XmlSerializers.EXE.&lt;/P&gt;
&lt;P&gt;LOG: Attempting download of new URL file:///C:/BuildOutput/assemblies/Debug/TestProject.XmlSerializers/TestProject.XmlSerializers.EXE.&lt;/P&gt;
&lt;P&gt;LOG: All probing URLs attempted and failed.&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1484574</link><pubDate>Wed, 17 Jan 2007 21:58:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1484574</guid><dc:creator>GQ</dc:creator><description>&lt;P&gt;I have an issue that is related to the IE7 installation on XP. The system MPR and SHLWAPI DLLs have been updated during IE7 install and now attempt to load DWMAPI.DLL (a Vista only DLL).&lt;/P&gt;
&lt;P&gt;My problem is when I create an application that runs as a Windows Service using .NET and VS2005 C#. &lt;/P&gt;
&lt;P&gt;I have a utility .NET Class project (DLL) that specifically uses the System.Net assemblies and is called by my Windows Service assembly. I also have another non-Windows Service application that also uses the utility class.&lt;/P&gt;
&lt;P&gt;The non-service application uses the same code in the Window Service version and it runs fine. It loads the utility class DLL without crashing even though I've used the Depends tool to verify that there is a problem finding the missing DWMAPI.DLL.&lt;/P&gt;
&lt;P&gt;The Windows service version of my application however crashes with a "Could not load file or assembly" error when accessing my utility DLL.&lt;/P&gt;
&lt;P&gt;Apparently whatever missing code is in DWMAPI.DLL is not really accessed by my utility DLL since all functionality is there in my non-service application. It is just the Service application that bails out on the loading of the DLL.&lt;/P&gt;
&lt;P&gt;What is the difference between dynamic assembly loading for a .NET Windows Service application and a standard .NET Windows Application?&lt;/P&gt;
&lt;P&gt;Is there a way for me to set a config switch or add some code to my utility DLL so that dynamic assembly loading doesn't crash the service app during load time?&lt;/P&gt;
&lt;P&gt;My other only recourse is to move the code from my utility DLL and place it directly into each of the applications.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;GQ&lt;/P&gt;</description></item><item><title>Assembly loading failure logging</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1555310</link><pubDate>Tue, 30 Jan 2007 08:24:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1555310</guid><dc:creator>Rory Primrose</dc:creator><description>&lt;p&gt;This is basically a reminder post, but you might find it useful. In the development I have been doing&lt;/p&gt;
</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1673914</link><pubDate>Wed, 14 Feb 2007 08:54:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1673914</guid><dc:creator>Yoganand</dc:creator><description>&lt;P&gt;&amp;nbsp; &amp;nbsp;hi i am running my asp.net ajax application in windows 2003 server with iis6 but everything is working fine in all the browsers but i am getting following error in Internet Explorer 7….&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;MissingMethodException: Method not found&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;any help?.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Yoganand&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1754255</link><pubDate>Sun, 25 Feb 2007 00:29:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1754255</guid><dc:creator>Oliver Hausler</dc:creator><description>&lt;p&gt;Hi Suzanne,&lt;/p&gt;
&lt;p&gt;Again and again and again I've been plagued by assembly binding failures &amp;quot;The located assembly's manifest definition with name [yourAssembly] does not match the assembly reference&amp;quot; or MissingMethodExceptions. After using fuslogvw and whatever, I still could not find any error on my side. I am having strongly-named assemblies and I am exclusively using project references in my solution; and there is no reason why references should break from time to time. (VS 2005 SP1 was no remedy, by the way.)&lt;/p&gt;
&lt;p&gt;--&amp;gt; There is something very intersting I found out today, which I haven't found in any blog so far, and which I wanted to share with you and all others who are facing the same problem. I found that the defective solution without any modifications would compile and run perfectly, when I rename the base folder which contains it, or when I copy it into another folder, or when I run it on a different machine. The funny thing is, when I rename the folder back to the old names, the reference breaks again.&lt;/p&gt;
&lt;p&gt;Even though fuslogvw states to have loaded all current assembly versions, and even though all assembly versions in my bin folder are up-to-date, an older copy is loaded from somewhere, and I assume this happens after a file had been locked (an assumption based on when it happens).&lt;/p&gt;
&lt;p&gt;--&amp;gt; If anybody has an idea, especially if there might be another way like clearing a cache or whatever instead of renaming the solution folder (which isn't best practice of solving this issue I believe), please let me know.&lt;/p&gt;
&lt;p&gt;oliver.hausler AT hausler.info&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1763390</link><pubDate>Mon, 26 Feb 2007 17:15:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1763390</guid><dc:creator>Oliver Hausler</dc:creator><description>&lt;p&gt;Suzanne stated in another thread, that strongly-named assemblies aren't updated in the download cache when the assembly version hasn't changed. This leaded me to the conclusion, that calling &amp;quot;gacutil /cdl&amp;quot; to delete the download cache manually before each compilation would solve the problem, and bingo, the problem is gone.&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1763992</link><pubDate>Mon, 26 Feb 2007 19:29:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1763992</guid><dc:creator>AnDrah</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking for solving a problem with hosting a WinForm UserControl in an aspx page in ie6 / 7.&lt;/p&gt;
&lt;p&gt;The problem is not located in resolving the dll, because fuslogvw says the dll was successfully loaded, but in not displaying the form in the page on the client. All I can see is a little square as placeholder for the control.&lt;/p&gt;
&lt;p&gt;I can't find any information about further debugging beyond this point. All hints on enabling DebugIEHost seem to only work in .NET 1.1 and older, but not in 2.0 and newer?!?&lt;/p&gt;
&lt;p&gt;All security issues I checked over and over again. The control is loading on one machine on the other it does not. On some machines one of the two controls I host in this application does load, the other on does not.&lt;/p&gt;
&lt;p&gt;I am only lokking for new input resolving this problem, becaus I really don't know what to do further more.&lt;/p&gt;
&lt;p&gt;Every hint or link would be a great help for me.&lt;/p&gt;
&lt;p&gt;Thank you all&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;andreas dot draheim at impuls-nbg dot de&lt;/p&gt;</description></item><item><title>PPUtil: A Utility for Publisher Policy Generation</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#1857607</link><pubDate>Sun, 11 Mar 2007 11:44:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1857607</guid><dc:creator>mattonsoftware.com</dc:creator><description>&lt;p&gt;The conventional method of creating publisher policy (PP) assemblies becomes cumbersome when dealing&lt;/p&gt;
</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#2032169</link><pubDate>Thu, 05 Apr 2007 14:45:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2032169</guid><dc:creator>Vincenzo Colluto</dc:creator><description>&lt;P&gt;hi i want to create a my application to check assembly binding failures. The objective is to use this application on a computer without sdk installed. &lt;/P&gt;
&lt;P&gt;You think this is possible? can you help me?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description></item><item><title>Debugging an InvalidCastException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#2105100</link><pubDate>Fri, 13 Apr 2007 01:50:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2105100</guid><dc:creator>Suzanne Cook's .NET CLR Notes</dc:creator><description>&lt;p&gt;First, obviously, find the two types for which the cast failed and verify that they are the same type&lt;/p&gt;
</description></item><item><title>Debugging a MissingMethodException, MissingFieldException, TypeLoadException</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#2105240</link><pubDate>Fri, 13 Apr 2007 01:57:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2105240</guid><dc:creator>Suzanne Cook's .NET CLR Notes</dc:creator><description>&lt;p&gt;Say you've just installed some assemblies from a third party and now you're seeing a MissingMethodException,&lt;/p&gt;
</description></item><item><title>Determining the Referencing Assembly</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#2105271</link><pubDate>Fri, 13 Apr 2007 02:00:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2105271</guid><dc:creator>Suzanne Cook's .NET CLR Notes</dc:creator><description>&lt;p&gt;Say you're debugging your application and you see that version 1.0 of an assembly is being loaded when&lt;/p&gt;
</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#3310335</link><pubDate>Fri, 15 Jun 2007 12:51:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3310335</guid><dc:creator>Volker</dc:creator><description>&lt;P&gt;Hi Suzanne&lt;/P&gt;
&lt;P&gt;this blog is an excellent source of knowledge.&lt;/P&gt;
&lt;P&gt;many postings here seem to be in a direction of it runs on one but not on the orther machine or it does not run on this machine.&lt;/P&gt;
&lt;P&gt;Maybe some links on basic things to check(from an enginering not dev perspective) would help&lt;/P&gt;
&lt;P&gt;Maybe such a tool does exist in some dev root of microsoft....&lt;/P&gt;
&lt;P&gt;This would solve many of my deployment problems and would be greatly appriciated !!!&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#3411915</link><pubDate>Wed, 20 Jun 2007 00:11:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3411915</guid><dc:creator>Volker</dc:creator><description>&lt;P&gt;OK, fusion is the solution&lt;/P&gt;
&lt;P&gt;but it doesn't reveal to me why these things are so deeply covered under the surface.&lt;/P&gt;
&lt;P&gt;Not sure if there is any ressource e.g. book, internet, course which has all on dotnet aspects&lt;/P&gt;
&lt;P&gt;sorry if my english is here a bit rude&lt;/P&gt;</description></item><item><title>Help!</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#4295458</link><pubDate>Wed, 08 Aug 2007 20:14:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4295458</guid><dc:creator>Pierre</dc:creator><description>&lt;P&gt;Here is the situation. A .net executable scans a predefined directory for dll files. It will load each dll, enumerate the types and try to do a CreateInstance on each type implementing some known interface. This mechanism usually works fine, but sometimes a FileNotFound exception occurs. &lt;/P&gt;
&lt;P&gt;A debugging session showed the assembly is loaded correctly, then the CreateInstance causes the creation of an object located in this already loaded assembly. The runtime then tries to load the dll again. As the dlls are located in a predefined directory it cannot find them and raises this exception.&lt;/P&gt;
&lt;P&gt;After wondering why the runtime would try to load a dll it already has in memory, I decided to just manually copy them in the Debug directory of my project. Another Debug session, and this exception is gone, but a new one occurs System.IO.FileLoadException. The runtime seems to complain about this: &lt;/P&gt;
&lt;P&gt;"The located assembly's manifest definition does not match the assembly reference.&lt;/P&gt;
&lt;P&gt;(Exception from HRESULT: 0x80131040)"&lt;/P&gt;
&lt;P&gt;Using your tutorial I have gone through the fusion logging troubleshooting, and found this:&lt;/P&gt;
&lt;P&gt;"Comparing the assembly name resulted in the mismatch: Revision Number".&lt;/P&gt;
&lt;P&gt;Which seems odd to me as the dlls are projects I have compiled myself, and I have checked every copy of them located on my hard drive, and all the files are identical.&lt;/P&gt;
&lt;P&gt;(All those files have strong names too)&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description></item><item><title>tricky? Loading native image failure??</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#6956567</link><pubDate>Wed, 02 Jan 2008 19:34:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6956567</guid><dc:creator>Gideon</dc:creator><description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;I have a little pickle while loading my app. Would appreciate it so much if you could help! =)&lt;/P&gt;
&lt;P&gt;Checked the paths, and the logs created by fuslogvw&lt;/P&gt;
&lt;P&gt;I did use a batch ngen job to make native images of all my assemblies earlier.But i've uninstalled them, i checked them with ngen display &amp;lt;asm&amp;gt;&lt;/P&gt;
&lt;P&gt;interestingly, caspol complains "unable to load assembly"&lt;/P&gt;
&lt;P&gt;Heres the log for the main executable:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://pastebin.com/f3dd89ada" target=_new rel=nofollow&gt;http://pastebin.com/f3dd89ada&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;the above assembly in turn should load 4 other assemblies, heres the log to one of them(since all of them are alike):&lt;/P&gt;
&lt;P&gt;&lt;A href="http://pastebin.com/f715d7c5e" target=_new rel=nofollow&gt;http://pastebin.com/f715d7c5e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks so much&lt;/P&gt;
&lt;P&gt;Gideon&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#7290458</link><pubDate>Mon, 28 Jan 2008 20:29:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7290458</guid><dc:creator>Ramesh</dc:creator><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;This has been a very useful information. I am running into with assembly referencing and need some help. Any help is highly appreciated.&lt;/p&gt;
&lt;p&gt;I have two assemblies X and Y referencing a third assembly Z. X refers to Z(version 1.0) and Y refers to Z(version 1.1). Z defines a delegate StatusChangedEventHandler and a type in Y defines an event StatusChanged of type StatusChangedEventHandler.&lt;/p&gt;
&lt;p&gt;Now, the following line in X(a type in X) throws a MissingMethodException&lt;/p&gt;
&lt;p&gt;Y.StatusChanged += new StatusChangedEventHandler(OnStatusChanged);&lt;/p&gt;
&lt;p&gt;While debugging i see that both versions of Z are loaded.&lt;/p&gt;
&lt;p&gt;What would you think is happening. I am just stuck here. &lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#7444405</link><pubDate>Mon, 04 Feb 2008 21:56:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7444405</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;I am trying to implement a &amp;quot;normal&amp;quot; publisher policy. I have an assembly, that I created using ILMerge from another assembly (.net) and some other interop.*.dll files.&lt;/p&gt;
&lt;p&gt;The problem is that the fusion log tells me:&lt;/p&gt;
&lt;p&gt;WRN: Comparing the assembly name resulted in mismatch of Processor Architecture: Ref MSIL, Def Legacy.&lt;/p&gt;
&lt;p&gt;So basically the bindingRedirect is working, but the processorArchitecture between the policy assembly and the actual assembly is different.&lt;/p&gt;
&lt;p&gt;Now when I create the publisher policy I can control which platform to make an assembly (policy.*.dll) for, but I don't know how I can get it to create a 'Legacy' architecture (IF there is such a thing at all). On the other hand, if I cannot change this policy assembly, I have not found a way how I can specify that the created dll (using ILMerge) has MSIL as platform (or any other one for that reason)&lt;/p&gt;
&lt;p&gt;Any ideas would help me a lot.&lt;/p&gt;
&lt;p&gt;Thanks a dozen for anyone who can answer this.&lt;/p&gt;
&lt;p&gt;Max&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#7882068</link><pubDate>Sun, 24 Feb 2008 23:13:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7882068</guid><dc:creator>Nonie Mouse</dc:creator><description>&lt;p&gt;Thanks! &amp;nbsp;Helped me get to the bottom of a problem w/0x80131040 I was struggling with. &lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#8197538</link><pubDate>Fri, 14 Mar 2008 10:37:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8197538</guid><dc:creator>RajKumar</dc:creator><description>&lt;p&gt;Can We work with single Clr on Diffrent versions.&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#8767513</link><pubDate>Wed, 23 Jul 2008 21:41:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8767513</guid><dc:creator>Nick Anzano</dc:creator><description>&lt;p&gt;Hi Suzanne,&lt;/p&gt;
&lt;p&gt;I'm receiving this message from a function in SQL Server 2005 which calls .Net Assemblies:&lt;/p&gt;
&lt;p&gt;Msg 6522, Level 16, State 2, Line 1&lt;/p&gt;
&lt;p&gt;A .NET Framework error occurred during execution of user-defined routine or aggregate &amp;quot;acgCCEncrypt&amp;quot;: &lt;/p&gt;
&lt;p&gt;System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {47DD5BC9-54B1-45BB-A7C4-678F529EDECE} failed due to the following error: 8007045a.&lt;/p&gt;
&lt;p&gt;System.IO.FileLoadException: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; at EncryptCC.EncryptCard(String CardNo)&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Everything was fine for a few days, and then the function started throwing these errors. &lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#8916919</link><pubDate>Mon, 01 Sep 2008 19:14:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8916919</guid><dc:creator>Mike Cripps</dc:creator><description>&lt;p&gt;Many thanks! This solved a problem I'd been having and the rest of the internet was being unhelpful about.&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9062840</link><pubDate>Wed, 12 Nov 2008 18:02:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9062840</guid><dc:creator>Jitendra Mishra</dc:creator><description>&lt;P&gt;Hey Suzanne,&lt;/P&gt;
&lt;P&gt;Could you please help me out for I am getting &lt;/P&gt;
&lt;P&gt;System.IO.FileLoadException: Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).&lt;/P&gt;
&lt;P&gt;I am using this dll in my test project&lt;/P&gt;
&lt;P&gt;The problem is that if I reference this dll in a separate project it works fine and gets loaded&lt;/P&gt;
&lt;P&gt;However if I reference in my existing test project then It throws the mentioned error&lt;/P&gt;
&lt;P&gt;I made sure to remove all the previous versions of Interop.shdocvw dlls and replaced it with that of System32 folder.&lt;/P&gt;
&lt;P&gt;Helping to resolve this will be highly appreciated&lt;/P&gt;</description></item><item><title>Hi , some questions</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9317702</link><pubDate>Wed, 14 Jan 2009 03:53:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9317702</guid><dc:creator>Abramovicl</dc:creator><description>&lt;P&gt;Hi , i have some questions about you desing&lt;/P&gt;
&lt;P&gt;maybe you can give designer contacts?&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9409071</link><pubDate>Mon, 09 Feb 2009 21:29:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9409071</guid><dc:creator>P K Rao</dc:creator><description>&lt;p&gt;Hi Suzanne.. this post was very useful. I found the problem which was troubling me for quite some time.. Alls ok now.. &lt;/p&gt;
&lt;p&gt;Ta&lt;/p&gt;
&lt;p&gt;Rao&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9443345</link><pubDate>Wed, 25 Feb 2009 03:04:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9443345</guid><dc:creator>Branchenbuch Magdeburg</dc:creator><description>&lt;P&gt;I have an error in IE7:&lt;/P&gt;
&lt;P&gt;MissingMethodException: Method not found&lt;/P&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9503004</link><pubDate>Tue, 24 Mar 2009 04:09:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9503004</guid><dc:creator>Sunitha</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;following steps resvoled my problem:&lt;/p&gt;
&lt;p&gt;Cleant IE cash and file.&lt;/p&gt;
&lt;p&gt;unregister asp .net aspnet_regiis -u&lt;/p&gt;
&lt;p&gt;register asp .net aspnet_regiis -i&lt;/p&gt;
&lt;p&gt;assign aspnet user to c:\windows\temp&lt;/p&gt;
&lt;p&gt;Hope this help.s&lt;/p&gt;</description></item><item><title>Does user write permissions to the Temporary ASP.NET Files folder pose any security problems?</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9823508</link><pubDate>Wed, 08 Jul 2009 09:32:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9823508</guid><dc:creator>Joergen Bech</dc:creator><description>&lt;P&gt;I am experiencing assembly binding failures due to insufficient permissions to the Temporary ASP.NET Files folder.&lt;/P&gt;
&lt;P&gt;The application uses (web.config) Forms authentication with Impersonate = True and IIS Windows Integrated Authentication.&lt;/P&gt;
&lt;P&gt;According to ASP.NET Identity Matrix, this means that the WindowsIdentity resolves to Domain\UserName and according to ASP.NET Required Access Control Lists (ACLs), the WindowsIdentity requires read/write permissions to the Temporary ASP.NET Files folder.&lt;/P&gt;
&lt;P&gt;Using the Fusion log viewer, I can confirm that the assembly binding failure is due to Domain\UserName (belonging to the "Users" group in security) only having read permissions to this folder, but not write permissions.&lt;/P&gt;
&lt;P&gt;The questions are:&lt;/P&gt;
&lt;P&gt;Are there any security implications of assigning write permissions to the Temporary ASP.Net Files folder?&lt;/P&gt;
&lt;P&gt;Is such a server configuration change commonly used? If not, why would WindowsIdentity resolve to Domain\UserName for this combination of web.config settings - or should this combination not be used in this context?&lt;/P&gt;
&lt;P&gt;Note: The problem only occurs if a non-admin user is the first to hit the page. If the assembly has already been compiled and stored in Temporary ASP.NET Files due to an admin user hitting the page, there are no problems for subsequent users. I do NOT wish to place the assemblies in the GAC.&lt;/P&gt;</description></item><item><title>Could not load file or assembly 'ADODB' or one of its dependencies. Access is denied. </title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9847481</link><pubDate>Fri, 24 Jul 2009 14:25:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9847481</guid><dc:creator>Sudeep</dc:creator><description>&lt;p&gt;I have the following problems :&lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;Exception Details: System.IO.FileLoadException: Could not load file or assembly 'ADODB' or one of its dependencies. Access is denied.&lt;/p&gt;
&lt;p&gt;Source Error: &lt;/p&gt;
&lt;p&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Assembly Load Trace: The following information can be helpful to determine why the assembly 'ADODB' could not be loaded.&lt;/p&gt;
&lt;p&gt;=== Pre-bind state information ===&lt;/p&gt;
&lt;p&gt;LOG: User = Unknown&lt;/p&gt;
&lt;p&gt;LOG: DisplayName = ADODB&lt;/p&gt;
&lt;p&gt; (Partial)&lt;/p&gt;
&lt;p&gt;LOG: Appbase = file:///D:/Precision/Published/Web/Applications/DxCG.Web.Shell/DxCG.Web.Shell/&lt;/p&gt;
&lt;p&gt;LOG: Initial PrivatePath = D:\Precision\Published\Web\Applications\DxCG.Web.Shell\DxCG.Web.Shell\bin&lt;/p&gt;
&lt;p&gt;Calling assembly : (Unknown).&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;LOG: This bind starts in default load context.&lt;/p&gt;
&lt;p&gt;LOG: Using application configuration file: D:\Precision\Published\Web\Applications\DxCG.Web.Shell\DxCG.Web.Shell\web.config&lt;/p&gt;
&lt;p&gt;LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config&lt;/p&gt;
&lt;p&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;/p&gt;
&lt;p&gt;LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).&lt;/p&gt;
&lt;p&gt;LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/f86d14c1/8f04ea0b/ADODB.DLL.&lt;/p&gt;
&lt;p&gt;LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/f86d14c1/8f04ea0b/ADODB/ADODB.DLL.&lt;/p&gt;
&lt;p&gt;LOG: Attempting download of new URL file:///D:/Precision/Published/Web/Applications/DxCG.Web.Shell/DxCG.Web.Shell/bin/ADODB.DLL.&lt;/p&gt;
&lt;p&gt;LOG: Using application configuration file: D:\Precision\Published\Web\Applications\DxCG.Web.Shell\DxCG.Web.Shell\web.config&lt;/p&gt;
&lt;p&gt;LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config&lt;/p&gt;
&lt;p&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;/p&gt;
&lt;p&gt;LOG: Post-policy reference: ADODB, Version=2.8.0.0, Culture=neutral, PublicKeyToken=5121ca9351a1ae02&lt;/p&gt;
&lt;p&gt;ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.&lt;/p&gt;
&lt;p&gt;Stack Trace: &lt;/p&gt;
&lt;p&gt;[FileLoadException: Could not load file or assembly 'ADODB' or one of its dependencies. Access is denied.]&lt;/p&gt;
&lt;p&gt;..........&lt;/p&gt;
&lt;p&gt;Can you figure out what is the problem ?&lt;/p&gt;
&lt;p&gt;I have .NET 3.5 installed. I have given all the permission but still not working. &lt;/p&gt;
&lt;p&gt;Is it ADODB version peroblem or MSSQL server problem ?&lt;/p&gt;</description></item><item><title>re: Debugging Assembly Loading Failures</title><link>http://blogs.msdn.com/suzcook/archive/2003/05/29/debugging-assembly-loading-failures.aspx#9895772</link><pubDate>Wed, 16 Sep 2009 12:38:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895772</guid><dc:creator>Nikunj Banker</dc:creator><description>&lt;p&gt;I am getting this error in the fusion log viewer, when i run my application. could you please help me see figure this out?&lt;/p&gt;
&lt;p&gt;*** Assembly Binder Log Entry &amp;nbsp;(16-Sep-2009 @ 1:52:33 PM) ***&lt;/p&gt;
&lt;p&gt;The operation failed.&lt;/p&gt;
&lt;p&gt;Bind result: hr = 0x80131040. No description available.&lt;/p&gt;
&lt;p&gt;Assembly manager loaded from: &amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll&lt;/p&gt;
&lt;p&gt;Running under executable &amp;nbsp;C:\Program Files\Microsoft Office\Office12\WINWORD.EXE&lt;/p&gt;
&lt;p&gt;--- A detailed error log follows. &lt;/p&gt;
&lt;p&gt;=== Pre-bind state information ===&lt;/p&gt;
&lt;p&gt;LOG: User = DECOSSOFTDEV\nikunj&lt;/p&gt;
&lt;p&gt;LOG: DisplayName = DecosOdmaAssembly, Version=30.0.0.25144, Culture=neutral, PublicKeyToken=9f8142849d324fd0&lt;/p&gt;
&lt;p&gt; (Fully-specified)&lt;/p&gt;
&lt;p&gt;LOG: Appbase = file:///C:/Program Files/Microsoft Office/Office12/&lt;/p&gt;
&lt;p&gt;LOG: Initial PrivatePath = NULL&lt;/p&gt;
&lt;p&gt;LOG: Dynamic Base = NULL&lt;/p&gt;
&lt;p&gt;LOG: Cache Base = NULL&lt;/p&gt;
&lt;p&gt;LOG: AppName = NULL&lt;/p&gt;
&lt;p&gt;Calling assembly : (Unknown).&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;LOG: This bind starts in default load context.&lt;/p&gt;
&lt;p&gt;LOG: Using application configuration file: C:\Program Files\Microsoft Office\Office12\WINWORD.EXE.Config&lt;/p&gt;
&lt;p&gt;LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&lt;/p&gt;
&lt;p&gt;LOG: Post-policy reference: DecosOdmaAssembly, Version=30.0.0.25144, Culture=neutral, PublicKeyToken=9f8142849d324fd0&lt;/p&gt;
&lt;p&gt;LOG: GAC Lookup was unsuccessful.&lt;/p&gt;
&lt;p&gt;LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office12/DecosOdmaAssembly.DLL.&lt;/p&gt;
&lt;p&gt;LOG: Assembly download was successful. Attempting setup of file: C:\Program Files\Microsoft Office\Office12\DecosOdmaAssembly.dll&lt;/p&gt;
&lt;p&gt;LOG: Entering run-from-source setup phase.&lt;/p&gt;
&lt;p&gt;LOG: Assembly Name is: DecosOdmaAssembly, Version=30.50.108.24769, Culture=neutral, PublicKeyToken=9f8142849d324fd0&lt;/p&gt;
&lt;p&gt;WRN: Comparing the assembly name resulted in the mismatch: Minor Version&lt;/p&gt;
&lt;p&gt;ERR: The assembly reference did not match the assembly definition found.&lt;/p&gt;
&lt;p&gt;ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Nikunj Banker&lt;/p&gt;</description></item></channel></rss>