IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

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 Dev Shed Forums Sponsor:
  #1  
Old July 16th, 2008, 09:25 AM
eyeballpauluk eyeballpauluk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 19 eyeballpauluk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 3 m 5 sec
Reputation Power: 0
IIS7 pages cant find other links properly

Hi all.

I have 2 problems which I believe are related. I'll start off by saying the website in question is one I worked on on my work PC and it works fine, but now when I run it at home (a direct copy) it has problems. So the problem will not be the actual website, I'm sure its the setup of my IIS7.

Basically, I link to files at the top of my ASPX pages. It would be something like:

src="/ADMIN/some_test_file"

or

src="~/ADMIN/some_test_file"

and I would use this in a page which would be located at "/TEMPLATES/" within the site root. Both the TEMPLATES and ADMIN folder are in the site root. Now the problem arises that I then need to change the src tag to:

src:"../ADMIN/some_test_file"

for the file to be found. What would I need to change in IIS so that I don't have to change all the links to files, which would be hundreds of links! And then I would have to change it back when at work! So that it would do all its searching from the site root.

Secondly, my .aspx.vb code-behind files have import statements at the start. But for some reason my own made class files are not recognised when I try to instantiate an object. I would assume that it cannot find the APP_CODE folder for the same reason as above where it is not looking in the site root.

Any ideas how to fix this?

Thanks, Paul.

Reply With Quote
  #2  
Old September 11th, 2008, 09:34 AM
dprichard dprichard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Tampa, FL
Posts: 12 dprichard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 sec
Reputation Power: 0
I am having a similar issue since moving to IIS 7. Did you find a resolution for this?

Reply With Quote
  #3  
Old September 11th, 2008, 01:29 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
Any actual error messages would help identify your problems. parent paths is one likely IIS setting to check.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved
of it. --Mark Twain

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS7 pages cant find other links properly


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 5 hosted by Hostway
Stay green...Green IT