Click here to Skip to main content
15,919,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to write in Remote System(Visitor) Registry Pin
vurugonda9-Jun-08 0:56
vurugonda9-Jun-08 0:56 
AnswerRe: How to write in Remote System(Visitor) Registry Pin
Vasudevan Deepak Kumar9-Jun-08 1:01
Vasudevan Deepak Kumar9-Jun-08 1:01 
AnswerRe: How to write in Remote System(Visitor) Registry Pin
N a v a n e e t h9-Jun-08 16:21
N a v a n e e t h9-Jun-08 16:21 
Questionmd5 authentication Pin
indian1439-Jun-08 0:29
indian1439-Jun-08 0:29 
AnswerRe: md5 authentication Pin
Vasudevan Deepak Kumar9-Jun-08 1:03
Vasudevan Deepak Kumar9-Jun-08 1:03 
AnswerRe: md5 authentication Pin
N a v a n e e t h9-Jun-08 16:19
N a v a n e e t h9-Jun-08 16:19 
GeneralRe: md5 authentication Pin
indian1439-Jun-08 19:10
indian1439-Jun-08 19:10 
GeneralcustomErrors mode configuration query Pin
Kevin McFarlane9-Jun-08 0:22
Kevin McFarlane9-Jun-08 0:22 
I'm looking for a way to achieve this:

1. On dev machine running against local Cassini server display detailed ASP.NET error information.
2. On local web server (IIS) display custom (friendly) error information.
3. For remote client display custom (friendly) error information.

I can see that setting customErrors mode="RemoteOnly" satisfies 1 and 3. But I can't see a way to satisy all three. The only thing I can think of is to keep customErrors permanently set at "On" for the deployed app. and then manually switch to "RemoteOnly" or "Off" when developing. The problem with the latter is that I have to remember to edit web.config when checking back in to source control.

It occurs to me however, that I may be able to solve my problem if there is a way of programmatically distinguishing between running against Cassini in the dev environment and running against IIS.

BTW, you might be wondering why I want both 2. and 3. It so happens that for this particular app. the end users need to access the web client both locally and remotely (via controlled intranet).


Kevin

GeneralRe: customErrors mode configuration query Pin
Vasudevan Deepak Kumar9-Jun-08 1:04
Vasudevan Deepak Kumar9-Jun-08 1:04 
GeneralRe: customErrors mode configuration query Pin
Kevin McFarlane9-Jun-08 1:27
Kevin McFarlane9-Jun-08 1:27 
GeneralRe: customErrors mode configuration query Pin
eyeseetee9-Jun-08 2:14
eyeseetee9-Jun-08 2:14 
GeneralRe: customErrors mode configuration query Pin
Kevin McFarlane9-Jun-08 3:15
Kevin McFarlane9-Jun-08 3:15 
QuestionWeb User Control Pin
~V~9-Jun-08 0:14
~V~9-Jun-08 0:14 
AnswerRe: Web User Control Pin
Vasudevan Deepak Kumar9-Jun-08 1:04
Vasudevan Deepak Kumar9-Jun-08 1:04 
GeneralRe: Web User Control Pin
~V~9-Jun-08 1:29
~V~9-Jun-08 1:29 
GeneralRe: Web User Control Pin
Vasudevan Deepak Kumar9-Jun-08 1:53
Vasudevan Deepak Kumar9-Jun-08 1:53 
GeneralRe: Web User Control Pin
~V~9-Jun-08 2:11
~V~9-Jun-08 2:11 
QuestionWeb Parts Personalization and profile Pin
Laxmikant Lad9-Jun-08 0:11
Laxmikant Lad9-Jun-08 0:11 
AnswerRe: Web Parts Personalization and profile Pin
Vasudevan Deepak Kumar9-Jun-08 1:06
Vasudevan Deepak Kumar9-Jun-08 1:06 
QuestionExtract Embedded file from wordpad Pin
Muthuvasagan8-Jun-08 23:45
Muthuvasagan8-Jun-08 23:45 
AnswerRe: Extract Embedded file from wordpad Pin
Vasudevan Deepak Kumar8-Jun-08 23:47
Vasudevan Deepak Kumar8-Jun-08 23:47 
Question.eml file Printing Pin
Muthuvasagan8-Jun-08 23:42
Muthuvasagan8-Jun-08 23:42 
AnswerRe: .eml file Printing Pin
Vasudevan Deepak Kumar8-Jun-08 23:50
Vasudevan Deepak Kumar8-Jun-08 23:50 
AnswerRe: .eml file Printing Pin
Ashfield8-Jun-08 23:52
Ashfield8-Jun-08 23:52 
AnswerRe: .eml file Printing Pin
eyeseetee9-Jun-08 2:12
eyeseetee9-Jun-08 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.