0
Published

The current identity does not have write access

Beau Harrison (Senior Product Software Engineer) 8 years ago updated by anonymous 8 years ago 1

Description

The MIM Event Broker management studio cannot be accessed and is instantly redirected to the default ASP.net error page. Subsequently an exception is displayed in the FIM Event Log Viewer that details that The current identity does not have write access to '%.NET Installation Directory%\Framework/x64|Version|\Temporary ASP.NET Files.

Affected software

  • FIM Event Broker

Symptom

The MIM Event Broker management studio cannot be accessed and a warning similar to the following exception can be seen in the Windows Event Viewer:

...
Exception information:
    Exception type: HttpException
    Exception message: The current identity (ExampleDomain\ExampleUser) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.
   at System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection)
   at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
...

Solution

This problem may occur when an a particular user does not have the required permissions to write to the Temporary ASP.NET Files directory of the host machine.

For more information on the Temporary ASP.NET Files directory see http://msdn.microsoft.com/en-us/library/ms366723.aspx

TIP: This directory is used when FIM Event Broker compiles to store the requisite compiled code.

To give the particular user the required permissions, open command prompt and redirect to the directory that holds the Temporary ASP.Net Files directory; which should subsequently be by default:

cd C:\Windows\Microsoft.NET\Framework64\v4.0.x\

And execute the following command, making sure to replace |SPECIFIC_USER| with the desired Service Account.

aspnet_regiis -ga "|SPECIFIC_USER|"