Custom Error pages using asp
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Custom Error pages using asp
Hi there.
So I have a web site and I use mweb to host the site. Now I have been back and forth communicating with them to the point I want to pull my hair out.
If I point my browser to a non existent page I get the normal ugly 404 page informing me to use IIS to set custom pages.
This is where my headache starts.
Mweb said : place a web.config file in your root with the error handling in it and then place your 404.aspx file where ever your config file points.
Ok so I downloaded premade error pages from asp.net uploaded everything and it doesn't work.
If I point my browser to the 404.aspx file I get a 404 error file not found.
So I gather I need to use iis to set up the custom error pages.
HOW? I have installed everything and I have tried the following:
1) connect to server using server address : www5.shared.mwebhosting.net (tried ports 21, 80, 8080) username :***** Password: *****
I get a connection error (On port 21 the error is immediate that it could not start the underlying communication)
2) I have tried the same as above but trying to connect to website I get same problem.
Mweb answers my email:
We're not web designers maybe you should consider hiring the services of a professional designer.
Well that's bloody nice tech support if you ask me. I have my site designed and running I just want to know how to get IIS to connect.
Can anyone out there provide me some advice?
So I have a web site and I use mweb to host the site. Now I have been back and forth communicating with them to the point I want to pull my hair out.
If I point my browser to a non existent page I get the normal ugly 404 page informing me to use IIS to set custom pages.
This is where my headache starts.
Mweb said : place a web.config file in your root with the error handling in it and then place your 404.aspx file where ever your config file points.
Ok so I downloaded premade error pages from asp.net uploaded everything and it doesn't work.
If I point my browser to the 404.aspx file I get a 404 error file not found.
So I gather I need to use iis to set up the custom error pages.
HOW? I have installed everything and I have tried the following:
1) connect to server using server address : www5.shared.mwebhosting.net (tried ports 21, 80, 8080) username :***** Password: *****
I get a connection error (On port 21 the error is immediate that it could not start the underlying communication)
2) I have tried the same as above but trying to connect to website I get same problem.
Mweb answers my email:
We're not web designers maybe you should consider hiring the services of a professional designer.
Well that's bloody nice tech support if you ask me. I have my site designed and running I just want to know how to get IIS to connect.
Can anyone out there provide me some advice?
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Custom Error pages using asp
21 is the FTP control port and will bounce any traffic which isn't FTP... 8080 is standard for proxy connections, so you're trying to connect to a proxy.....Bob-Skanking wrote:tried ports 21, 80, 8080
admit it...you're taking wild stabs in the dark here...
i see nothing wrong with their response. it was helpful to the extent that you're not looking for help, you're looking for someone to do the work for free...Bob-Skanking wrote:Well that's bloody nice tech support if you ask me.
hire someone who knows what they're doing... this is why they spent all that cheese at night school...
alternatively, go spend some cheese at night school.... :/
Most people would sooner die than think; in fact, they do so - Bertrand Russel
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Re: Custom Error pages using asp
Actually no i am not taking stabs at the dark! I just attempted those other ports to see. IIS will not connect to www5.shared.mwebhosting.net PERIOD!rustypup wrote:21 is the FTP control port and will bounce any traffic which isn't FTP... 8080 is standard for proxy connections, so you're trying to connect to a proxy.....Bob-Skanking wrote:tried ports 21, 80, 8080
admit it...you're taking wild stabs in the dark here...
i see nothing wrong with their response. it was helpful to the extent that you're not looking for help, you're looking for someone to do the work for free...Bob-Skanking wrote:Well that's bloody nice tech support if you ask me.
hire someone who knows what they're doing... this is why they spent all that cheese at night school...
alternatively, go spend some cheese at night school.... :/
I am not asking them to design anything but rather just to inform me how to connect using iis as I have only used linux servers. So in response to spending cheese, I would say I have seeing as in all my years I spent well over the average on courses including A+, N+, ICDL, HTML, and blah blah blah. but i am not here to give a quote of my qualifications nor provide a CV.
In future if you can't provide at least what one would consider to be useful info why not just read posts and move on instead of trolling!
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
Yes rusty! Shame on you!
Get out a spoon and feed the dragon the solution before he flames...
Get out a spoon and feed the dragon the solution before he flames...
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
That's what a totally useless troll answer looks like...
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Re: Custom Error pages using asp
LOL bt at least provides entertainment
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Custom Error pages using asp
what?... read... posts?.. on the internets?!Bob-Skanking wrote:why not just read posts and move on instead of trolling!
madness...
imperfect application of the solution is no reason to throw toys..
Most people would sooner die than think; in fact, they do so - Bertrand Russel
- KatrynKat
- Insane in the Membrane
- Posts: 24490
- Joined: 18 Jul 2010, 17:42
- Location: In my BDSM dungeon - aka Lockdown
Re: Custom Error pages using asp
and he was named the most knowledgable member 2009!!! seems like he aint any more...
"This eBook is displayed using 100% recycled electrons."
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
I know you're not blonde so I'm assuming you're just misinformed...KatrynKat wrote:and he was named the most knowledgable member 2009!!! seems like he aint any more...
He still is. And helpfull as well. But not into spoonfeeding...
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Re: Custom Error pages using asp
Spoonfeeding? um..... correct me if I am wrong but this thread is about providing help to users when it comes to we design is it not? I am not asking to be spoon fed I am asking just for a it of help getting iis to work.
Spoonfeeding would be me asking to you to log onto my system and set it up for me Hmmmmph!
Spoonfeeding would be me asking to you to log onto my system and set it up for me Hmmmmph!
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
PM me your login detail. I'm sure I'll be able to do something with it...
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Custom Error pages using asp
you've met the competition... how is this a surprise?KatrynKat wrote:and he was named the most knowledgable member 2009!!!
see this step here... this one... there is no reference in the OP as to what happened with this one.. .only lots of guff about leaping ahead and grabbing/uploading a custom 404.... whereas the preceding step is the actual solution...Mweb said : place a web.config file in your root with the error handling in it and then place your 404.aspx file where ever your config file points.
@doo_much: jamin_za may have some suitable 404 pages....
Most people would sooner die than think; in fact, they do so - Bertrand Russel
-
- Registered User
- Posts: 14085
- Joined: 06 Oct 2004, 02:00
- Location: Location, Location...
- Contact:
Re: Custom Error pages using asp
Looking at the web.config file of the project I'm working on, I find the following in the file:
That is basically what you want. Now this isn't spoon feeding, but it should point you in the right direction.
(Sometimes I think rusty can really get anal on a guy)
Code: Select all
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
(Sometimes I think rusty can really get anal on a guy)
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
The ones he did for the .xxx domain?rustypup wrote: jamin_za may have some suitable 404 pages....
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
rusty is a sexual deviant?SykomantiS wrote: (Sometimes I think rusty can really get anal on a guy)
No wonder he gets along with jamin!
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
Re: Custom Error pages using asp
...Nah, a joke would be too easy...Sometimes I think rusty can really get anal on a guy
Edit: Nevermind.
"It is the mark of an educated mind to be able to entertain a thought without accepting it." - Aristotle
Intel i5 2500; AsRock Z77 Extreme 4; Asus GTX580; 4x 2GB DDR3 1333; Intel 520 240GB SSD + 2x WD 3TB + 2TB Samsung; Samsung 22X DVD/RW; 23" LG W2343T-PF; Huntkey 700W
Intel i5 2500; AsRock Z77 Extreme 4; Asus GTX580; 4x 2GB DDR3 1333; Intel 520 240GB SSD + 2x WD 3TB + 2TB Samsung; Samsung 22X DVD/RW; 23" LG W2343T-PF; Huntkey 700W
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Custom Error pages using asp
oh, my offended sensibilities...SykomantiS wrote:(Sometimes I think rusty can really get anal on a guy)
if that quote doesn't scream "whip me like i'm catholic", nothing will... they gave him the answer from the outset... he didn't like the answer so now it's here... in the hopes that someone who makes their living doing this will perform a little pro bono for the abuse... :/Well that's bloody nice tech support if you ask me.
unless i'm thoroughly mistaken, in which case i would proffer profuse apologies and a half hour of bug-riddled code...
Most people would sooner die than think; in fact, they do so - Bertrand Russel
-
- Registered User
- Posts: 26022
- Joined: 13 May 2004, 02:00
- Location: Getting there...
- Contact:
Re: Custom Error pages using asp
Pahhh, empty promises - you do that anyway?rustypup wrote:... I would proffer ... bug-riddled code...
MOOD - Thirsty
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Re: Custom Error pages using asp
You have got me wrong. I have setup everything as needed. here is my web.config file
I have my error pages uploded to root/errors
now if I goto my page http://xxxxx.xx.xx/xx causing a 404 error i still get the standard 404 error page telling me to configure it with iis.
this is what I am asking help for.... not how to script the pages that I have done already.
If I upload a aspx file to my server and point my browser at it I also get a 404 error even though I know the file is there.
hope that clears up the spoonfeeding thing
no matter what i try IIS will not connect to the mweb server and there is where i need help and what exactly to do once i is connected to get aspx working on the site like it is supposed to.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<add type="AspNetResources.CustomErrors4.MyErrorModule,CustomErrors4" name="MyErrorModule" />
</httpModules>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx">
<error statusCode="404" redirect="~/errors/PageNotFound.aspx" />
</customErrors>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
</configuration>
now if I goto my page http://xxxxx.xx.xx/xx causing a 404 error i still get the standard 404 error page telling me to configure it with iis.
this is what I am asking help for.... not how to script the pages that I have done already.
If I upload a aspx file to my server and point my browser at it I also get a 404 error even though I know the file is there.
hope that clears up the spoonfeeding thing
no matter what i try IIS will not connect to the mweb server and there is where i need help and what exactly to do once i is connected to get aspx working on the site like it is supposed to.
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Custom Error pages using asp
Which IIS version? IIS only went big on web.config files from the Server 2008 editions onwards, although the .NET framework has been using them since long before. If it's a Windows Server 2003 box and not a .NET web application, web.config files won't help you; you'll need to configure IIS itself (via remote desktop access or something similar).
Kia kaha, Kia māia, Kia manawanui.
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Custom Error pages using asp
there's always global.asax....
IIS on 2008 is.... unpleasant... it wasn't exactly cuddly before, but... yurgh...
<edit>
@Bob-Skanking: if my diligent research is accurate, you have yet to spam this thread... this behavior cannot be tolerated and will be met with slander... like being accused of wearing those fury boot abominations... with tassels....
IIS on 2008 is.... unpleasant... it wasn't exactly cuddly before, but... yurgh...
<edit>
@Bob-Skanking: if my diligent research is accurate, you have yet to spam this thread... this behavior cannot be tolerated and will be met with slander... like being accused of wearing those fury boot abominations... with tassels....
Most people would sooner die than think; in fact, they do so - Bertrand Russel
-
- Registered User
- Posts: 25
- Joined: 02 Aug 2010, 23:48
Re: Custom Error pages using asp
Ron2K wrote:Which IIS version? IIS only went big on web.config files from the Server 2008 editions onwards, although the .NET framework has been using them since long before. If it's a Windows Server 2003 box and not a .NET web application, web.config files won't help you; you'll need to configure IIS itself (via remote desktop access or something similar).
This is just it! Mweb said put a web.config file there. I did that. doesn't do twak! IIS won't connect to the site no matter what i do. so i am buggered!