I have a VirtualMerchant project which is dependent on SysAuto.Web.Payment project.
Both VirtualMerchant and the Web.Payment project, once built, are version 2.0.1
However, from the assembly binding log viewer, we can see that the assembly loader is looking for SysAuto.Web.Payment Version=2.0.0.0
I have spent hours trying to figure out why it is looking for version 2.0.0 instead of going with 2.0.1. Or alternatively, why would the (vs 2013 ide) build would do a version 2.0.1, instead of a 2.0.0.
How am I saying these numbers. I click on the references, from the VirtualMerchant project, then click on the Web.Payment project, and on the properties, it shows version 2.0.0. Then when I go to the debug folder, reach the Web.Payment project dll, right click to Details, it shows 2.0.1.
Now, I do not even know if I am interpreting the issue correctly based on the log below.
It is hard for me to interpret this.
*** Assembly Binder Log Entry (5/3/2021 # 3:56:48 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\IIS Express\iisexpress.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = com.clairs.providers.VirtualMerchant
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: com.clairs.providers.VirtualMerchant | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/develop/gitrepos/CDT/egovern/SysAuto.egovern.Web/Source/
LOG: Initial PrivatePath = C:\develop\gitrepos\CDT\egovern\SysAuto.egovern.Web\Source\bin
LOG: Dynamic Base = C:\Users\sakg\AppData\Local\Temp\Temporary ASP.NET Files\root\1df0e490
LOG: Cache Base = C:\Users\sakg\AppData\Local\Temp\Temporary ASP.NET Files\root\1df0e490
LOG: AppName = 68c4ab8d
Calling assembly : SysAuto.Web.Payment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\develop\gitrepos\CDT\egovern\SysAuto.egovern.Web\Source\web.config
LOG: Using host configuration file: C:\Users\sakg\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/sakg/AppData/Local/Temp/Temporary ASP.NET Files/root/1df0e490/68c4ab8d/com.clairs.providers.VirtualMerchant.DLL.
LOG: Attempting download of new URL file:///C:/Users/sakg/AppData/Local/Temp/Temporary ASP.NET Files/root/1df0e490/68c4ab8d/com.clairs.providers.VirtualMerchant/com.clairs.providers.VirtualMerchant.DLL.
LOG: Attempting download of new URL file:///C:/develop/gitrepos/CDT/egovern/SysAuto.egovern.Web/Source/bin/com.clairs.providers.VirtualMerchant.DLL.
LOG: Attempting download of new URL file:///C:/develop/gitrepos/CDT/egovern/SysAuto.egovern.Web/Source/bin/com.clairs.providers.VirtualMerchant/com.clairs.providers.VirtualMerchant.DLL.
LOG: Attempting download of new URL file:///C:/Users/sakg/AppData/Local/Temp/Temporary ASP.NET Files/root/1df0e490/68c4ab8d/com.clairs.providers.VirtualMerchant.EXE.
LOG: Attempting download of new URL file:///C:/Users/sakg/AppData/Local/Temp/Temporary ASP.NET Files/root/1df0e490/68c4ab8d/com.clairs.providers.VirtualMerchant/com.clairs.providers.VirtualMerchant.EXE.
LOG: Attempting download of new URL file:///C:/develop/gitrepos/CDT/egovern/SysAuto.egovern.Web/Source/bin/com.clairs.providers.VirtualMerchant.EXE.
LOG: Attempting download of new URL file:///C:/develop/gitrepos/CDT/egovern/SysAuto.egovern.Web/Source/bin/com.clairs.providers.VirtualMerchant/com.clairs.providers.VirtualMerchant.EXE.
LOG: All probing URLs attempted and failed.
Related
We applied Transient Fault Handling Block for our web role of cloud service, we even didn't write one single line code. When we try to debug our cloud service locally, the exception would show on webpage, like this:
The path is too long after being fully qualified. Make sure the full
path is less than 260 characters and the directory name is less than
248 characters.
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.
Exception Details: System.IO.FileLoadException: The path is too long
after being fully qualified. Make sure the full path is less than 260
characters and the directory name is less than 248 characters.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/AzureCloudService2/WebRole1/
LOG: Initial PrivatePath = C:\AzureCloudService2\WebRole1\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\AzureCloudService2\WebRole1\web.config
LOG: Using host configuration file: C:\Program Files\IIS Express\config\templates\PersonalWebServer\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/<user>/AppData/Local/dftmp/Resources/7f758b78-aef1-47f7-ad86-8be56d4218e0/temp/temp/RoleTemp/Temporary ASP.NET Files/root/63defe93/23a6bb89/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus.DLL.
LOG: Attempting download of new URL file:///C:/Users/<user>/AppData/Local/dftmp/Resources/7f758b78-aef1-47f7-ad86-8be56d4218e0/temp/temp/RoleTemp/Temporary ASP.NET Files/root/63defe93/23a6bb89/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus.DLL.
LOG: Attempting download of new URL file:///C:/AzureCloudService2/WebRole1/bin/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus.DLL.
LOG: Using application configuration file: C:\AzureCloudService2\WebRole1\web.config
LOG: Using host configuration file: C:\Program Files\IIS Express\config\templates\PersonalWebServer\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
ERR: Failed to complete setup of assembly (hr = 0x8007006f). Probing terminated.
From the logging, it seems couldn't find Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus.dll in above locations, but actually it indeed located at C:/AzureCloudService2/WebRole1/bin/, I've checked it many times.
Several information:
We just install the packages via Nuget
We also tried other packages such as TransientFaultHandling.Caching .etc, all have such problems.
What's interesting is it works fine in worker role
#RandyLevy thanks for your comment, it solved my problem. You would win the bounty if you post it as an answer :)
It looks like the ASP.NET temporary directory is exceeding the max
path length. Take a look at Windows Azure - Resolving 'The Path is
too long after being fully qualified Error Message' to set the
_CSRUN_STATE_DIRECTORY environment variable. – Randy Levy
We have a web application that utilises plugins. This system is used in many successfully deployed installations, but in one instance we are seeing an intermittent issue. Occasionally it will fail to load a user created plugin - see fusion log below. When it fails, the users switch servers to their redundant server and carry on, until the problem then manifests itself on the redundant server (no specific time between failures - could be hours up to weeks), and then switch back to the original server again (where again it will be fine). We've been supplied the source of the plugin and confirmed it's not an issue with the code/dll itself.
*** Assembly Binder Log Entry (2013-06-18 # 00:32:49) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = ***\***
LOG: Where-ref bind. Location = D:\Program Files\***\***\***\plugins\***.dll
LOG: Appbase = file:///D:/Program Files/***/***/***/plugins/
LOG: Initial PrivatePath = D:\Program Files\***\***\***\plugins\references\
LOG: Dynamic Base = NULL
LOG: Cache Base = D:\Program Files\***\***\***\plugins\cache\79797f4b-d645-4a33-ad9d-c75f1c548e15
LOG: AppName = ***
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: D:\Program Files\***\***\webfiles\web.config
LOG: Using host configuration file: \\?\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Attempting download of new URL file:///D:/Program Files/***/***/***/plugins/***.dll.
LOG: Assembly download was successful. Attempting setup of file: D:\Program Files\***\***\***\plugins\***.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: ***, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Re-apply policy for where-ref bind.
LOG: Where-ref bind Codebase matches what is found in default context. Keep the result in default context.
LOG: The post-policy assembly reference requires probing again.
LOG: Switch from LoadFrom context to default context.
LOG: Using application configuration file: D:\Program Files\***\***\webfiles\web.config
LOG: Using host configuration file: \\?\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///D:/Program Files/***/***/***/plugins/***.DLL.
LOG: Assembly download was successful. Attempting setup of file: D:\Program Files\***\***\***\plugins\***.dll
LOG: Entering download cache setup phase.
ERR: Setup failed with hr = 0x80070002.
ERR: Failed to complete setup of assembly (hr = 0x80070002). Probing terminated.
Any thoughts on what could be causing it to fail in this way intermittently?
What is the signature of the assembly when it is loaded? You can find it by attachingvto debugger and viwing the modules loaded.
is it different is the string name when load fails?
also use fuslogview.exe as tool and keep logging all module load failures, when load fails, the fuslogview details will provide you enogh details as why the assembly load failed.
I'm trying to get an application to run on an IIS 6.0 that I was assigned to support.
I copied all the source and binaries to the Inetput folder. The WebApp is running, but I get the error that tells me that the global type of the application could not be loaded.
How can I debug this? The namespace is correct, the DLL is present in the /bin/ folder of the application, and still the app cannot load it.
After turning on Fusion logging, I found this error file that concerns my global class;
*** Assembly Binder Log Entry (05.11.2012 # 08:45:30) ***
The operation failed.
Bind result: hr = 0x80131107. No description available.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = MyApplication
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/MyApplication
LOG: Initial PrivatePath = bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\MyApplication\a1144233
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\MyApplication\a1144233
LOG: AppName = 1ec25e47
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: MyApplication
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/MyApplication/a1144233/1ec25e47/MyApplication.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/MyApplication/a1144233/1ec25e47/MyApplication/MyApplication.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/MyApplication/bin/MyApplication.DLL.
LOG: Assembly download was successful. Attempting setup of file: c:\inetpub\wwwroot\MyApplication\bin\MyApplication.DLL
LOG: Entering download cache setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131107).
ERR: Setup failed with hr = 0x80131107.
ERR: Failed to complete setup of assembly (hr = 0x80131107). Probing terminated.
What's going wrong there? The bin\MyApplication.DLL exists and is compiled correctly, so I don't see the problem...
Reproducing the solution from the comments...
Step 1 is to enable Fusion Logging to get a log of what was failing
This produced the log file that indicates that IIS was trying to launch the DLL under version 1.1 of the .Net Framework. The error then occurred when it tried to read the manifest of the dll.
This indicates that the dll was from a later version of the framework and so couldn't be loaded.
I Am using a 3rd party DLL. The dll did not have a strong name so i signed it. I pasted the signed DLL in to a Layouts Mapped folder of my application and added reference. During runtime i am getting a file not found exception for this DLL. I used fuslogvw to trace the assembly bind failure log. which i will paste below kindly guide me. I am a newbie to .net
*** Assembly Binder Log Entry (5/30/2012 # 5:12:13 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = ExcelLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b182d73c05ed7959
(Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\wss\VirtualDirectories\2000\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4782bf2e
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4782bf2e
LOG: AppName = cf0ac865
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\wss\VirtualDirectories\2000\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary/ExcelLibrary.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary/ExcelLibrary.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary/ExcelLibrary.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary/ExcelLibrary.EXE.
LOG: All probing URLs attempted and failed.
Looks like you are trying to bind 32-bit 3rd party native DLL on a 64-bit system. Either register the x64 version of the DLL or change you project to be compiled for the x86 target.
Hi have follows the steps here
Link
to migrate an asp.net mvc project to windows azure, The project builds ok, I then hit f5 and I get the error above. Does any one have any ideas why this is happening? I am new to azure so Im not too familiar with the process, Any ideas would be appreciated thanks
Stack Trace
=== Pre-bind state information ===
LOG: User = IP-0AE2B2DF\Administrator
LOG: DisplayName = Interop.SSCE
(Partial)
LOG: Appbase = file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/TestProject/src/TestProjectCloudService/bin/Release/TestProjectCloudService.csx/roles/TestProject.Web/approot/
LOG: Initial PrivatePath = C:\Users\Administrator\Documents\Visual Studio 2010\Projects\TestProject\src\TestProjectCloudService\bin\Release\TestProjectCloudService.csx\roles\TestProject.Web\approot\bin
Calling assembly : (Unknown).
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Administrator\Documents\Visual Studio 2010\Projects\TestProject\src\TestProjectCloudService\bin\Release\TestProjectCloudService.csx\roles\TestProject.Web\approot\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/Administrator/AppData/Local/dftmp/s0/deployment(3)/res/deployment(3).TestProjectCloudService.TestProject.Web.0/aspNetTemp/aspNetTemp/root/7dd3ee0f/d7fb43c0/Interop.SSCE.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/AppData/Local/dftmp/s0/deployment(3)/res/deployment(3).TestProjectCloudService.TestProject.Web.0/aspNetTemp/aspNetTemp/root/7dd3ee0f/d7fb43c0/Interop.SSCE/Interop.SSCE.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/TestProject/src/TestProjectCloudService/bin/Release/TestProjectCloudService.csx/roles/TestProject.Web/approot/bin/Interop.SSCE.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Fixed, just removed reference to the web role project duh!