R
rmgalante
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.
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.