Can't turn on assembly binding logging - asp.net

I'm trying to debug an error of the form
Could not load file or assembly '[assembly], Version=[version], Culture=[culture], PublicKeyToken=[publicKeyToken]' or one of its dependencies.
The error page tells me that assembly binding logging, which could help me debug my problem, is turned off:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
I navigated to HKLM\Software\Microsoft\Fusion in the registry, created a DWORD value called EnableLog, and set it to 1. I refreshed the web page, but I still got the same warning that Assembly binding logging was turned off. I rebooted the server, but assembly binding logging still wasn't turned on.
Then I tried setting some additional registry settings from this question. Still no assembly binding logging.
This is all on an Azure web role virtual machine by the way. Fuslogvw is not installed. In order to get it, I would have to install the Windows SDK on all of my web roles. And I don't want to use fuslogvw anyway; I just want assembly binding logs.
What else do I need to do to turn on assembly binding logging?
Edit: I installed the Windows SDK on both web roles, but it looks like fuslogvw is still not there. At least, I get a "command not found" error trying to run fuslogvw from the admin command prompt, and fuslogvw.exe is not in the location indicated by this question (which I realize is referring to a fuslogvw.exe installed through Visual Studio, and part of an older version of the Windows SDK than what I installed).
Edit: I installed an older Windows SDK, and then found fuslogvw.exe (I'll bet it actually came with the first SDK I installed, and I was just a fool and couldn't find it). I found it in D:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools.
Now I can debug the error I'm getting.
However, the original question is still open: what could I be missing trying to turn on assembly binding logging through registry settings?
(The reason I want to be able to use registry settings instead of fuslogvw from the Windows SDK is that I can configure my web roles to set registry settings automatically, but to use the Windows SDK I would have to manually log in to my web roles and run the graphical installer. It's not that much work to install the SDK, but it's the principle of the thing. The registry settings should work, and automation is better than manual tasks.)

Related

BizTalk 2013 R2 Receive Pipeline Error

I'm getting this error message when I submit the input file (which BizTalk eats up as expected)...
There was a failure executing the receive pipeline:
"FileName.BizTalk.Pipelines.Receive_ResponsePipeline,
FileName.BizTalk.Pipelines,
Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=040e2e09e19196ce"
Source: "Unknown "
Receive Port: "rcv_Response"
URI: "C:\Data\drops\in\*.txt"
Reason: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft
BizTalk Server 2013 R2\Pipeline Components\FileName.BizTalk.Core.dll' or one of its
dependencies. The system cannot find the file specified.
I checked that directory and the DLL it's looking for is there. I even rebuilt it from the solution along with all its dependencies.
Could this simply be a case of a corrupt file/installation or could it be something else?
The BizTalk solution builds with no issues and I was able to deploy to the BizTalk Server without issues.
To deploy a BizTalk pipeline component, you need to:
Add the file to the "Pipeline Components" folder as the error suggest.
Add it to the Global Assembly Cache (GAC).
Make sure you restart the host instance(s) after deployment AND be sure to deploy it on all BizTalk servers within the BizTalk Group.
Here are the few check points that may be cause of issue:
Check if all the dependent assemblies(Required/imported in given assemby) are also present in GAC & wherever necessary. Any missing dependent assembly gives the same error.
Receive Location handler (check if it is 32 or 64 bit host)
Check if the receive handler is running on all nodes of the farm, if
yes check required dlls are in place
Does EDI component has been properly installed on production box
Check if your project is properly build from Visual Studio, probably
clean the solution and then rebuilt and deploy from VS on dev
environment and then move to prod
After deployment hosts are restarted
Check if receive handler is defined for the host instance Adapters-->File-->New-->Receive Handler and check if the HostInstance is added. Check Receive Location and updated the Receive Handler property.
Check the application pool to Integrated and targeted the v4.0 Framework. This clears the initial error, but then you can receive a new error from IIS that the svc handler was not correctly mapped. I then realized that I needed to run the "aspnet_regiis.exe -I" command against the correct version of aspnet_regiis (the v4.0 framework version).
Sources:
http://social.msdn.microsoft.com/Forums/en-US/246d306b-5a18-497d-a4f6-f8b3a9aacdb8/receive-pipeline-error-could-not-load-file-or-assembly?forum=biztalkgeneral
http://social.technet.microsoft.com/wiki/contents/articles/7204.biztalk-server-list-of-errors-and-warnings-causes-and-solutions.aspx
http://blogs.msdn.com/b/joscot/archive/2013/08/14/biztalk-2013-hosted-wcf-service-fails-because-it-could-not-load-microsoft-biztalk-interop-ssoclient.aspx?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer52156&utm_medium=twitter

ASP.NET - Couldn't publish my web site in windows server 2008 r2

