Hi, My app needs to write to the event log. It works fine on my machine (Windows XP) - I'm logged in with admin permissions. When I deploy to a Windows Server 2008 machine, it won't raise events because it says it can't find the specified source even though my code is supposed to create the source if it doesn't exist. Any ideas? :)
prod pt
Posts
-
Event Log Permissions -
Event Log Madness - Changing the log associated with a logHi, I have created an entry in a custom event log:
if (!EventLog.SourceExists("TestSource"))
EventLog.CreateEventSource("TestSource", "System");
EventLog evtLog = new EventLog();
evtLog.Source = "TestSource";
evtLog.WriteEntry("This is a test", EventLogEntryType.Information);I now decide to use my own custom log so I change "System" to "TestLog". This doesn't do anything. The event is still logged to the "System" log even if I try deleting the source but if I use a different source, it then gets logged correctly to "TestLog"
if (EventLog.SourceExists("TestSource"))
EventLog.DeleteEventSource("TestSource");If I go into the registry, I find a list of sources for the System event log but even if I delete the TestSource entry from there it still logs events to the System event log. This MSDN article suggests that you can remove a source association from a log but it's not correct as far as I can tell: http://msdn.microsoft.com/en-us/library/k57466fc(VS.71).aspx[^] What's going on? It seems that once a source is associated with a log there's no way of removing that association.
-
Managing Users on my ASP.NET ApplicationJust for further info: The problem is that I run my web application in debug on my XP Pro machine and I can logon to the web app using the settings I defined using the WSAT (web site administration tool). If I deploy the web application to another XP machine, I can't seem to login using the username I defined. I can't understand what's going on! Does there need to be some reference to the ASPNETDB.MDF file in web.config?
-
Managing Users on my ASP.NET ApplicationThanks but that manages what type of authentication applies to the web site, Windows authentication, etc. What I need is to be able to manage the users I've created through Visual Studio's ASP.NET Web Site Administration Tool (WSAT). If I use the WSAT from Visual Studio I can create users and assign passwords from the Security tab. If I run my site from Visual Studio, I can log into the site using the users. If I then publish the site elsewhere, I can't. I therefore need to access the site's database to manage the users.
-
Managing Users on my ASP.NET ApplicationHi, I've deployed a web application to my client having set up a couple of user accounts from Visual Studio's (2005) ASP.NET (2.0) management tool. My client has deployed the application on a Windows XP Pro machine but can't now login. How can my client manage the ASP.NET users? I can't find anything in IIS to let my client manage the users from there. Is there something equivalent to the ASP.NET Web Application Administration tool? Thanks for any help offered :)