I get System.IO.FileNotFoundException after joining new wfe server to SharePoint 2013 farm

ahmed sharkaway 116 Reputation points
2020-12-09T12:16:21.707+00:00

fter joining new wfe server to SharePoint 2013 farm, when I add new website it works in central admin but on the other wfe server I get file not found and get a complete error the uls

System.IO.FileNotFoundException: File Not Found. 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.SPVirtualPathProvider.GetCacheKey(String virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Chelsea Wu 6,341 Reputation points Moderator
    2020-12-10T06:03:00.117+00:00

    Hi @ahmed sharkaway , thank you for posting in the Q&A forum.

    You can check the official document for the full process to add a new WFE server to the farm, see if you have configured everything successfully: Add web or application servers to farms in SharePoint 2013.

    A few things to start with:

    1. Make sure you have run SharePoint Configuration Wizard successfully on the new WFE serve.
    2. Check the status of the new WFE server via Central Administration > System Settings > Manage servers in this farm.
    3. Make sure you have the SharePoint services started and running via Manage services on server.

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


  2. trevorseward 11,711 Reputation points
    2020-12-14T22:44:25.86+00:00

    Can you run the following on the server experiencing the issue:

    $wa = Get-SPWebApplication https://webAppUrl
    $wa.Unprovision()
    $wa.Provision()

    Verify the IIS physical path for the Web Site is identical on both the working and non-working servers.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.