Error:Could not load file or assembly or one of its dependencies.


Error:Could not load file or assembly or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. I go the error when I hosted my website in IIS and try to browse the web page from IIS 6.1 on Windows 7 machine.

Error:Could not load file or assembly or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I got this error when I hosted my website in IIS and tried to browse the web page from IIS 6.1 on Windows 7 machine.

In order to resolve this error. Go to the Application pool under which you application is running and change the .Net Framework version from v2.0 to v4.0.
apppool1
If you are don't know under which application pool your application is running.
Right click the application in IIS -> Manage Application -> Advanced Settings -> Application Pool - this will display the application pool for your application.
apppool
defaultapppool
This will resolve the error and you can now try to browse the file.


Article by Vaishali Jain
Miss. Jain Microsoft Certified Technology Specialist in .Net(Windows and Web Based application development)

Follow Vaishali Jain or read 127 articles authored by Vaishali Jain

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: