none
Could not load file or assembly RRS feed

  • Question

  • Could not load file or assembly 'Microsoft.AspNet.Web.Optimization.WebForms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    Saturday, August 3, 2013 10:38 AM

Answers

  • Hi 123bava,

    Either you install the dll using NUGET package

    http://www.nuget.org/packages/Microsoft.AspNet.Web.Optimization.WebForms/

    Or see the proper version that is installed on your machine and update the web.config accordinly specially version number(Version=1.0.0.0)

    Thanks
    Subhendu

    Saturday, August 3, 2013 12:32 PM
  • Hi 123bava,

    Are you building an ASP.NET web application or WCF service application? As Subhendu suggested, the error message indicate that you're missing some assemblies (referenced by your application) from the ASP.NET webforms related Nuget package. Therefore, you need to check if your project has ever referenced this and if it is necessary for your current project.

    For nuget package, if you're adding it via Visual Studio, it is possible that you added the package reference for all projects (under a solution) when you add the package at the solution level. You can verify the nuget package of the problem project to see if this is the case.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Sunday, August 4, 2013 5:04 PM
    Moderator

All replies

  • Hi 123bava,

    Either you install the dll using NUGET package

    http://www.nuget.org/packages/Microsoft.AspNet.Web.Optimization.WebForms/

    Or see the proper version that is installed on your machine and update the web.config accordinly specially version number(Version=1.0.0.0)

    Thanks
    Subhendu

    Saturday, August 3, 2013 12:32 PM
  • Hi 123bava,

    Are you building an ASP.NET web application or WCF service application? As Subhendu suggested, the error message indicate that you're missing some assemblies (referenced by your application) from the ASP.NET webforms related Nuget package. Therefore, you need to check if your project has ever referenced this and if it is necessary for your current project.

    For nuget package, if you're adding it via Visual Studio, it is possible that you added the package reference for all projects (under a solution) when you add the package at the solution level. You can verify the nuget package of the problem project to see if this is the case.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Sunday, August 4, 2013 5:04 PM
    Moderator