I am trying to add a GridView to the aspx page ,but when I add it I get the error
I have enabled debugging on the web.config file , but still I get this below error. Since a day I have been trying to add the gridview to the page, it does'nt let me do it. However, I am able to add the same gridview to another aspx page.
Not sure of whats going wrong. Can someone please let me know of how can I get 开发者_如何学Pythonthe stack trace which will help me let me know the probl.
Janet, you're going to need to disable custom errors as indicated in the error page you're seeing. Add <customErrors mode="Off" /> in the web.config for your site to see the full details of the error.
What this means is that when you are NOT on the local machine, you will be viewing this type of error whenever a runtime error occurs. When you are viewing this in local machine's browser, you can get the real error page. But, If you want to see this on the browser not on local machine, you WILL have to change web.config
customErrors mode="RemoteOnly"
to
customErrors mode="Off"
(Note that mode is case sensitive here, i.e "off" is not same as "Off").
精彩评论