Skip to main content

Microsoft.Web.Infrastructure fix



Just as a reminder.

To fix an error similar to this

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.

Try the solution below:

Run the following command in the Package Manager Console.
From Visual Studio - Open  Tools > Library Package Manager > Package Manager Console

    PM> Install-Package Microsoft.Web.Infrastructure

    You will see the following messages if it is successfully installed.

    Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Successfully added 'Microsoft.Web.Infrastructure 1.0.0.0' to Web.

 This should add the Microsoft.Web.Infrastructure.dll has now been added as a reference.


Comments