this is great…
This Article IS Excellent.
Thanks for your information sharing!
Hello sir,
This is my error while accessing webform1.aspx please solve
Server Error in ‘/’ Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a “web.config” configuration file located in the root directory of the current web application. This <customErrors> tag should then have its “mode” attribute set to “Off”.
<!-- Web.Config Configuration File –>
<configuration>
<system.web>
<customErrors mode=“Off”/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the “defaultRedirect” attribute of the application’s <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File –>
<configuration>
<system.web>
<customErrors mode=“RemoteOnly” defaultRedirect=“mycustompage.htm”/>
</system.web>
</configuration>
WE CAN LEARN SOMETHING EXTRA WITH THE HELP OF THIS ARTICLE.
Is this article still valid for .NET 4.0?
This articles demystifies very little. Someone needs to post an article telling you how to set up users in the web.config file… not just a wildcard to allow all users.
Awesome post, very “sitepoint-like”. Thanks
Iam using a NetConnectionEnum Api in VC++ application, and passing arquments like server name and a shared folder name its returning required output, but when i am using the same API in a C# ASP .NET application from an IIS server its returning the error code like access denied. what amy be the problem for this?. the given server name is my local system name and folder name is the shared folder in the local drive.
can you help on this.
Vasudara i have same problem with my web.config files, can anyone the reason for this problem
<!-- Web.Config Configuration File –>
<configuration>
<system.web>
<customErrors mode=“Off”/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the “defaultRedirect” attribute of the application’s <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File –>
<configuration>
<system.web>
<customErrors mode=“RemoteOnly” defaultRedirect=“mycustompage.htm”/>
</system.web>
</configuration>
I am implementing role based security in asp.net.when i use <deny users=“?” in config file.Thi issue is that after valdating user credentials page is transfered to approp page but on clicking some button cotrols or selecting dropdownlist element ,it displays ugly message’Page Can’t be displayed’.
can anybody help me.
Pls???
thanks
Thanks for the great article. I’ve been learning ASP.NET through Zac Ruvalcaba’s book and enjoying (coded in ASP for years). I seem to get problems with the web.config file run through my host account. Is there something that has to be done to initialize it? I stopped and re-started the server once and then a web.config file seemed to work, but I haven’t been able to repeat. Zac’s book discusses .net from running off of a local server, not a hosted account. Just wondering if I’m missing something. Thanks!
I thought your article was great. not too long and straight to the point. thanks, i am a programmer just about to start development in vb.net.
james arraiga
Realy.It’s Great Content for Detail of webconfig file,
Its Amazing content.
great article… One question, how do I modifiy the default web.config? (IE wanting to add culture globalization setting to all newly created web apps)
Yaa, it is a very good article and main thing abt this article is that it is directly straight point to point. so, very interesting. Thanks for giving such a good article and keep it up
great article…but i am ask One question for related web.config.when i was use web application project than i got page can not be dispaly so i want to know this error are related to web.config and how can solve this problem.
plz send me solution this mail id
laddha.er@gmail.com
Hi, this was a good article. I have a question.i want to know how to use web config to allow access to domain users only? plz send me solution to this email : uva_pj@yahoo.com
thanks in advance.
The qustion I have is does the .NET 2.0 has some kind of mechanism that deserializes the appSettings configuration value and refer them with typed property to take advantage of intellisence…
The article is so… nice. Explains the basics very clearly. Will be of great help to beginners. Thank you so much.