Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you visit an ASP.NET 2.0 Web site: "InvalidOperationException: Failed to map the path '/<Application_Name>/App_GlobalResources/'"


View products that this article applies to.

Symptoms

When you visit a Microsoft ASP.NET 2.0 Web site, you may receive the following error message:
InvalidOperationException: Failed to map the path '/<Application_Name>/App_GlobalResources/'.

↑ Back to the top


Cause

This problem occurs because the account that is used to run the Aspnet_wp.exe process does not have the appropriate permissions to the MachineKeys folder.

↑ Back to the top


Resolution

To resolve this problem, follow these steps:
  1. Determine the account that is used to run the Aspnet_wp.exe process. To do this, follow these steps:
    1. Right-click the taskbar, and then click Task Manager.
    2. Click the Processes tab.
    3. Click to select the Show processes from all users check box.
    4. Locate the Aspnet_wp.exe process. Note the account that is listed in the User Name column.
  2. Give the account the Full Control permission to the "Common AppData" registry entry. To do this, follow these steps:
    1. Click Start, click Run, type regedit, and then click OK.
    2. Locate the following registry subkey:
      HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    3. Right-click Shell Folders, and then click Permissions.
    4. In the Permissions for Shell Folders dialog box, click Add.
    5. In the Select Users, Computers, or Groups dialog box, type the account that is used to run the Aspnet_wp.exe process, and then click OK.
    6. In the Permissions for Shell Folders dialog box, click the same account, click to select the Full Control check box, and then click OK.
    7. On the File menu, click Exit.
  3. Give the account the Modify permission to the MachineKeys folder. To do this, follow these steps:
    1. Click Start, click Run, type explorer, and then click OK.
    2. On the Tools menu, click Folder Options.
    3. Click the View tab.
    4. In the Advanced settings list, click Show hidden files and folders.
    5. Click Apply, and then click OK.
    6. Locate the following folder:
      %SYSTEMDRIVE%:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
    7. Right-click the MachineKeys folder, and then click Properties.
    8. In the MachineKeys Properties dialog box, click the Security tab, and then click Add.
    9. In the Select Users, Computers, or Groups dialog box, type the account that is used to run the Aspnet_wp.exe process, and then click OK.
    10. In the MachineKeys Properties dialog box, click the same account, click to select the Modify check box, and then click OK.

↑ Back to the top


More information

Call stack information

System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +3521404
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +306
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +46
   System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +418
   System.Web.Compilation.BuildManager.Initialize() +235
   System.Web.Compilation.BuildManager.InitializeBuildManager() +228
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +310

[HttpException (0x80004005): Failed to map the path '/<Application_Name>/App_GlobalResources/'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426887
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB941156, kbprb, kbtshoot, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 941156
Revision : 2
Created on : 8/20/2007
Published on : 8/20/2007
Exists online : False
Views : 426