Erron on Web.config identity impersonate

J

Jason Huang

Hi,

My Web.config file in my C# .Net web application has the
< identity impersonate="true" userName="myaccount" password="mypassword" >
However, in some cases the web.config and our environment didn't match
correctly,
and in client's browser there's error page showing that line
< identity impersonate="true" userName="myaccount" password="mypassword" >

How do I config the Web.config so the error message won't show the Username
and Password stuff?
Thanks for help.


Jason
 
M

Mr. Arnold

Jason said:
Hi,

My Web.config file in my C# .Net web application has the
< identity impersonate="true" userName="myaccount" password="mypassword" >
However, in some cases the web.config and our environment didn't match
correctly,
and in client's browser there's error page showing that line
< identity impersonate="true" userName="myaccount" password="mypassword" >

How do I config the Web.config so the error message won't show the Username
and Password stuff?
Thanks for help.


Jason

You can always encrypt the username and password. Also, you might want
to use a strong password, which consist of using control key like Shit
key, alpah, numeric and special character key combinations. The
'mypassword' is a little weak.

<http://support.microsoft.com/kb/329290>
 
A

Alberto Poblacion

Jason Huang said:
My Web.config file in my C# .Net web application has the
< identity impersonate="true" userName="myaccount" password="mypassword" >
However, in some cases the web.config and our environment didn't match
correctly,
and in client's browser there's error page showing that line
< identity impersonate="true" userName="myaccount" password="mypassword" >

How do I config the Web.config so the error message won't show the
Username and Password stuff?

In web.config, add <customErrors mode="On"/>. This causes the error
page to show a "generic" message, rather than showing the source code. You
can also use <customErrors mode="RemoteOnly"/>, which causes the complete
error to be shown only at the console of the server, but not when using a
browser from another computer.
 
S

santosh kumar

customErrors mode="On"



Jason Huang wrote:

Erron on Web.config identity impersonate
18-Apr-10

Hi,

My Web.config file in my C# .Net web application has the
< identity impersonate="true" userName="myaccount" password="mypassword" >
However, in some cases the web.config and our environment did not match
correctly,
and in client's browser there is error page showing that line
< identity impersonate="true" userName="myaccount" password="mypassword" >

How do I config the Web.config so the error message will not show the Username
and Password stuff?
Thanks for help.


Jason

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Crypto Obfuscator for .NET - Product Review
http://www.eggheadcafe.com/tutorial...f8-f5fd987fafb1/crypto-obfuscator-for-ne.aspx
 
M

Mr. Arnold

Jason said:
Hi,

My Web.config file in my C# .Net web application has the
< identity impersonate="true" userName="myaccount" password="mypassword" >
However, in some cases the web.config and our environment didn't match
correctly,
and in client's browser there's error page showing that line
< identity impersonate="true" userName="myaccount" password="mypassword" >

How do I config the Web.config so the error message won't show the Username
and Password stuff?

You can always encrypt the username and password. Also, you might want
to use a strong password, which consist of using control key like Shift
key, alpha, numeric and special character key combinations. The
'mypassword' is a little weak.

<http://support.microsoft.com/kb/329290>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top