Microsoft KB Archive/941156

= Error message when you visit an ASP.NET 2.0 Web site: &quot;InvalidOperationException: Failed to map the path '//App_GlobalResources/'&quot; =

Article ID: 941156

Article Last Modified on 8/20/2007

-

APPLIES TO


 * Microsoft ASP.NET 2.0

-



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 '/ /App_GlobalResources/'.



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.



RESOLUTION
To resolve this problem, follow these steps:  Determine the account that is used to run the Aspnet_wp.exe process. To do this, follow these steps:  Right-click the taskbar, and then click Task Manager. Click the Processes tab. Click to select the Show processes from all users check box. Locate the Aspnet_wp.exe process. Note the account that is listed in the User Name column. </li> Give the account the Full Control permission to the &quot;Common AppData&quot; registry entry. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK.</li> Locate the following registry subkey:

</li> Right-click Shell Folders, and then click Permissions.</li> In the Permissions for Shell Folders dialog box, click Add.</li> 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.</li> In the Permissions for Shell Folders dialog box, click the same account, click to select the Full Control check box, and then click OK.</li> On the File menu, click Exit.</li></ol> </li> Give the account the Modify permission to the MachineKeys folder. To do this, follow these steps:  Click Start, click Run, type explorer, and then click OK.</li> On the Tools menu, click Folder Options.</li> Click the View tab.</li> In the Advanced settings list, click Show hidden files and folders.</li> Click Apply, and then click OK.</li> <li>Locate the following folder:

%SYSTEMDRIVE%:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

</li> <li>Right-click the MachineKeys folder, and then click Properties.</li> <li>In the MachineKeys Properties dialog box, click the Security tab, and then click Add.</li> <li>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.</li> <li>In the MachineKeys Properties dialog box, click the same account, click to select the Modify check box, and then click OK.</li></ol> </li></ol>

<div class="moreinformation_section">

Call stack information
<pre class="fixed_text">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

Keywords: kbexpertiseadvanced kbtshoot kbprb KB941156

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.