Often when deploying page layouts and master pages etc. you’ll get an error like below:
Server Error in ‘/’ Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
The simplest way to troubleshoot what the problem is, is to do a View Source on the page and look down the bottom of the source. In the example below it was that the master page does not exist.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
&lt;&#47;body> &lt;&#47;html> &lt;!-- [FileNotFoundException]: The file &#47;_catalogs/masterpage/custom1.master does not exist. at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, <span class="code-object">String</span> path, <span class="code-object">Boolean</span> throwIfFileNotFound) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies) at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData) at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData) at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.GetVirtualPathProviderCacheKey(HttpContext context, SPRequestModuleData requestData) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetVirtualPathProviderCacheKey(<span class="code-object">String</span> virtualPath) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(<span class="code-object">String</span> virtualPath) at Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.GetCacheKey(<span class="code-object">String</span> virtualPath) at <span class="code-object">System</span>.Web.Hosting.VirtualPathProvider.GetCacheKey(VirtualPath virtualPath) at <span class="code-object">System</span>.Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath(VirtualPath virtualPath, <span class="code-object">Boolean</span>& keyFromVPP) at <span class="code-object">System</span>.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath) at <span class="code-object">System</span>.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, <span class="code-object">Boolean</span> noBuild, <span class="code-object">Boolean</span> allowCrossApp, <span class="code-object">Boolean</span> allowBuildInPrecompile) at <span class="code-object">System</span>.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, <span class="code-object">Boolean</span> noBuild, <span class="code-object">Boolean</span> allowCrossApp, <span class="code-object">Boolean</span> allowBuildInPrecompile) at <span class="code-object">System</span>.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, <span class="code-object">Boolean</span> allowCrossApp, <span class="code-object">Boolean</span> noAssert) at <span class="code-object">System</span>.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, <span class="code-object">Boolean</span> allowCrossApp, <span class="code-object">Boolean</span> noAssert) at <span class="code-object">System</span>.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, <span class="code-object">String</span> requestType, VirtualPath virtualPath, <span class="code-object">String</span> physicalPath) at <span class="code-object">System</span>.Web.UI.PageHandlerFactory.<span class="code-object">System</span>.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, <span class="code-object">String</span> requestType, VirtualPath virtualPath, <span class="code-object">String</span> physicalPath) at <span class="code-object">System</span>.Web.HttpApplication.MapHttpHandler(HttpContext context, <span class="code-object">String</span> requestType, VirtualPath path, <span class="code-object">String</span> pathTranslated, <span class="code-object">Boolean</span> useAppConfig) [HttpException]: Exception of type '<span class="code-object">System</span>.Web.HttpException' was thrown. at <span class="code-object">System</span>.Web.HttpApplication.MapHttpHandler(HttpContext context, <span class="code-object">String</span> requestType, VirtualPath path, <span class="code-object">String</span> pathTranslated, <span class="code-object">Boolean</span> useAppConfig) at <span class="code-object">System</span>.Web.HttpApplication.MapHandlerExecutionStep.<span class="code-object">System</span>.Web.HttpApplication.IExecutionStep.Execute() at <span class="code-object">System</span>.Web.HttpApplication.ExecuteStep(IExecutionStep step, <span class="code-object">Boolean</span>& completedSynchronously) --&gt; |
Source: Marc Charmois