Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP.net applciation on windows 2000 IIS gives security error.

Posted on 2006-11-03
1
Medium Priority
?
584 Views
Last Modified: 2008-01-09
Hi,

I have developed an ASP.net web application in Microsofts Visual Studio 2005 and it runs fine when i run it on my local machine.

I have been given a Windows 2000 server running IIS as a host for the site which is ready to go live.

However when deploy the site and navigate to the page I get the following error:

"Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

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:


[SecurityException: Requested registry access is not allowed.]
   System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +48
   Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +2780809
   Microsoft.Win32.RegistryKey.OpenSubKey(String name) +6
   System.Diagnostics.PerformanceCounterLib.FindCustomCategory(String category, PerformanceCounterCategoryType& categoryType) +373
   System.Diagnostics.PerformanceCounterLib.IsCustomCategory(String category) +14
   System.Diagnostics.PerformanceCounterLib.IsCustomCategory(String machine, String category) +67
   System.Diagnostics.PerformanceCounter.Initialize() +303
   System.Diagnostics.PerformanceCounter.set_RawValue(Int64 value) +29
   System.Data.ProviderBase.Counter..ctor(String categoryName, String instanceName, String counterName, PerformanceCounterType counterType) +195
   System.Data.ProviderBase.DbConnectionPoolCounters..ctor(String categoryName, String categoryHelp) +370
   System.Data.SqlClient.SqlPerformanceCounters..ctor() +47
   System.Data.SqlClient.SqlPerformanceCounters..cctor() +19"

I have rad elsewhere that this is due to the ASPNET account not having the correct permissions to be able to write to the eventlogger.

However I cannot see an ASPNET account on the Windows 2000 box.

Can someone tell me how to create one or another way to overcome this problem?
0
Comment
Question by:Lamont77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
OMC2000 earned 2000 total points
ID: 17867286
ASPNET account belongs to local computer, not to domain, that's might be the reason why you don't see it on Win2000 machine.
If there is really no such account, I would run
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
in order to re-enable ASP.NET integration with IIS
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question