This is my error: http://i.imgur.com/hWm3Ta2.png it is resolved by dropping "Microsoft.Web.Infrastructure.dll" into my projects bin directory after it has successfully been built.
I have the same project working on one build server and not the other. My issue is that "Microsoft.Web.Infrastructure.dll" is missing from the bin directory of my project on one build server but not the other after the project is built. Microsoft.Web.Infrastructure reference has its property "Copy Local" set to "True".
Both build servers have TFS and IIS ion them for quick testing/deployment. Clearly the issue is on the build server side but all my research hasnt helped me discover a solution.
Found a more detailed error from my build log:
Primary reference "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
and then after this error I get a huge list of places it looked to try and find the DLL but couldnt. I think the fix is as simple as dropping the DLL in any one of those places but I cant help but feel like im fixing this with duct tape. in my /packages/ folder I clearly see the "packages\Microsoft.Web.Infrastructure.1.0.0.0\" directory but there is no lib and no DLL in there. Its as if it is not building.