Connect with Expertise | Find Experts, Get Answers, Share Insights

IIS page not found

C
 
Join Date: Jul 2007
Posts: 122
#1: Feb 9 '10
Hello

I use asp.net and as such use a web.config file which specifies what to do incase of an error and what page to go to in relation to that error.

I have now moved the website to my own server and this is no longer working. I have found the Error pages tab but don't think this is correct as i don't want to set this up manually, I want the IIS to know there is an error and then look up the config file to see how to process it.

I assume I can update this globally under Edit Error Page Settings which allows me to set a default page. however, whilst doing so I get the message 'Lock Violation.' I ran %windir%\System32\inetsrv\appcmd unlock config -section:system.webserver/httperrors and got no where

I have also realised the title of this is wrong for the question. I'm sorry but I can't edit it!

Any ideas?

Thanks

Dave

sashi's Avatar
E
C
 
Join Date: Jun 2006
Location: Seremban, Malaysia
Posts: 1,743
#2: Feb 14 '10

re: IIS page not found


Hi DaveRook,

I don't have much knowledge when it comes IIS7, i tumble upon the below attached articles, i hope it helps.

http://learn.iis.net/page.aspx/145/h...configuration/
http://www.iis.net/ConfigReference/s...ver/httpErrors
C
 
Join Date: Jul 2007
Posts: 122
#3: Feb 15 '10

re: IIS page not found


Thanks Sashi

I will give that a go. I'm suprised it is locked as I don't see this being a security issue (I assume that is why it is locked as default) as all it needs to do is read from the web.config file!

Thanks

Dave
sashi's Avatar
E
C
 
Join Date: Jun 2006
Location: Seremban, Malaysia
Posts: 1,743
#4: Feb 15 '10

re: IIS page not found


Good Luck & Take care :)
codegecko's Avatar
E
C
 
Join Date: May 2007
Location: United Kingdom
Posts: 422
#5: Feb 24 '10

re: IIS page not found


Hi Dave,

Can you please clarify for me - do you mean that the <customErrors> section of your web.config is not influencing IIS?

Best,

codegecko
C
 
Join Date: Jul 2007
Posts: 122
#6: Feb 24 '10

re: IIS page not found


Yes, you are correct and also explained the issue so much better than I did!

Any ideas?
Reply