473,545 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

avoiding "server error in '/'application" error page (VBNET, Website)

ton
Hi,
I've developed some webcontrols in VB, I'm using these in a website project
If the webcontrol is getting an error I ll get the message:
Server error in '/' application, and than more information.
This can occur, but I donot want to see this error page. In stead I want the
program to show a standard form where I can tell that bla vla bla and try
again later. In the ASP.NET configuration I can specify a URL in case of an
error. But I'll do not see this to be used.

Who can tell ?

thanx

ton

Sep 18 '06 #1
3 2928
In your web.config, set customErrors to ON:
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly " to enable custom
error messages, "Off" to disable.
Add <errortags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly " Display custom (friendly) messages only to users
not running
on the local Web server. This setting is recommended for
security purposes, so
that you do not display application detail information to
remote clients.
-->
<customErrors mode="on" />

ton wrote:
Hi,
I've developed some webcontrols in VB, I'm using these in a website project
If the webcontrol is getting an error I ll get the message:
Server error in '/' application, and than more information.
This can occur, but I donot want to see this error page. In stead I want the
program to show a standard form where I can tell that bla vla bla and try
again later. In the ASP.NET configuration I can specify a URL in case of an
error. But I'll do not see this to be used.

Who can tell ?

thanx

ton
Sep 18 '06 #2
ton
thanx, it is simple and it works
"Sean Chambers" <dk****@gmail.c omschreef in bericht
news:11******** *************@m 73g2000cwd.goog legroups.com...
In your web.config, set customErrors to ON:
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly " to enable custom
error messages, "Off" to disable.
Add <errortags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly " Display custom (friendly) messages only to users
not running
on the local Web server. This setting is recommended for
security purposes, so
that you do not display application detail information to
remote clients.
-->
<customErrors mode="on" />

ton wrote:
>Hi,
I've developed some webcontrols in VB, I'm using these in a website
project
If the webcontrol is getting an error I ll get the message:
Server error in '/' application, and than more information.
This can occur, but I donot want to see this error page. In stead I want
the
program to show a standard form where I can tell that bla vla bla and try
again later. In the ASP.NET configuration I can specify a URL in case of
an
error. But I'll do not see this to be used.

Who can tell ?

thanx

ton

Sep 18 '06 #3
You can even tell it to display an html page that you made like so:

<customErrors defaultRedirect ="404.html" mode="On">
<error statusCode="404 " redirect="404.h tml" />
</customErrors>

ton wrote:
thanx, it is simple and it works
"Sean Chambers" <dk****@gmail.c omschreef in bericht
news:11******** *************@m 73g2000cwd.goog legroups.com...
In your web.config, set customErrors to ON:
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly " to enable custom
error messages, "Off" to disable.
Add <errortags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly " Display custom (friendly) messages only to users
not running
on the local Web server. This setting is recommended for
security purposes, so
that you do not display application detail information to
remote clients.
-->
<customErrors mode="on" />

ton wrote:
Hi,
I've developed some webcontrols in VB, I'm using these in a website
project
If the webcontrol is getting an error I ll get the message:
Server error in '/' application, and than more information.
This can occur, but I donot want to see this error page. In stead I want
the
program to show a standard form where I can tell that bla vla bla and try
again later. In the ASP.NET configuration I can specify a URL in case of
an
error. But I'll do not see this to be used.

Who can tell ?

thanx

ton
Sep 18 '06 #4

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

Similar topics

5
3001
by: Sam | last post by:
Guys facing a strange problem any clue would really rescue me.. i am using a ASP application with following things Server : Intel Xeon (TM) CPU 2GHz, 2GB RAM, 136GB HDD OS : Windows 2000 Advanced server. IIS5.0 Database: Oracle (Using ADODB to connect to the Database) App server running on the same machine (COM+)
0
1465
by: Krishnamoorthy | last post by:
have a website which is running under asp. I have created a folder and declared as Virtual directory from webspace provider. Now i placed files which are generated at a time of creating new ASP.NET Project(all files inc .vb.aspx, .dll and etc). But it saying an error message Server Error "/" Application make change in web.config .
0
18442
by: BGS | last post by:
I have a web site (www.on-the-matrix.com) that displays photos in a "slide show" format on ASPX pages that run in an inline frame on an ASP page (or in a separate pop-up window). The ASPX pages use a hidden form to transmit information back to the server so it will know which is the next photo to load. All of this works as intended in modern...
1
6027
by: vijay | last post by:
Hi I am working on a web application. I have huge form where in I have filled some part of the form and after two hours again I started filling the rest of the form but I got the following error Server Error in '/abc' Application Server Error in '/abc' Application >> Object reference not set to an instance of an object. >> Description:...
2
2037
by: news.microsoft.com | last post by:
hi, I am new in ASP.NET i make a page using Visual Studio.net compile and successfully run on local system but when i upload it on my internet live server it always gives me the same error if anyone helps me i will be very thankfull: ---------------------------------------------------------------------------- Server Error in '/'...
5
6552
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development Environment" with this message: "Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on...
3
6032
by: ADavidson | last post by:
I'm getting a {"Parser Error: The Runat attribute must have the value Server." } error when I try to get the Server.GetlastError() in the Global.asax codebehind. Why am I getting this? I tried to remove the code-behind and add the <script language="C#" runat="server"> but that fails as well. The code is simply:
2
7251
by: Andy Chen | last post by:
Hi, When I am using the fowllowing code to open page http://spaces.msn.com/members/mailcall/ .... try{ string url = http://spaces.msn.com/members/mailcall/; HttpWebRequest httpReq = null; HttpWebResponse httpResp = null; httpReq = (HttpWebRequest)WebRequest.Create(url);
1
8187
by: Tito Meinrath | last post by:
Hi, I'm really going mad about this! Currently I'm designing a student course on web services. Because I want them to understand what's really going on when web services correspond with each other (or other consumers) via SOAP, I want to generate SOAP-messages in XML manually and send it via POST-method to the hosting server. But...
0
7487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7446
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7778
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5349
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4966
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3476
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1033
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
731
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.