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 / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

EventLog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Wone - 31 Jan 2005 02:28 GMT
This code works find in a Winforms app and fails in a webservice.

if(!EventLog.SourceExists(EventSourceName))
EventLog.CreateEventSource(EventSourceName,"Application");

What permissions should I give to the IIS user, or if that's not the issue,
then what's wrong?
Peter Wone - 01 Feb 2005 03:18 GMT
I'll answer my own question (I figured it out).

Not enough permission for the user account under which the webservice runs.
This is an environmental issue. It is not a good plan to allow the requisite
permissions so redesign for the source to be created by the setup kit, which
typically runs with elevated permissions.

> This code works find in a Winforms app and fails in a webservice.
>
[quoted text clipped - 3 lines]
> What permissions should I give to the IIS user, or if that's not the
> issue, then what's wrong?

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.