Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

custom errors

$
0
0

I'm trying to do this -> for EVERY error, no mather if it's because of a 404 or 500 in an ASP.NET application or something that happend in my custom native HttpHandler, I want to display a page with just one word on it saying "Gartenschlauch" ... really!!!

Now... what I first did was adding a httpErrors in the web.config file (under system.webServer) ... I added a "defaultPath" to a file containing this word (absolute path) and added the defaultResponseMode="File" plus existingResponse="Replace" ... and then I also added a "<clear/>" as content of this httpErrors-section...

Then I started the application and typed a wrong filename (404s should now be redirected to my error page... at least, that's what I thought) ... but... 500.19 ... that's all I got... then I figured out, that I have to unlock the "defaultPath" attribute in the IIS settings... ok... I did that... and now... ? nothing... I get the standard IIS errors...

So... can someone tell me how the f... I can achieve what I want? (and second question: why the hell is it always so difficult to achieve such easy things with software of Microsoft? ... Why do I always have to invest hours in reading and trying out and buying books and talking about it, until I can find out how it's done? ... why why why??????)

The basic fault in the software of Microsoft is, that settings are not settings... you have to set the setting in at least 10 different files. And then you have to unlock the settings in another 100 files until you can start hacking the registry where you have to unlock it again in 1000 keys simply to get one f... setting working! ... cannot be true such things...

I guess, that I won't get an answer... that's fine too... I never expected to get one... anyway... I'll click "post" now...


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>