开发者

IIS 7/ASP.NET 4/MVC 3 Preview 1: random "Could not load file or assembly" errors

开发者 https://www.devze.com 2023-01-14 15:46 出处:网络
I\'m using the new Razor ViewEngine with ASP.NET 4/ASP.NET MVC 3. In both Cassini on my local machine (Win7 x64/VS 2010), as well as IIS7 (Windows Web Server 2008), I\'m randomly getting \"Could not

I'm using the new Razor ViewEngine with ASP.NET 4/ASP.NET MVC 3.

In both Cassini on my local machine (Win7 x64/VS 2010), as well as IIS7 (Windows Web Server 2008), I'm randomly getting "Could not load file or assembly" errors.

With C开发者_JAVA百科assini, rebuilding the solution generally fixes the problem.

In IIS7, recycling the application pool generally fixes the problem.

It is always the same assembly - a "Core" project of mine that is referenced by the ASP.NET MVC project. The solution hierarchy looks like this:

  • "Core" project (this is the one identified in the "Could not load file or assembly" error)
  • "Data" project (LINQ-to-SQL models)
    • Core
  • ASP.NET MVC Site
    • Core
    • Data

All these references are project references. The stack trace of the error starts in the "Data" project, which references the "Core" project. Any ideas?


Please refer the following blog posts;

http://www.tugberkugurlu.com/archive/deployment-of-asp-net-mvc-3-rc-2-application-on-a-shared-hosting-environment-without-begging-the-hosting-company

It might help...

0

精彩评论

暂无评论...
验证码 换一张
取 消