I looked at similar publications, but did not find what helped fix this problem.
Just briefly, I have an mvc3 project running on azure. A couple of days ago, for some reason, he lost the link to System.Web.MVC. So I added the link and changed the Copy Local property to True. He built and ran on the local emulator in order. Then I published it and received the following message when opening the website.
"Failed to load file or assembly" System.Web.Mvc, Version = 3.0.0.0 "
It turns out that I am only version 3.0.0.1, not 3.0.0.0 specified in my web.congig file. I tried to change the value in web.config in both the assembly and runtimes to 3.0.0.1, but this throws another exception in azure (although it did not change the general token)
I also tried to add Deployable Dependency, but it did not matter, and I tried to download and add version 3.0.0.0 to the project, but vs did not like this DLL when publishing.
I also tried changing the Specifc Version property for the assembly to False, but that didn't work.
So for some reason, I no longer have v3.0.0.0, but I donโt know how to change my project to use v3.0.0.1. I think.
Server error in application "/".
Configuration Error Description: An error occurred while processing the configuration file needed to service this request. Review the specific error information below and modify your configuration file accordingly.
Parser error message: Could not load file or assembly "System.Web.Mvc, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error: Line 39: Line 40: Line 41: Line 42: Line 43:
Source file: E: \ sitesroot \ 0 \ web.config Line: 41
Track boot assembly. The following information may be useful in determining why the assembly "System.Web.Mvc, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" cannot be loaded. WRN: Assembly binding registration is disabled. To enable assembly failure logging, set the registry value to [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) on 1. Note. There is some performance limitation associated with the assembly binding failure protocol. To disable this feature, delete the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog].
source share