Could not load file or assembly 'Microsoft.Web.Infrastructure

Hey Guys,

After deploying a website on IIS, I am getting the following error.
I have one main directory and then one inside of it and trying to access the second one which is using .NET Framework Version 3.5, parent one using .NET Framework 4.0.

[ Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified ]
Please help
Could not load file or assembly

Last updated:4/21/2016 3:31:15 AM

1 Answers

Uttam Misra
Uttam Misra

Add following references or deploy dlls to your bin folder


  • Add the following references to the project:

    • Microsoft.Web.Infrastructure
    • System.Web.Razor
    • System.Web.WebPages.Razor
    • System.Web.WebPages.Deployment
  • Set the property Copy Local to True for the following references:

    • System.Web.Helpers
    • System.Web.MVC
    • System.Web.WebPages
    • Microsoft.Web.Infrastructure
    • System.Web.Razor
    • System.Web.WebPages.Razor
    • System.Web.WebPages.Deployment
  • cheers!!
  • Answer