473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

encrypted connectionStrings web.config customErrors

I encrypted my connectionStrings section with the following command.

aspnet_regiis -pef "connectionStrings" "C:\Inetpub\wwwroot
\MyVirtualDirectory"

It worked and I can see that the connectionStrings section in the
web.config file has been encrypted. However, when I run the
application it fails to load and displays a generic error message page
with no details. This page tells me that I need to change my
customErrors section in order to see the error details.

The customErrors section in my web.config file looks like the
following:

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>

The RemoteOnly mode should allow me to see the error locally. I am
running IE 7 locally, but I don't see the stack trace. I changed the
mode to On, and that didn't work either.

So, I am unable to debug this problem because I cannot see any error
details on my server.

Apr 22 '07 #1
2 3863
Have you tried logging in local to the server and running the application
with "on" as the setting? That should work for you. You may also want to
invest in an enterprise logging soluction like the enterprise library.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
<rm*******@yahoo.comwrote in message
news:11*********************@l77g2000hsb.googlegro ups.com...
>I encrypted my connectionStrings section with the following command.

aspnet_regiis -pef "connectionStrings" "C:\Inetpub\wwwroot
\MyVirtualDirectory"

It worked and I can see that the connectionStrings section in the
web.config file has been encrypted. However, when I run the
application it fails to load and displays a generic error message page
with no details. This page tells me that I need to change my
customErrors section in order to see the error details.

The customErrors section in my web.config file looks like the
following:

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>

The RemoteOnly mode should allow me to see the error locally. I am
running IE 7 locally, but I don't see the stack trace. I changed the
mode to On, and that didn't work either.

So, I am unable to debug this problem because I cannot see any error
details on my server.

Apr 22 '07 #2
On Apr 22, 4:08 pm, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
Have you tried logging in local to the server and running the application
with "on" as the setting? That should work for you. You may also want to
invest in an enterprise logging soluction like the enterprise library.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon andwww.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

<rmgala...@yahoo.comwrote in message

news:11*********************@l77g2000hsb.googlegro ups.com...
I encrypted myconnectionStringssection with the following command.
aspnet_regiis -pef "connectionStrings" "C:\Inetpub\wwwroot
\MyVirtualDirectory"
It worked and I can see that theconnectionStringssection in the
web.config file has been encrypted. However, when I run the
application it fails to load and displays a generic error message page
with no details. This page tells me that I need to change my
customErrorssection in order to see the error details.
ThecustomErrorssection in my web.config file looks like the
following:
<customErrorsmode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
The RemoteOnly mode should allow me to see the error locally. I am
running IE 7 locally, but I don't see the stack trace. I changed the
mode to On, and that didn't work either.
So, I am unable to debug this problem because I cannot see any error
details on my server.- Hide quoted text -

- Show quoted text -
Thanks for your response. Here is what I do.

I log on locally as an administrator. I launch IE 7. I load the
application's web.config file. I set customErrors as follows.

<customErrors mode="On" />

I rebuild the application and run it. I do not get a stack trace. So I
tried the following.

<customErrors mode="RemoteOnly" />

I rebuild the application and run it. I do not get a stack trace. So I
tried the following.

<customErrors mode="Off" />

Now, I get the stack trace.

This looks like a bug to me.

Apr 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
6
by: John Smith | last post by:
I am trying to implement custom error pages and I get this error message: **************************************************************************** ********...
0
by: Adam Getchell | last post by:
I'm attempting to write a custom Authentication module using http://www.15seconds.com/Issue/020417.htm I looked at http://support.microsoft.com/default.aspx?scid=kb;EN-US;307996, but it doesn't...
2
by: Sam | last post by:
Inquiry? -------- I would like to authenticate all subdirectory via asp.net at Windows Server 2003 and IIS 6.0 but it prompt an error message as shown as below: Runtime Error? --------------...
10
by: Ron Weldy | last post by:
I am working on a website that someone else has set up. They have a web.config file with a customerrors element that points the error handling to a special aspx page. <customErrors...
2
by: Max Metral | last post by:
I'm trying to set the default behavior of customErrors in the machine.config. The documentation seems to suggest this should work, but it doesn't seem to work for me. On my development machine, I...
5
by: Ranginald | last post by:
Hi, I have a question about encrypting connection strings in an asp.net 2.0 app in a shared hosting environment. From what I have read, I believe I need to programatically encrypt and decrypt...
14
by: Peter | last post by:
..NET 3.5 I have a Windows Service application and it does remoting, but when a client incounters an error the client get the following error message "Server encountered an internal error....
5
by: akshaycjoshi | last post by:
Ok ! I am reading the book Pro ADO.net. The author says that the <exename>.config files can store the connection string for security purposes. Later he says that still the connection string...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.