(e-mail address removed) (John Soulis [MSFT]) wrote in
First run aspnet_regiis -i from this folder at a command prompt.
c:\WINDOWS\Microsoft.NET\Framework
\v1.1.4322. If this does not correct the issue.
Nope, this didn't work.
Download filemon
from
www.sysinternals.com. Run filemon and then reproduce the error.
Then look for an access denied in the filemon log. The easiest way to
do this is to save the log file and load it into Excel. Then you can
sort on the columns. This could tell you what process trying to access
that folder and being denied. Then you will know what process will
need permissions to the folder. My guess is it is the aspnet_wp.exe
process.
I stopped the iis service, deleted the temporary internet files
directory, rebooted the machine, started filemon, then vs and tried to
run my web application. Then I stopped debugging and examined the log
file. I found several access denied instances:
inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
TONKA\IUSR_TONKA
inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
TONKA\IUSR_TONKA
inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
TONKA\IUSR_TONKA
inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
TONKA\IUSR_TONKA
aspnet_wp.exe:2176 IRP_MJ_CREATE C:\WINDOWS\T18ELRY5BIOU17EL
ACCESS DENIED TONKA\ASPNET
aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
\ASPNET\Local Settings\Application Data\ApplicationHistory
\aspnet_wp.exe.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
\ASPNET\Local Settings\Application Data\ApplicationHistory
\b065eec7.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
csc.exe:2228 IRP_MJ_CREATE C:\DOCUME~1\TONKA\ASPNET\LOCALS~1
\Temp\RES3.tmp ACCESS DENIED TONKA\ASPNET
aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
\ASPNET\Local Settings\Application Data\ApplicationHistory
\b065eec7.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
csc.exe:2392 IRP_MJ_CREATE C:\DOCUME~1\TONKA\ASPNET\LOCALS~1
\Temp\RES7.tmp ACCESS DENIED TONKA\ASPNET
I see that inetinfo and aspnet_wp.exe seem to have problems. Now, what do
I do about them? I've seen lots of references to giving processes
permissions, but I can't figure out how to do that. Inetinfo is running
as system, and aspnew_wp.exe is running as ASPNet.
The particular file that the compiler is complaining about not being able
to create is referenced several times with different extensions, and all
with a status of success. I've clipped the file paths but included all of
the accesses here:
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.0.cs
aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.0.cs
aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.0.cs
aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.0.cs
csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.0.cs
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.0.cs
csc.exe:2392 IRP_MJ_READ ..\hwc3fn7y.0.cs
csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.0.cs
csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.0.cs
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.cmdline
aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.cmdline
aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.cmdline
aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.cmdline
csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.cmdline
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.cmdline
csc.exe:2392 IRP_MJ_READ ..\hwc3fn7y.cmdline
csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.cmdline
csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.cmdline
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.dll
aspnet_wp.exe:2176 FASTIO_QUERY_OPEN ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_QUERY_INFORMATION ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.dll
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.err
csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.err
csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.err
aspnet_wp.exe:2176 FASTIO_READ ..\hwc3fn7y.out
aspnet_wp.exe:2176 FASTIO_READ ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.out
aspnet_wp.exe:2176 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.out
csc.exe:2392 FASTIO_WRITE ..\hwc3fn7y.out
csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.out
csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.out
aspnet_wp.exe:2176 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_READ ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.out
aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.out
csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_READ* ..\hwc3fn7y.pdb
System:4 IRP_MJ_QUERY_INFORMATION ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.pdb
csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.pdb
I know this is a long post, but hopefully some useful information is in
there somewhere!
Thanks for any assistance.
Marc