When I create a new blank MVC4 project in Visual Studio 2013 Premium, after adding a controller and view, then running the project I can see my view. This project by default is hosted by IIS Express.
If I then switch the project to Local IIS, and try running it again, I get an exception:
Could not load file or assembly 'Prerender_asp_mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Prerender_asp_mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Assembly load trace is:
=== Pre-bind state information === LOG: DisplayName = Prerender_asp_mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///D:/Test/MvcApplication1/MvcApplication1/ LOG: Initial PrivatePath = D:\Test\MvcApplication1\MvcApplication1\bin
Calling assembly : (Unknown).
LOG: This bind starts in default load context. LOG: Using application configuration file: D:\Test\MvcApplication1\MvcApplication1\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/mvcapplication1/70ab3f21/342644ce/Prerender_asp_mvc.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/mvcapplication1/70ab3f21/342644ce/Prerender_asp_mvc/Prerender_asp_mvc.DLL. LOG: Attempting download of new URL file:///D:/Test/MvcApplication1/MvcApplication1/bin/Prerender_asp_mvc.DLL. LOG: Attempting download of new URL file:///D:/Test/MvcApplication1/MvcApplication1/bin/Prerender_asp_mvc/Prerender_asp_mvc.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/mvcapplication1/70ab3f21/342644ce/Prerender_asp_mvc.EXE. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/mvcapplication1/70ab3f21/342644ce/Prerender_asp_mvc/Prerender_asp_mvc.EXE. LOG: Attempting download of new URL file:///D:/Test/MvcApplication1/MvcApplication1/bin/Prerender_asp_mvc.EXE. LOG: Attempting download of new URL file:///D:/Test/MvcApplication1/MvcApplication1/bin/Prerender_asp_mvc/Prerender_asp_mvc.EXE.
Version Information:
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
What has gone wrong here? I cannot find much info on Prerender_asp_mvc.
I can post the full stack trace if needed.