I encrypted my connectionStrin gs section with the following command.
aspnet_regiis -pef "connectionStri ngs" "C:\Inetpub\www root
\MyVirtualDirec tory"
It worked and I can see that the connectionStrin gs 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="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm"/>
<error statusCode="404 " redirect="FileN otFound.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 "connectionStri ngs" "C:\Inetpub\www root
\MyVirtualDirec tory"
It worked and I can see that the connectionStrin gs 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="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm"/>
<error statusCode="404 " redirect="FileN otFound.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.
Comment