?
Solved

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

Posted on 2006-11-03
1
Medium Priority
?
582 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

801 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