We shot to offer credit as lot as possible. If you discover your content on this blog contact us, us would choose to give you credit transaction on blog and hugs.

You are watching: Could not load file or assembly microsoft web infrastructure

Asp.NetassemblyAssembly ErrorCulture neutralInfrastructure ErrorMicrosoft.Web.Infrastructure.dllPackage ManagerProject BuildPublicKeyTokenPublishCould not load record or assembly Microsoft. Web.Infrastructure
If you work on internet Applications and using Asp.Net to strength it girlfriend may discover this error on operation time, application could compile perfectly but generates the runtime error stating:

Could no load document or assembly ‘Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the document specified.

Error Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35

It appears that Microsoft.Web.Infrastructure.dll is not being installed in the GAC, even if .net (4.0 or 4.5 or other) are installed properly on windows Server. Top top localhost (typically home windows client), that seems favor it is being in the GAC when the tools/platform (Visual Studio etc.) room installed.

Possible settle 1

Run the following command in the package Manager Console. (If you room using visual Studio, this deserve to be got to via menu alternatives “Tools –> Library package Manager –> parcel Manager Console:)

PM> Install-Package Microsoft.Web.Infrastructure

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

Successfully set up ‘Microsoft.Web.Infrastructure’.Successfully included ‘Microsoft.Web.Infrastructure’ come Web.

If you check out this article you are great to go. Shoop. But in situation it does not work shot the next one.

Possible Fix 2 (Less Technical)

When you do over fix package manager can develop this(non welcoming) blog post for you:

the package was already installed and assigned to my project.

This is the instance when you currently have this Microsoft.Web.Infrastructure.dll added in her solution. Go to Window’s traveler and shot to find the paper by name. Most probably you will discover it, copy the path and add it together a reference in project.

Rebuild and Run the project.

See more: What Is The Relationship Among Genes, Dna, And Proteins? What Are Genes, Dna, And Proteins

Let me know in comments if this does not occupational or some various other solution works for you.