Custom Error pages using asp

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Custom Error pages using asp

Post by Bob-Skanking »

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?
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Custom Error pages using asp

Post by rustypup »

Bob-Skanking wrote:tried ports 21, 80, 8080
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.....

admit it...you're taking wild stabs in the dark here... :lol:
Bob-Skanking wrote:Well that's bloody nice tech support if you ask me.
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...

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
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Re: Custom Error pages using asp

Post by Bob-Skanking »

rustypup wrote:
Bob-Skanking wrote:tried ports 21, 80, 8080
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.....

admit it...you're taking wild stabs in the dark here... :lol:
Bob-Skanking wrote:Well that's bloody nice tech support if you ask me.
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...

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.... :/
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!

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!
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

Yes rusty! Shame on you!

Get out a spoon and feed the dragon the solution before he flames... :roll:
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
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

^^

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
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Re: Custom Error pages using asp

Post by Bob-Skanking »

LOL bt at least provides entertainment ;-)
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Custom Error pages using asp

Post by rustypup »

Bob-Skanking wrote:why not just read posts and move on instead of trolling!
what?... read... posts?.. on the internets?! :shock:

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
User avatar
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

Post by KatrynKat »

and he was named the most knowledgable member 2009!!! seems like he aint any more...
"This eBook is displayed using 100% recycled electrons."
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

KatrynKat wrote:and he was named the most knowledgable member 2009!!! seems like he aint any more...
I know you're not blonde so I'm assuming you're just misinformed...

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
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Re: Custom Error pages using asp

Post by Bob-Skanking »

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!
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

PM me your login detail. I'm sure I'll be able to do something with it... :whistling:
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
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Custom Error pages using asp

Post by rustypup »

KatrynKat wrote:and he was named the most knowledgable member 2009!!!
you've met the competition... how is this a surprise? :lol:
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.
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...

@doo_much: jamin_za may have some suitable 404 pages.... :twisted:
Most people would sooner die than think; in fact, they do so - Bertrand Russel
SykomantiS
Registered User
Posts: 14085
Joined: 06 Oct 2004, 02:00
Location: Location, Location...
Contact:

Re: Custom Error pages using asp

Post by SykomantiS »

Looking at the web.config file of the project I'm working on, I find the following in the file:

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>
        -->
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) :roll:
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

rustypup wrote: jamin_za may have some suitable 404 pages.... :twisted:
The ones he did for the .xxx domain? :evil4:
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
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

SykomantiS wrote: (Sometimes I think rusty can really get anal on a guy) :roll:
rusty is a sexual deviant? :shock:

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
KALSTER
Forum Moderator
Posts: 5439
Joined: 12 Oct 2008, 02:08

Re: Custom Error pages using asp

Post by KALSTER »

Sometimes I think rusty can really get anal on a guy
:) ...Nah, a joke would be too easy...

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
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Custom Error pages using asp

Post by rustypup »

SykomantiS wrote:(Sometimes I think rusty can really get anal on a guy)
oh, my offended sensibilities... :lol:
Well that's bloody nice tech support if you ask me.
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... :/

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
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Custom Error pages using asp

Post by doo_much »

rustypup wrote:... I would proffer ... bug-riddled code...
Pahhh, empty promises - you do that anyway? :whistling:
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
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Re: Custom Error pages using asp

Post by Bob-Skanking »

You have got me wrong. I have setup everything as needed. here is my web.config file

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>
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.
User avatar
Ron2K
Forum Technical Administrator
Posts: 9050
Joined: 04 Jul 2006, 16:45
Location: Upper Hutt, New Zealand
Contact:

Re: Custom Error pages using asp

Post by Ron2K »

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.
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Custom Error pages using asp

Post by rustypup »

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....
Most people would sooner die than think; in fact, they do so - Bertrand Russel
Bob-Skanking
Registered User
Posts: 25
Joined: 02 Aug 2010, 23:48

Re: Custom Error pages using asp

Post by Bob-Skanking »

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!
Post Reply