|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
I am having a similar issue since moving to IIS 7. Did you find a resolution for this?
|
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS7 pages cant find other links properly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|