URL Rewriter and Reverse Proxy
CodePlex Home
Register
|
Sign In
|
CodePlex Home
Home
Downloads
Documentation
Discussions
Issue Tracker
Source Code
People
License
Close
RSS
All Project Updates
Discussions
Issue Tracker
Releases
Reviews
Source Code
Wiki & Documentation
RSS
Basic View
|
Advanced View
|
Create New Item
Item
3
of
6
Previous
|
Next
1
vote
fixed
Logging Under Medium Trust
Description
Make sure logging works under medium trust.
File Attachments
No files are attached
Comments
most recent at top
(
show oldest at top
)
nberardi
wrote
Nov 13 at 12:14 PM
Yeah I had to actually create my own logging framework, a very basic framework, but gets the job done for logging text data to the disk.
Syntess_EJ
wrote
Nov 12 at 12:29 PM
Does this include a workaround for the Trace.Listeners collection throwing exceptions (security) on .Add and .Remove ?
See http://forums.asp.net/p/1204436/2105143.aspx for an example.
My hosting uses Medium Trust , and custom listeners cannot be added to the Listeners collection without raising an exception.
As a workaround, I've disabled the TRACE constant on a custom Release build and wrapped the two Trace.Listeners.(Add|Remove) lines in ApacheRuleSet.cs in #if TRACE #endif directives.
A better solution would be to wrap all logging in a custom class to be independent of the actual logging framework and its availability.
Sign in to add a comment or to set email notifications
Comment:
Work Item Details
Item #
8682
Status
Fixed
Type
Feature
Impact
Medium
Release
Unassigned
Assigned To
nberardi
Component
No Component Selected
Reported On
Sep 5 at 1:17 PM
Reported By
nberardi
Updated On
Nov 13 at 12:14 PM
Updated By
nberardi
Closed On
n/a
Closed By
n/a
Wiki Link
[workitem:8682]
Updating...
© 2006-2009 Microsoft
|
About CodePlex
|
Privacy Statement
|
Terms of Use
|
Code of Conduct
|
Advertise With Us
|
Version 2009.10.27.15987