Home > DeveloperSection > Forums > 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.
Tarun Kumar

Total Post:213

Points:1635
Posted on    April-21-2016 3:03 AM

 C# C#  .NET  ASP.Net  IIS 7  Assembly 
Ratings:


 1 Reply(s)
 2158  View(s)
Rate this:
Hey Guys,

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

Please help






Uttam Misra

Total Post:125

Points:897
Supported
Posted on    April-21-2016 3:31 AM

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!!

  • Don't want to miss updates? Please click the below button!

    Follow MindStick