How can I enable Assembly binding logging?
A good place to start your investigation into any failed binding is to use the "fuslogvw.exe" utility. This may give you the information you need related to the binding failure so that you don't have to go messing around with any registry values to turn binding logging on.
Fuslogvw MSDN page
The utility should be in your Microsoft SDKs folder, which would be something like this, depending on your operating system:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v{SDK version}A\Bin\FUSLOGVW.exe"
Run this utility as Administrator, from Developer Command Prompt (as Admin) type
FUSLOGVW
a new screen appearsGo to Settings to and select Enable all binds to disk also select Enable custom log path and select the path of the folder of your choice to store the binding log.
Restart IIS.
From the FUSLOGVW window click Delete all to clear the list of any previous bind failures
Reproduce the binding failure in your application
In the utility, click Refresh. You should then see the bind failure logged in the list.
You can view information about the bind failure by selecting it in the list and clicking View Log
The first thing I look for is the path in which the application is looking for the assembly. You should also make sure the version number of the assembly in question is what you expect.
Assembly Binding Log Viewer (fuslogvw) not logging any bindings
Going into Internet Explorer --> Tools --> Internet Options --> Browsing History,Delete..., , checking Temporary Internet Files and clicking delete fixed my issue.
Thanks to this blog post: http://www.request-response.com/blog/CommentView,guid,9f383687-3e1e-4568-833b-ef80e0938337.aspx
Resolving .NET TypeLoadExceptions in Azure App Service
Just wanted to post an update to say that Fusion logging on an Azure App service can now be enabled, there's an article on it here.
Basically all you have to do is add an application setting called WEBSITE_FUSIONLOGGING_ENABLED and set it to 1.
How to turn on assembly binding logging in C#?
http://www.codeproject.com/Tips/141281/WRN-Asssembly-binding-logging-is-turned-OFF
Does this help?
WRN: Assembly binding logging is turned OFF
You only need to turn assembly bind logging on if you wish to diagnose a problem with loading assemblies. If you need to do this, the best way to turn logging on temporarily is using the Fusion Log Viewer, fuslogvw.exe. Instructions on how to use it can be found here.
Why doesn't fusion log binding errors?
This question is similar to How to enable assembly bind failure logging (Fusion) in .NET related to Fusion bind logging
Related Topics
Communicate Between Two Windows Forms in C#
How to Get the Application'S Path in a .Net Console Application
Generating All Possible Combinations
Why Would You Use Expression≪Func≪T≫≫ Rather Than Func≪T≫
Difference Between Task and Thread
Finding the Variable Name Passed to a Function
What Do Two Question Marks Together Mean in C#
Recursion, Parsing Xml File With Attributes into Treeview C#
Copy the Entire Contents of a Directory in C#
How to Handle Both a Single Item and an Array For the Same Property Using Json.Net
Webbrowser Control in a New Thread
How To: Execute Command Line in C#, Get Std Out Results
Why Is Floating Point Arithmetic in C# Imprecise
What Is the Best Workaround For the Wcf Client 'Using' Block Issue
Is There a Difference Between "Throw" and "Throw Ex"