Possible Duplicate:
The layout page “{path}” could not be found
I published the site to local IIS server using "Filesystem开发者_开发知识库 Profile". After hitting through local url from IIS, web site does not find master page e.g. "~/Views/Shared/_Layout.cshtml"
The same website runs perfectly from the vs-2010 on same machine.
Thanks buddies for reply.
Actually I was trying to setup on Win-2008-R2 with IIS 7.5.
There was an issue with permissions. The site is configured with app pool .NET 4.0 which runs under NetworkService account. Giving acccess right to "NetworkService" for website resolved the issue.
Another question addressing the same issue: The layout page "{path}" could not be found
Another link for configuration: http://learn.iis.net/page.aspx/624/application-pool-identities/
精彩评论