EntLib 5 SDDL and Win2008

Topics: Logging Application Block
Dec 9, 2010 at 12:31 PM

Hi there

I have a big problem with logging on win 2008 server. My app just doesn´t logg anything on win 2008 event viewer. I googled a bit and found that the solution was in here http://support.microsoft.com/kb/323076 .

Well ...the thing is, i am no system administrator and now o need to be able to read and set permissions on my Log. Does anyone know about an utiliy for doing this?

The log name is SIGAS and them source is SIGASWeb

 

Thanks

Dec 10, 2010 at 4:35 AM

As also stated in one of our FAQ - Why are messages not logged? 

When deploying your application, you should include an installer class to create your event sources. For development, a quick solution is to use Windows PowerShell. Run an elevated PowerShell process, and use a command somthing like this: "new-eventlog -source MyApp -logname Application".

As for the installer class refer to this site - http://msdn.microsoft.com/en-us/library/k1wask0c(v=VS.100).aspx. Hope this helps.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com

Dec 10, 2010 at 3:00 PM

HI

Well...thanks for the response

My app is a web app, and so there are no installation classes.

I already done what the faq said and still nothing.....

I dont know what to ask more ........i am going to see if i find a working example

Dec 10, 2010 at 5:40 PM

You're going to need to run some code from an administrator account to set this up. Typically this is done by creating an MSI to install the web app and having your admin install it. You can also do it from the command line using Powershell pretty easily - but again, you need admin permissions to do it. Do you have the admin permissions, or can you get help from someone who does?

 

Dec 10, 2010 at 10:39 PM

:S

I just solved my problem....re-created the source and log, rebooted the development server and.....voilá

 

Thanks just the same