Visual Basic Q&A

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘ASP’

PRB: “Requested Registry Access Is Not Allowed” Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog

Symptoms
When you use ASP.NET to create a new event source in the event log, you may receive the following error message:

System.Security.SecurityException: Requested registry access is not allowed.
Resolution
By default, the user token of the ASP.NET worker process is ASPNET (or NetworkService for applications that run on Internet Information Services [IIS] 6.0). The problem in the “Symptoms” section occurs because your account does not have the correct user rights to create an event source.

FIX: Error 800a2328 When You Browse a Visual Basic 6.0 WebClass (IIS Application)

Symptoms
When attempting to browse a WebClass application, the following error is returned:

Server object error ‘ASP 0177 : 800a2328′
Server.CreateObject Failed
/WebClassApp/WebClassFile.ASP, line 20
The operation completed successfully.

Resolution
This error occurs if Session state is disabled for the Web application.Visual Basic 6.0 WebClasses (IIS Applications) require Session state to be enabled.