Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 3rd, 2004, 01:22 PM
dauger dauger is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 dauger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy IIS 6 + ASP + /./../ problem

I have a feeling there isn't an easy answer to this problem but here it goes.

I need to migrate a couple classic ASP aps from a win2k/IIS5 server to a win2003/IIS6 server. The apps use "/./../" all over the place to reference paths for graphics, include files, and redirect urls. Unfortunately IIS6 throws a 403 (Forbidden) error. If I manually take out the /./../ things work ok, but these apps are hundreds of pages, which would amount to a testing nightmare. I have tried enabling "Parent Paths" in IIS, but that does not seem to do the trick.

Any Ideas??

Reply With Quote
  #2  
Old March 3rd, 2004, 01:37 PM
dauger dauger is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 dauger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A little more info. If I turn off friendly error messages in IE, it's 403 Forbidden(Invalid URL).

Using firebird/firefox works fine - it seems to throw away the /./../ in any urls in this situation.

Reply With Quote
  #3  
Old March 3rd, 2004, 08:54 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 32 m 23 sec
Reputation Power: 180
Another thing that throws a "forbidden" error is when there is no default document in a directory and you don't have permissions to browse the directory contents. Perhaps you need to tweak the default document(s) for your website.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #4  
Old March 10th, 2004, 11:31 AM
sjwm sjwm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 sjwm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IIS 6.0 has parent folders disabled by default. You might try enabling them.
To do this go to the properties of your site in IIS, click on the Home Directory tab
then click the Configuration button. Go to the Options tab on the form that comes
up and check the "Enable Parent Paths" box.

Hope this helps.

Reply With Quote
  #5  
Old June 3rd, 2004, 02:42 AM
yyh yyh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 7 yyh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi,
Currently, I am facing the same problem as Dauger when i transfer my asp files from Win2k to Win Server 2003. My web page can be up and linking to other pages are fine, however, when I click those links that will pop up a screen, the pop up screen show "Forbidden (Invalid URL)".

I already enable the parent path in IIS but things still don't work. What shuold I do to solve this problem.

Thanks for the help.

yyh

Reply With Quote
  #6  
Old June 3rd, 2004, 04:24 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 32 m 23 sec
Reputation Power: 180
Do you have a default document in the web? Like default.asp or whatever?

Reply With Quote
  #7  
Old June 3rd, 2004, 08:59 PM
yyh yyh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 7 yyh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Doug G,

Thanks for the reply....

Yes, i have the default document
the code is as below:

<%@ Language=VBScript %>
<% Option Explicit %>
<% Response.Redirect "General/asp/LoadConst.asp" %>
<% 'Response.Redirect "Main.asp" %>

yyh

Reply With Quote
  #8  
Old June 3rd, 2004, 09:51 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 32 m 23 sec
Reputation Power: 180
Try just a simple one-line default page & see if it works, something like

<% response.write "asp is working, yippee!" %>

Reply With Quote
  #9  
Old June 3rd, 2004, 10:07 PM
yyh yyh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 7 yyh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Doug G,

I had tried the line of code given but still not work.. Actually what is the use of default.asp? I am a new learner in ASP and IIS because this code is not written by me either.

yyh

Reply With Quote
  #10  
Old June 4th, 2004, 01:37 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 32 m 23 sec
Reputation Power: 180
If you open the properties of your IIS web in the IIS service manager MMC, look at the Documents tab, that is where you set "default documents"

These are the document names that IIS will try to open if you call a url without specifying a filename, like in http://localhost from your browser. IIS will look for a default document filename that matches one of the default documents specified for your server. So if default.asp was the 1st default document name, IIS would try to open http://localhost/default.asp if it existed even though you only entered http://localhost in your browser address.

Reply With Quote
  #11  
Old June 5th, 2004, 11:51 AM
yyh yyh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 7 yyh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Dough G,

Thanks for the information given. I had found the problem, there is a variable declared in the Javascript that hold the value "/.." which will make the URL of the pop up screen to look like http://localhost/../abc/def.asp . After I deleted this variable then everything goes back normal.

Anyway, thanks a lot for the help....I really learned something from it.

Have a nice weekend.

yyh

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS 6 + ASP + /./../ problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway