Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have copied an IIS 7 site's files to a new directory, created a new site for copied files in IIS 7, set up bindings that aren't conflicting, configured the copied site to use a different database than the production site.

I can go to the login page of the copied site. The login page can authenticate me, but when it redirects me to a subdirectory, I get a 500 error from the server. I cannot figure out why I can't access these subdirectories.

Any ideas? This is driving me crazy.

share|improve this question
add comment

2 Answers

It was a classic ASP problem.

I turned failed request tracing on, and saw this:

LineNumber 24
ErrorCode ASP 0131 
Description Disallowed Parent Path

So I went to line 24 in the problem file:

<!--    #include file = "../public.asp" -->

I looked up the error code. The problem was that Parent Paths was not enabled for ASP on the site.

Eureka!

share|improve this answer
1  
Don't forget though that parent paths are considered a security vulnerability, which is why they are turned off by default now. If you have any sort of automated security assessment happening, this will be caught and reported. –  MattB Jul 17 '09 at 14:10
add comment

To see the error use IE on the server, and under advanced internet options switch off Friendly HTTP Errors. This should give you a more readable ASP.Net error which you can troubleshoot further.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.