Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2006, 01:12 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default System.ComponentModel.Win32Exception: Access is de

Hi,
   I am trying to create a custon performance counter for a web application. I am using Asp.net 2005 for this. The line of code that creates the category is as given below -

PerformanceCounterCategory.Create("EDWCategory", "CounterHelp",PerformanceCounterCategoryType.Singl eInstance,"CounterEDW_BI", "Counter to understand & apply");

When this line is getting executed i get the error -
"System.ComponentModel.Win32Exception: Access is denied "

IN the registry, i have given the read permission for
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\Cu rrentVersion\Perfli.It also has IUSER and IWAM permission. Still i get the error. Can anyone help me to solve this?

Thanks & regards
Soumya






Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I access the file system? Bob Pierce Access VBA 5 April 4th, 2007 11:19 AM
Conectar textbox a campo de base de datos Access aya_hbkenshin04 ASP.NET Espanol 0 May 4th, 2006 01:26 PM
why de sql compiler do not parse de following? deniscuba SQL Language 2 February 4th, 2005 04:04 PM
File or assembly name System.Web, or one of its de martynroots .NET Web Services 0 January 16th, 2005 07:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.