Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / December 2003

Tip: Looking for answers? Try searching our database.

Exception Management Application Block Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PCC - 11 Nov 2003 20:27 GMT
I am using the Exception Managment Application Block on Windows Server 2003
Enterprise and .NET v1.1.

If I use the block with an ASP.NET web wervice or in a web application I get
the following error:

------------------------------------

System.Security.SecurityException: The event source
ExceptionManagerInternalException does not exist and cannot be created with
the current permissions. ---> System.Security.SecurityException: Requested
registry access is not allowed.
  at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
  at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName, Boolean useMutex)
  at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName)
  at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName)
  at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 661
  --- End of inner exception stack trace ---
  at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 666
  at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
eption exception, NameValueCollection additionalInfo, NameValueCollection
configSettings) in D:\Program Files\Microsoft Application Blocks for
.NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 535
  at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
rnalException(Exception exception, NameValueCollection additionalInfo) in
D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 301
  at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo) in D:\Program
Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 229
  at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception) in D:\Program Files\Microsoft Application Blocks for
.NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 66
  at AuctionChannel.Service1.GetDataSet(String QueryName) in
C:\Inetpub\wwwroot\AuctionChannelBO

------------------------------------

I think this is a permissions issue with the ASP user, but I do not want to
change the ASP permissions (for other security reasons).  Does anyone know
another way aroud this issue?  Any pointers, links, samples, etc. would be
appreciated.  Thank you.
Nicholas Paldino [.NET/C# MVP] - 11 Nov 2003 20:30 GMT
PCC,

   If you don't want to change the ASPNET user permissions, then you can
change the permissions on the registry key that it is trying to access so
that the ASPNET user has access to it.

   Hope this helps.

Signature

              - Nicholas Paldino [.NET/C# MVP]
              - mvp@spam.guard.caspershouse.com

> I am using the Exception Managment Application Block on Windows Server 2003
> Enterprise and .NET v1.1.
[quoted text clipped - 16 lines]
> logName)
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 661
>    --- End of inner exception stack trace ---
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 666
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
> eption exception, NameValueCollection additionalInfo, NameValueCollection
> configSettings) in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 535
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
> rnalException(Exception exception, NameValueCollection additionalInfo) in
> D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 301
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> eption exception, NameValueCollection additionalInfo) in D:\Program
> Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 229
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> eption exception) in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 66
>    at AuctionChannel.Service1.GetDataSet(String QueryName) in
[quoted text clipped - 6 lines]
> another way aroud this issue?  Any pointers, links, samples, etc. would be
> appreciated.  Thank you.
PCC - 11 Nov 2003 21:52 GMT
Thanks Nicholas, I swear you are always the first to answer any questions I
post in these newsgroups!

This never seemed to be an issue with .NET 1.0 and Windows 2000 Server.  I
am a little hesitant to grant permissions to the ASPNET user if there was
another way around the problem.  If nobody else comes up with a work around,
I will grant the ASPNET user the needed permissions.  Thanks.

> PCC,
>
[quoted text clipped - 28 lines]
> > logName)
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 661
> >    --- End of inner exception stack trace ---
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 666
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
> > eption exception, NameValueCollection additionalInfo, NameValueCollection
> > configSettings) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 535
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
> > rnalException(Exception exception, NameValueCollection additionalInfo) in
> > D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 301
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception, NameValueCollection additionalInfo) in D:\Program
> > Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 229
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 66
> >    at AuctionChannel.Service1.GetDataSet(String QueryName) in
[quoted text clipped - 7 lines]
> > another way aroud this issue?  Any pointers, links, samples, etc. would be
> > appreciated.  Thank you.
Nick Wienholt - 11 Nov 2003 21:30 GMT
Run installutil against the exception management block assembly - this
creates the event source.

Nick Wienholt, MVP
Maximizing .NET Performance
http://www.apress.com/book/bookDisplay.html?bID=217
Sydney Deep .NET User Group www.sdnug.org

> I am using the Exception Managment Application Block on Windows Server 2003
> Enterprise and .NET v1.1.
[quoted text clipped - 16 lines]
> logName)
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 661
>    --- End of inner exception stack trace ---
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 666
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
> eption exception, NameValueCollection additionalInfo, NameValueCollection
> configSettings) in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 535
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
> rnalException(Exception exception, NameValueCollection additionalInfo) in
> D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 301
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> eption exception, NameValueCollection additionalInfo) in D:\Program
> Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 229
>    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> eption exception) in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> Manager.cs:line 66
>    at AuctionChannel.Service1.GetDataSet(String QueryName) in
[quoted text clipped - 6 lines]
> another way aroud this issue?  Any pointers, links, samples, etc. would be
> appreciated.  Thank you.
PCC - 12 Nov 2003 03:28 GMT
Thanks Nick, that did it.  I appreciate you taking a few moments to offer
you advice.

> Run installutil against the exception management block assembly - this
> creates the event source.
[quoted text clipped - 28 lines]
> > logName)
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 661
> >    --- End of inner exception stack trace ---
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 666
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
> > eption exception, NameValueCollection additionalInfo, NameValueCollection
> > configSettings) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 535
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
> > rnalException(Exception exception, NameValueCollection additionalInfo) in
> > D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 301
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception, NameValueCollection additionalInfo) in D:\Program
> > Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 229
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 66
> >    at AuctionChannel.Service1.GetDataSet(String QueryName) in
[quoted text clipped - 7 lines]
> > another way aroud this issue?  Any pointers, links, samples, etc. would be
> > appreciated.  Thank you.
jack z chen - 24 Dec 2003 05:23 GMT
> Run installutil against the exception management block assembly - this
> creates the event source.
[quoted text clipped - 28 lines]
> > logName)
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 661
> >    --- End of inner exception stack trace ---
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
> > Source() in D:\Program Files\Microsoft Application Blocks for
> .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 666
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
> > eption exception, NameValueCollection additionalInfo, NameValueCollection
> > configSettings) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 535
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
> > rnalException(Exception exception, NameValueCollection additionalInfo) in
> > D:\Program Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 301
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception, NameValueCollection additionalInfo) in D:\Program
> > Files\Microsoft Application Blocks for .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 229
> >    at

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
> > eption exception) in D:\Program Files\Microsoft Application Blocks for
> > .NET\Exception

Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
> > Manager.cs:line 66
> >    at AuctionChannel.Service1.GetDataSet(String QueryName) in
[quoted text clipped - 7 lines]
> > another way aroud this issue?  Any pointers, links, samples, etc. would be
> > appreciated.  Thank you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.