Custom 404 error message on .NET shared hosting. How Do I do it for HTML files?

T

TL

Is there a way to trigger a custom error for a 404 tripped up by a
missing html file? (the old site was html, the new site is .NET)

We cannot do it through IIS, because it is shared hosting.

I contacted tech support for the host. verio.com

They said to do it in .NET.

However my thoughts are that this will only work when aspx files are
not found. can I do it through .NET to trigger when html files are
not found?


I am a .NET newbie, so if you could give me detailed instructions as
to which file web.config, global.asax etc... I need to change and what
code I need to enter.

TIA

midevilone(AT)thekingdom.org
 
T

Timothy Luce

will this show a custom erro rfor a missing *.html file?
not just on missing *.aspx files?

Sorry for my lack of knowledge. i just want to make sure I understand
you correctly.

Thanks
TL
 
K

Ken Cox [Microsoft MVP]

Hmmmm. It looks like it only handles the .aspx extension as part of the
application. Arrggghh!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top