Hey,
I have written a simple Http Module that would write certain IIS log entries into the event log.
Very simple entries like Host address, Ip address and stuff like that.
Added the module in IIS 7(rest all the settings are default) and when I run the website page it gives me a Security exception that it is not able to write into the system event logs due to no proper permissions.
I tried the app with all the .Net trust levels but the same response. :)
Anyways I got it working when I used an Admin account for my App Pool. Everything is working fine. But I thought it was the .Net trust levels that kicks in for http modules??
What am I missing and is it possible to get it to work with medium trust with a non-admin account??
I am using Windows Server 2008 Standard edition with Visual C# express edition.
Regards,
MA Khan
http://www.iisworkstation.com“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”