471,338 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

WebClass hash.web file

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 "impersonate". The framework is 1.1.

The file with access denied is

C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET
Files\iisatn.net\2328cfde\6f56e86c\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\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET
Files\iisatn.net\2328cfde\6f56e86c

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\Microsoft.NET\Framework\v1.1.4322\Tempor ary
ASP.NET Files\iisatn.net\2328cfde\6f56e86c\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.UnauthorizedAccessException: Access to the path
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\iisatn.net\2328cfde\6f56e86c\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}\ASPNET 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="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) 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:
[UnauthorizedAccessException: Access to the path
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\iisatn.net\2328cfde\6f56e86c\hash.web" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy) +888 System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize) +44
System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding,
Int32 bufferSize) +49 System.IO.StreamWriter..ctor(String path, Boolean
append, Encoding encoding) +20
System.Web.Compilation.PreservedAssemblyEntry.Writ ePreservedSpecialFilesComb
inedHash(Int64 hash) +165
System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
context) +851
System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContex
t context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(Http
Context context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFro mPreservedCompilation()
+91 System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApp licationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplicati on(HttpContext context)
+43 System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationIn stance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +414


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

===== The contents of the Output Debug window after the app has been
stopped --

'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols
loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f 5f7f11d50a3a\system.web.dl
l', No symbols loaded.

Auto-attach to process '[2284] aspnet_wp.exe' on machine 'USTR-BURWELWE1'
succeeded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3
a\system.enterpriseservices.dll', No symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3
a\system.enterpriseservices.thunk.dll', No symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77 a5c561934e089\system.data.
dll', No symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__ b03f5f7f11d50a3a\system.dr
awing.dll', No symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a 5c561934e089\system.xml.dl
l', No symbols loaded.

'DefaultDomain': Loaded
'c:\winnt\assembly\gac\system.web.regularexpressio ns\1.0.5000.0__b03f5f7f11d
50a3a\system.web.regularexpressions.dll', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols
loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f 5f7f11d50a3a\system.web.dl
l', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3
a\system.enterpriseservices.dll', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3
a\system.enterpriseservices.thunk.dll', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77 a5c561934e089\system.data.
dll', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__ b03f5f7f11d50a3a\system.dr
awing.dll', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a 5c561934e089\system.xml.dl
l', No symbols loaded.

'/LM/W3svc/1/Root/IisAtn.NET-18-127586882835640323': Loaded
'c:\winnt\assembly\gac\system.web.regularexpressio ns\1.0.5000.0__b03f5f7f11d
50a3a\system.web.regularexpressions.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-127586882835640323' has exited with code 0
(0x0).

Bill Burwell
Jul 21 '05 #1
0 2641

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Chang | last post: by
5 posts views Thread by Michael H | last post: by
reply views Thread by Bill Burwell | last post: by
6 posts views Thread by pycraze | last post: by
1 post views Thread by John Wright | last post: by
21 posts views Thread by Hallvard B Furuseth | last post: by
2 posts views Thread by =?Utf-8?B?TW91dGhPZk1hZG5lc3M=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.