Problem with Eventlog in Windows 2003 server
-
I have a dll which is getting instantiated from one virtual directory. And inside the dll I'm calling the following functions. HANDLE hEventSource = RegisterEventSource(NULL, _T("TrxDax") ); if (hEventSource != NULL) { .. int b = ReportEvent(hEventSource, EVENTLOG_ERROR_TYPE, 0, 0x00000001L, NULL, 1, 0, (LPCTSTR*) &lpStrings[0], NULL); ... } 1. Actually the RegisterEventSource() call is failing if the call is made from virtual dir. in Win2003. GetLastError() is returning error value(5) meaning Access denied for the call. 2. But the same thing is working on earlier versions(win2000,XP..). 3. And when the above code is used in a .exe file(simple exe file), then it's working in Win2003. Meaning..(error is reported in eventlog). 4. So, Does the enhanced security in 2003 is blocking the call when it's instantiated through virtual dir.? Is it clear? or do let me know if some more input is needed.. Thanks Find a job u love and u'll never have to work for a day in your life.... Zxczc