First of all I publish my website in windows 7 and everything goes alright.
But when I'm trying to publish the same website in windows server 2008 r2 I got this error:
Server Error in '/MyWebsite' Application. Could not load file or
assembly 'System.Net.Http' or one of its dependencies. Strong name
signature could not be verified. The assembly may have been tampered
with, or it was delay signed but not fully signed with the correct
private key. (Exception from HRESULT: 0x80131045)
Can any body help me, please!! I looked for this error for days now and I got nothing to do.
Thanks in advance!
It seems you not copied your dll to your another website in window server 2008 r2
if you already copied .dll to your 2008 iis then ..
First check
Both are system are running in same 64bit or 32bit ?
If not then
1.Open IIS Manager
2.Select Application Pools
3.then select the pool you are using
4.go to advanced settings (at right side)
Change the flag of Enable 32-bit application false to true.
Another solution
1- check if you are referencing an assembly which in turn referencing an old version of unity. for example let's say you have an assembly called ServiceLocator.dll which needs an old version of Unity assembly, now when you reference the ServiceLocator you should provide it with the old version of Unity, and that makes the problem.
2- may be the output folder where all projects build their assemblies, has an old version of unity.
you can use FuseLogVw application to find out who is loading the old assemblies, just define a path for the log, and run your solution, then check (in FuseLogvw) the first line where the Unity assembly is loaded, double click it and see the calling assembly, and here you go.
There are many other possibilities..

Microsoft Release Management Server for TFS 2013 - install issue

I've been trying to install the new Microsoft Release Management app that has just been released to MSDN and am having issues
It consists of a server side component for TFS 2013, and a client side component for VS2013
The server side component runs through and says that it is installed fine, but then i can't seem to connect the client side part up to it
After a bit of investigation it seems that the web services site that is installed on the server side is not working properly
It is installed on a Windows 2012 box that is also running TFS 2013, SQL 2012, and SharePoint 2013
If i browse to the newly created ReleaseManagement website I get a 503 (Service Unavailable) message.
I checked out IIS and the app pool had stopped
in the application event log I could see a load of messages saying "current configuration only supports loading images for x86 processor architectures"
I thought this was possibly to do with the "Enable 32-bit Applications" option in the IIS app pool (was set to FALSE)
I changed that to true and tried the site again. This time the app pool doesn't crash, but I get ASP.NET errors stating "Could not load file or assembly 'Interop.ActiveDs' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Has anyone managed to install this yet? Any ideas on what's going wrong here?
I know it's very new, but I'm struggling to find much information about the product at all
Thanks a lot
Here is a link towards some documentation regarding this problem. As pointed out in the comments, it is related to a bug caused by SharePoint: http://support.inreleasesoftware.com/entries/24794668
Interesting section:
The request failed with HTTP status 503: Service Unavailable.
This error message usually means that the InReleaseAppPool application
pool is stopped. Please ensure that it is started. If the application
pool stops after some time by itself, it might be due to a bug caused
by SharePoint 2013. Validate your problem by looking at the Event
Viewer. Confirm that your error is similar to the following:
Event Log Error Event ID 2282
The Module DLL 'C:\Program Files\Common Files\Microsoft Shared\Web
Server Extensions\15\isapi\spnativerequestmodule.dll' could not be
loaded due to a configuration problem. The current configuration only
supports loading images built for a x86 processor architecture. The
data field contains the error number. To learn more about this issue,
including how to troubleshooting this kind of processor architecture
mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349.
We can apply a quick fix using this command
appcmd.exe set config -section:system.webServer/globalModules
/[name='SPNativeRequestModule'].preCondition:integratedMode,bitness64
Or you can manually enter the preCondition entry in the
ApplicationHost.config file
More information can be found here:
http://blogs.flexnetconsult.co.uk/colinbyrne/2012/11/11/RunningA32bitApplicationAlongsideSharePoint2013Problems.aspx
FIX:
the user which you specified to run the TFS service needs "log on as a service" and "Log on as batch job" permissions. I've set that up via GPO.
This solution worked for me. I execute this command
appcmd.exe set config -section:system.webServer/globalModule/[name='SPNativeRequestModule'].preCondition:integratedMode,bitness64
in C:\Windows\System32\inetsrv and C:\Windows\System64\inetsrv.

Unable to find the requested .Net Framework Data Provider. It may not be installed. (System.Data.SQLClient)

I tried to look at the data connection between my visual studio and SQL server, however it keeps on saying "Unable to find the requested .Net Framework Data Provider. It may not be installed." How can I get this fixed please? It was working before, suddenly it stopped working. I checked in the C:/windows/assembly System.Data.SQLClient is not there.
Ensure that the provider factory is registered with an appropriate entry in the machine.config.
In my case I was selecting the worng reference. For some reason x86 works, while x64 does not (in my case). Simply don't forget to reference System.Data.SQLite.dll and/or System.Data.SQLite.Linq.dll.

Add service reference to Amazon service fails

Add service reference to Amazon service fails, saying
"Could not load file or assembly "System.Core, Version=3.5.0.0,...' or
one or more of it dependencies. The module was expected to contain an
assembly manifest."
This is in VS 2008, haven't installed SP1 on this machine yet.
Any ideas?
This can happen if ASP.NET isn't installed. Go to Add/Remove Windows Components and look under IIS; make sure that ASP.NET is checked (meaning that it's installed.) That should clear up your problem!

Resources