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
Solved

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

Posted on 2006-11-03
1
579 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
1 Comment
 
LVL 15

Accepted Solution

by:
OMC2000 earned 500 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

789 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