Why error : Microsoft.Web.Infrastructure.dll needed?

I have developped a project A in C# with Visual Studio 2013.

For this project A I have no reference to Microsoft.Web.Infrastructure but a reference to another project B that references Microsoft.Web.Infrastructure.

When I compile the solution, which contains both projects A and B, there is no file Microsoft.Web.Infrastructure.dll in project A bin folder (and this is what I want).

I deployed the project A on a server and when I run this Web app on the server, I have a runtime error :

Unable to load file or assembly 'Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependency. The specified file cannot be found.

I have checked project A csproj file but there is no reference to Microsoft.Web.Infrastructure.

Do you have an idea ?

Thank a lot in advance.


Read more here: https://stackoverflow.com/questions/67921844/why-error-microsoft-web-infrastructure-dll-needed

Content Attribution

This content was originally published by eric.bryan at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: