473,473 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

customErrors mode="Off"

I am prompted to implement the syntax below to be able to monitor the error
on the remote server trough my browser (client).

I can't seem to find where to place the code in my web.config file to get
this to work.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

The code below is my web.config file. Anyone having a suggestion of where to
implement the syntax?

<?xml version="1.0"?>

<configuration>

<connectionStrings>

<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated
Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf" />

</connectionStrings>

<system.web>

<pages styleSheetTheme="White"/>

<customErrors mode="RemoteOnly"/>

<compilation debug="false"/>

<authentication mode="Forms">

<forms loginUrl="Default.aspx" protection="Validation" timeout="300" />

</authentication>

<authorization>

<allow users="*"/>

</authorization>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

<roleManager enabled="true"/>

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">

<providers>

<add name="XmlSiteMapProvider"

description="SiteMap provider which reads in .sitemap XML files."

type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

siteMapFile="web.sitemap"

securityTrimmingEnabled="true"/>

</providers>

</siteMap>

</system.web>

<location path="Admin">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

</configuration>
Sep 22 '06 #1
2 2681
You may not have that tag in your file. Add this tag

<customErrors mode="Off"/>

anywhere between

<system.web>

and

</system.web>

except nested inside other tags.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Tor Inge Rislaa" <to************@rislaa.nowrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I am prompted to implement the syntax below to be able to monitor the error
on the remote server trough my browser (client).

I can't seem to find where to place the code in my web.config file to get
this to work.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

The code below is my web.config file. Anyone having a suggestion of where
to implement the syntax?

<?xml version="1.0"?>

<configuration>

<connectionStrings>

<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated
Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf" />

</connectionStrings>

<system.web>

<pages styleSheetTheme="White"/>

<customErrors mode="RemoteOnly"/>

<compilation debug="false"/>

<authentication mode="Forms">

<forms loginUrl="Default.aspx" protection="Validation" timeout="300" />

</authentication>

<authorization>

<allow users="*"/>

</authorization>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

<roleManager enabled="true"/>

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">

<providers>

<add name="XmlSiteMapProvider"

description="SiteMap provider which reads in .sitemap XML files."

type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

siteMapFile="web.sitemap"

securityTrimmingEnabled="true"/>

</providers>

</siteMap>

</system.web>

<location path="Admin">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

</configuration>


Sep 22 '06 #2
Work just fine now....
....thanks!

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMskrev i
melding news:uB*************@TK2MSFTNGP02.phx.gbl...
You may not have that tag in your file. Add this tag

<customErrors mode="Off"/>

anywhere between

<system.web>

and

</system.web>

except nested inside other tags.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Tor Inge Rislaa" <to************@rislaa.nowrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>I am prompted to implement the syntax below to be able to monitor the
error on the remote server trough my browser (client).

I can't seem to find where to place the code in my web.config file to get
this to work.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

The code below is my web.config file. Anyone having a suggestion of where
to implement the syntax?

<?xml version="1.0"?>

<configuration>

<connectionStrings>

<add name="Personal" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Per sonal.mdf"
providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|asp netdb.mdf" />

</connectionStrings>

<system.web>

<pages styleSheetTheme="White"/>

<customErrors mode="RemoteOnly"/>

<compilation debug="false"/>

<authentication mode="Forms">

<forms loginUrl="Default.aspx" protection="Validation" timeout="300" />

</authentication>

<authorization>

<allow users="*"/>

</authorization>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

<roleManager enabled="true"/>

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">

<providers>

<add name="XmlSiteMapProvider"

description="SiteMap provider which reads in .sitemap XML files."

type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

siteMapFile="web.sitemap"

securityTrimmingEnabled="true"/>

</providers>

</siteMap>

</system.web>

<location path="Admin">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

</configuration>



Sep 22 '06 #3

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

Similar topics

4
by: Julia | last post by:
Hi, I have tried everything (at least everything I know) but it does not work I only get friendly errors I did set customErrors mode="Off" in all web condig files Any one have an idea?!?
21
by: nicholas | last post by:
Although in my web.config I have <customErrors mode="off" /> I still get no detailed errors. How comes ? THX This is what I get: Server Error in '/mywebfolder'Application.
1
by: Menno Abbink | last post by:
Hey All, I'm developing a new website and I want the customer to be able to se my work in progress so I have set up a server behind my ADSL-router. The server is using W2003. I've created a...
1
by: Savas Ates | last post by:
I have a web application It works well in my local fodler.. When i upload it to my web server i got To enable the details of this specific error message to be viewable on remote machines, please...
5
by: Savas Ates | last post by:
I have a web application It works well in my local folder.. When i upload it to my web server i got To enable the details of this specific error message to be viewable on remote machines,...
3
by: =?Utf-8?B?bmt3?= | last post by:
I want to use <customErrors mode="Off"/in the web.config file; but I want to have custom error message for database time out error message. Is it possible?
2
by: moondog | last post by:
I have just upgraded from Visual Studio 2003 to 2005 and am now trying to make my web apps work. My web app compiles and works fine in Visual Studio but once I publish it out to my server (which...
1
by: Andy Fish | last post by:
Hi, I cannot get <customErrors mode="Off"to work at all in .Net 2.0 if I set it to 'Off' it behaves as if it was set to 'RemoteOnly' i.e. I can see the error detail when accessing it from the...
15
denny1824
by: denny1824 | last post by:
I have a working website. I copied all the files to a new folder in inetpub/wwwroot and then set that folder as a Virtual Directory in IIS. I try going to that site from the new folder and i am...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.