Your web application throws below exception?
Server Error in '/' Application.
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
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 given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Source Error:
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. |
The reason is your assemblies in bin folder and reference assemblies in web.config are not correct configuration. To solve the problem, you must check your web.config and bin folder. For example:
web.config
<system.webserver>
...
<add name="YourModule" type="YourApp.Modules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=de04a41b776a9345">
...
</system.webServer>
and the assembly (.dll) in bin folder:
YourApp.Module.dll
will throw the above exception. Just edit web.config or dll name. It works?
<system.webserver>
...
<add name="YourModule" type="YourApp.Modules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=de04a41b776a9345" />
...
</system.webServer>
Happy coding!
Comments