Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Error message when you visit an ASP.NET 2.0 Web site: "InvalidOperationException: Failed to map the path '/<Application_Name>/App_GlobalResources/'"
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.| Article ID | : | 941156 |
| Last Review | : | August 20, 2007 |
| Revision | : | 1.1 |
On This Page
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:| a. | Right-click the taskbar, and then click Task Manager. | | b. | Click the Processes tab. | | c. | Click to select the Show processes from all users check box. | | d. | 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:| a. | Click Start, click Run, type regedit, and then click OK. | | b. | Locate the following registry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders | | c. | Right-click Shell Folders, and then click Permissions. | | d. | In the Permissions for Shell Folders dialog box, click Add. | | e. | 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. | | f. | In the Permissions for Shell Folders dialog box, click the same account, click to select the Full Control check box, and then click OK. | | g. | On the File menu, click Exit. |
|
| 3. | Give the account the Modify permission to the MachineKeys folder. To do this, follow these steps:| a. | Click Start, click Run, type explorer, and then click OK. | | b. | On the Tools menu, click Folder Options. | | c. | Click the View tab. | | d. | In the Advanced settings list, click Show hidden files and folders. | | e. | Click Apply, and then click OK. | | f. | Locate the following folder: %SYSTEMDRIVE%:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys | | g. | Right-click the MachineKeys folder, and then click Properties. | | h. | In the MachineKeys Properties dialog box, click the Security tab, and then click Add. | | i. | 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. | | j. | 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
Back to the top
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please