I was trying to install a web service on a freshly build W2k3 box.  I checked the event log and found:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 1/3/2006 12:50:03 PM

Event time (UTC): 1/3/2006 8:50:03 PM

Event ID: e85fe2d9c6c84f9287d5bed943869d42

Event sequence: 1

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/w3svc/1/ROOT/DirectoryLookup-7-127807950038139240

Trust level:

Application Virtual Path: /DirectoryLookup

Application Path: c:\Inetpub\wwwroot\DirectoryLookup\DirectoryLookup\

Machine name: localhost

Process information:

Process ID: 2244

Process name: w3wp.exe

Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:

Exception type: HttpException

Exception message: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

Request information:

Request URL: http://localhost/DirectoryLookup/DirectoryLookup.asmx

Request path: /DirectoryLookup/DirectoryLookup.asmx

User host address: 127.0.0.1

User:

Is authenticated: False

Authentication Type:

Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:

Thread ID: 1

Thread account name: NT AUTHORITY\NETWORK SERVICE

Is impersonating: False

Stack trace: at System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection)

at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)

Custom event details:

For more information, see Help and Support Center at

 

Adding permissions to the folder specified in the error fixed the problem.  HTH someone else out there.