Hi
I have created a Web.config file with theses settings:
<customErrors mode="RemoteOnl y"
defaultRedirect ="/errorpages/generic.aspx">
<error statusCode="403 " redirect="/errorpages/noaccess.aspx" />
<error statusCode="404 " redirect="/errorpages/filenotfound.as px" />
</customErrors>
If a user tries to go to a folder that does not exist then I get my default
HTML error page for directory not found.
If a user tries to go to an aspx page in a folder that does not exist that
get a horrible error page telling them that of A Runtime Error and that they
should changes the Web.config error mode to off to see the Error. How can I
make it that they go to one of my nice looking Error pages.
Thanks 2 1649
Hi Kenneth,
Have u navigated to /errorpages/filenotfound.as px to
ensure that this page loads up okay by itself? You might
be getting an error because of some code on this page. To
check if this is a case, create a test "filenotfound.h tml"
and set web.config so that 404 status takes u
to /errorpages/filenotfound.ht ml instead of the aspx page.
If this works okay, u know there is something wrong with
ur particular aspx page. -----Original Message----- Hi I have created a Web.config file with theses settings: <customErrors mode="RemoteOnl y" defaultRedirec t="/errorpages/generic.aspx"> <error statusCode="403 "
redirect="/errorpages/noaccess.aspx" /> <error statusCode="404 "
redirect="/errorpages/filenotfound.as px" /> </customErrors>
If a user tries to go to a folder that does not exist
then I get my defaultHTML error page for directory not found. If a user tries to go to an aspx page in a folder that
does not exist thatget a horrible error page telling them that of A Runtime
Error and that theyshould changes the Web.config error mode to off to see
the Error. How can Imake it that they go to one of my nice looking Error
pages. Thanks
.
"Priya" <an*******@disc ussions.microso ft.com> wrote in message
news:09******** *************** *****@phx.gbl.. . Hi Kenneth, Have u navigated to /errorpages/filenotfound.as px to ensure that this page loads up okay by itself? You might be getting an error because of some code on this page. To check if this is a case, create a test "filenotfound.h tml" and set web.config so that 404 status takes u to /errorpages/filenotfound.ht ml instead of the aspx page. If this works okay, u know there is something wrong with ur particular aspx page.
The page seems to work fine but the fault occurs if you try to get to a
folder called publications
Why would this be the case. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve |
last post by:
All --
This occasionally happens, and there's no set pattern on why this
is... perhaps it happens a few times every few months or so.
I have a custom ATL COM object that handles data from multiple pages
and sites on my server. Occasionally, I'll get the following errors:
ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_0177_:_c0000005|Server.CreateObject_Failed
500
|
by: sinister |
last post by:
I have some CGI programs that spit out error pages when the user enters
illegal form input. These custom error pages, while informing the user of
errors, are otherwise just standard web pages.
Is there a disadvantage to not spitting out a 404 error? I assume 404 isn't
just another webpage, but carries with it the information that an error
occured---in so simple a manner that it could be used for e.g. link
checking.
TIA,
|
by: CoreyMas |
last post by:
This is what i am trying to do
I have a DAL that contains all of my database connections/reads etc.
I have a separate GUI layer that has my web pages
I would like to pass my exception errors in my DAL to a custom web page to
display to the user.
Here is what I have done so far
|
by: Nick |
last post by:
the customError feature is not working. I have it setup as the help says in
my web.config file.
<customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/>
I tried in a couple different parts of my site to throw a dummy exception
and I always get to the page that says change my web.config to the statement
above.
|
by: Bubu |
last post by:
Hello this is robert,
I need some suggestion,
I have a website, hosted in windows 2003 server,shared hosting.
I would like to have a custom 404 error page, for missing files.
In the help file of my internet provider they said to do it in .NET,
like this
web.config
<configuration>
| |
by: Matt |
last post by:
Hello all,
The app we are working on uses custom errors extensively to provide
friendly error pages to users whilst logging the actual exceptions
behind the scenes.
However.... We are now having to integrate some Web services into the
application using the existing architecture. These Web services are
secured using Forms Authentication. Hence, we need to turn the default
behavior of Forms Authentication (redirects to login pages, etc)...
|
by: Rhys666 |
last post by:
OK, an issue I've come across before, but never found a cause for or
resolution of, has decided to become the bane of my life again with ASP.Net
Custom Error Pages.
Basically, my web application is configured to utilise a custom errors page,
in that unhandled exceptions get passed through and the page redirects
correctly as per the settings in the web.config file and Global.asax. This
works in 95% or so of cases, however...
On...
|
by: bryan |
last post by:
I've got a custom HttpHandler to process all requests for a given
extension. It gets invoked OK, but if I try to do a Server.Transfer I
get an HttpException. A Response.Redirect works, but I really need to
avoid the extra round-trip to the client.
I've tried Passing the page name, the full URL, and the instance of
the handler class to the Transfer method, but everything gets me the
same error 500.
Any help would be appreciated.
|
by: Ryan |
last post by:
I am trying to log events to SQL Server instead of the computers event
log, but, although I get no errors, I have no luck. The
webevents_events table is empty. I have a custom event that I am
raising (passwordchange), and can see it beign raised
successfully...just it seems to go nowhere. I have run aspnet_regsql
to setup the database to handle event recording. I am fairly sure I am
missing something in my web.config file. (I would...
|
by: rote |
last post by:
I'm using ASP.NET 2.0 and i have copied and pasted the code below to my
Global.asax file but it desn't trap
the error
I want to trap the 401 access denied
void Application_Error(object sender, EventArgs e)
{
Exception exception = Server.GetLastError();
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |