I am converting a VB6 WebClass application to VB.Net. Used the VB upgrade
tool to do the conversion - and it left me a lot of little code things to
do. Did those code things and got my app to compile. Did a few other code
things to take advantage of .Net features not available in VB6.
When I start the application on my PC I get the error shown below. It seems
to me that the app initiation is failing before any app code is executed.
My PC is running W2K and is a workstation - not a server. IIS5 is installed.
The app does not "impersonat e". The framework is 1.1.
The file with access denied is
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web
The path shown next exists - the last item (6f6e86c) is an empty folder. All
folders in this path allow "everybody" full access.
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c
There is also a virtual directory with this name and a virtual directory for
my app.
What is the hash.web file used for?? What should be in this file??
Who created the existing path?? Why wasn't the file created when the path
was created??
And most importantly, what do I do to get past this problem??
===== The web error page returned on IE --
Server Error in '/IisAtn.NET' Application.
Access to the path "C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary
ASP.NET Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Unauthor izedAccessExcep tion: Access to the path
"C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNE T on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties " and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAcc essException: Access to the path
"C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.]
System.IO.__Err or.WinIOError(I nt32 errorCode, String str) +393
System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy) +888 System.IO.FileS tream..ctor(Str ing path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize) +44
System.IO.Strea mWriter.CreateF ile(String path, Boolean append) +55
System.IO.Strea mWriter..ctor(S tring path, Boolean append, Encoding encoding,
Int32 bufferSize) +49 System.IO.Strea mWriter..ctor(S tring path, Boolean
append, Encoding encoding) +20
System.Web.Comp ilation.Preserv edAssemblyEntry .WritePreserved SpecialFilesCom b
inedHash(Int64 hash) +165
System.Web.Comp ilation.Preserv edAssemblyEntry .DoFirstTimeIni t(HttpContext
context) +851
System.Web.Comp ilation.Preserv edAssemblyEntry .EnsureFirstTim eInit(HttpConte x
t context) +97
System.Web.Comp ilation.Preserv edAssemblyEntry .GetPreservedAs semblyEntry(Htt p
Context context, String virtualPath, Boolean fApplicationFil e) +29
System.Web.UI.T emplateParser.G etParserCacheIt emFromPreserved Compilation()
+91 System.Web.UI.T emplateParser.G etParserCacheIt emInternal(Bool ean
fCreateIfNotFou nd) +148
System.Web.UI.T emplateParser.G etParserCacheIt emWithNewConfig Path() +125
System.Web.UI.T emplateParser.G etParserCacheIt em() +88
System.Web.UI.A pplicationFileP arser.GetCompil edApplicationTy pe(String
inputFile, HttpContext context, ApplicationFile Parser& parser) +171
System.Web.Http ApplicationFact ory.CompileAppl ication(HttpCon text context)
+43 System.Web.Http ApplicationFact ory.Init(HttpCo ntext context) +485
System.Web.Http ApplicationFact ory.GetApplicat ionInstance(Htt pContext
context) +170
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +414
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
===== The contents of the Output Debug window after the app has been
stopped --
'DefaultDomain' : Loaded
'c:\winnt\micro soft.net\framew ork\v1.1.4322\m scorlib.dll', No symbols
loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. web\1.0.5000.0_ _b03f5f7f11d50a 3a\system.web.d l
l', No symbols loaded.
Auto-attach to process '[2284] aspnet_wp.exe' on machine 'USTR-BURWELWE1'
succeeded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system\ 1.0.5000.0__b77 a5c561934e089\s ystem.dll', No
symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.dl l', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.th unk.dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. data\1.0.5000.0 __b77a5c561934e 089\system.data .
dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. drawing\1.0.500 0.0__b03f5f7f11 d50a3a\system.d r
awing.dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. xml\1.0.5000.0_ _b77a5c561934e0 89\system.xml.d l
l', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. web.regularexpr essions\1.0.500 0.0__b03f5f7f11 d
50a3a\system.we b.regularexpres sions.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\micro soft.net\framew ork\v1.1.4322\m scorlib.dll', No symbols
loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. web\1.0.5000.0_ _b03f5f7f11d50a 3a\system.web.d l
l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system\ 1.0.5000.0__b77 a5c561934e089\s ystem.dll', No
symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.dl l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.th unk.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. data\1.0.5000.0 __b77a5c561934e 089\system.data .
dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. drawing\1.0.500 0.0__b03f5f7f11 d50a3a\system.d r
awing.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. xml\1.0.5000.0_ _b77a5c561934e0 89\system.xml.d l
l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. web.regularexpr essions\1.0.500 0.0__b03f5f7f11 d
50a3a\system.we b.regularexpres sions.dll', No symbols loaded.
The program '[1892] IEXPLORE.EXE: Script program' has exited with code 0
(0x0).
The program '[2284] aspnet_wp.exe: DefaultDomain' has exited with code 0
(0x0).
The program '[2284] aspnet_wp.exe:
/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323' has exited with code 0
(0x0).
Bill Burwell
tool to do the conversion - and it left me a lot of little code things to
do. Did those code things and got my app to compile. Did a few other code
things to take advantage of .Net features not available in VB6.
When I start the application on my PC I get the error shown below. It seems
to me that the app initiation is failing before any app code is executed.
My PC is running W2K and is a workstation - not a server. IIS5 is installed.
The app does not "impersonat e". The framework is 1.1.
The file with access denied is
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web
The path shown next exists - the last item (6f6e86c) is an empty folder. All
folders in this path allow "everybody" full access.
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c
There is also a virtual directory with this name and a virtual directory for
my app.
What is the hash.web file used for?? What should be in this file??
Who created the existing path?? Why wasn't the file created when the path
was created??
And most importantly, what do I do to get past this problem??
===== The web error page returned on IE --
Server Error in '/IisAtn.NET' Application.
Access to the path "C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary
ASP.NET Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Unauthor izedAccessExcep tion: Access to the path
"C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNE T on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties " and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAcc essException: Access to the path
"C:\WINNT\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET
Files\iisatn.ne t\2328cfde\6f56 e86c\hash.web" is denied.]
System.IO.__Err or.WinIOError(I nt32 errorCode, String str) +393
System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy) +888 System.IO.FileS tream..ctor(Str ing path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize) +44
System.IO.Strea mWriter.CreateF ile(String path, Boolean append) +55
System.IO.Strea mWriter..ctor(S tring path, Boolean append, Encoding encoding,
Int32 bufferSize) +49 System.IO.Strea mWriter..ctor(S tring path, Boolean
append, Encoding encoding) +20
System.Web.Comp ilation.Preserv edAssemblyEntry .WritePreserved SpecialFilesCom b
inedHash(Int64 hash) +165
System.Web.Comp ilation.Preserv edAssemblyEntry .DoFirstTimeIni t(HttpContext
context) +851
System.Web.Comp ilation.Preserv edAssemblyEntry .EnsureFirstTim eInit(HttpConte x
t context) +97
System.Web.Comp ilation.Preserv edAssemblyEntry .GetPreservedAs semblyEntry(Htt p
Context context, String virtualPath, Boolean fApplicationFil e) +29
System.Web.UI.T emplateParser.G etParserCacheIt emFromPreserved Compilation()
+91 System.Web.UI.T emplateParser.G etParserCacheIt emInternal(Bool ean
fCreateIfNotFou nd) +148
System.Web.UI.T emplateParser.G etParserCacheIt emWithNewConfig Path() +125
System.Web.UI.T emplateParser.G etParserCacheIt em() +88
System.Web.UI.A pplicationFileP arser.GetCompil edApplicationTy pe(String
inputFile, HttpContext context, ApplicationFile Parser& parser) +171
System.Web.Http ApplicationFact ory.CompileAppl ication(HttpCon text context)
+43 System.Web.Http ApplicationFact ory.Init(HttpCo ntext context) +485
System.Web.Http ApplicationFact ory.GetApplicat ionInstance(Htt pContext
context) +170
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +414
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
===== The contents of the Output Debug window after the app has been
stopped --
'DefaultDomain' : Loaded
'c:\winnt\micro soft.net\framew ork\v1.1.4322\m scorlib.dll', No symbols
loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. web\1.0.5000.0_ _b03f5f7f11d50a 3a\system.web.d l
l', No symbols loaded.
Auto-attach to process '[2284] aspnet_wp.exe' on machine 'USTR-BURWELWE1'
succeeded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system\ 1.0.5000.0__b77 a5c561934e089\s ystem.dll', No
symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.dl l', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.th unk.dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. data\1.0.5000.0 __b77a5c561934e 089\system.data .
dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. drawing\1.0.500 0.0__b03f5f7f11 d50a3a\system.d r
awing.dll', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. xml\1.0.5000.0_ _b77a5c561934e0 89\system.xml.d l
l', No symbols loaded.
'DefaultDomain' : Loaded
'c:\winnt\assem bly\gac\system. web.regularexpr essions\1.0.500 0.0__b03f5f7f11 d
50a3a\system.we b.regularexpres sions.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\micro soft.net\framew ork\v1.1.4322\m scorlib.dll', No symbols
loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. web\1.0.5000.0_ _b03f5f7f11d50a 3a\system.web.d l
l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system\ 1.0.5000.0__b77 a5c561934e089\s ystem.dll', No
symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.dl l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. enterpriseservi ces\1.0.5000.0_ _b03f5f7f11d50a 3
a\system.enterp riseservices.th unk.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. data\1.0.5000.0 __b77a5c561934e 089\system.data .
dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. drawing\1.0.500 0.0__b03f5f7f11 d50a3a\system.d r
awing.dll', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. xml\1.0.5000.0_ _b77a5c561934e0 89\system.xml.d l
l', No symbols loaded.
'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323': Loaded
'c:\winnt\assem bly\gac\system. web.regularexpr essions\1.0.500 0.0__b03f5f7f11 d
50a3a\system.we b.regularexpres sions.dll', No symbols loaded.
The program '[1892] IEXPLORE.EXE: Script program' has exited with code 0
(0x0).
The program '[2284] aspnet_wp.exe: DefaultDomain' has exited with code 0
(0x0).
The program '[2284] aspnet_wp.exe:
/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640 323' has exited with code 0
(0x0).
Bill Burwell