I'm using VS2010 and I'm deploying my MVC3 app to my webserver. I went to Project->Publish settings and added my database connection and thats it. I right clicked on my application and clicked "Build deployment package" which generated a zip file. I copied it to my server and imported the application into IIS with no errors. But when I try to load it in a browser I get the dreaded :
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
I took that line out of web.config, then i got:
Could not load file or assembly 'System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
I took that line out of web.config, then i got:
Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
Need i continue? What am i doing wrong when I deploy or build my application to load it into IIS so all dependencies are avaiable?
.NET 4.0 is the default app pool in IIS.