Set Root Folder

  • Thread starter Thread starter Earl Partridge
  • Start date Start date
E

Earl Partridge

Windows XP Pro, FP 2000, IIS 5.1
I'm having problems getting an .asp page to work. A simple <%Hello World %>
saved as test.asp will not display Hello World. I visited the IIS newsgroup
and
found that if this test.asp page is saved in the c:\inetpub\wwwroot folder,
it will
work. My pages are all contained in a folder one level lower, such as
c:\inetpub\wwwroot\earl. Can I set this "earl" folder to be my root...
either in
FP or IIS?
Earl
 
No. IIS under Windows 2000 Pro or Windows XP Pro is limited to a single root web.

Is /earl a subweb under wwwroot or just a folder and are you always access it via http://localhost/
or http://localhost/earl


When working with server-based webs you should never access it by it's drive letter path.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
"/earl" is a folder. My only needs/efforts to access this test.asp is when
working in FP, and trying to view with Preview in Browser.
Earl


Thomas A. Rowe said:
No. IIS under Windows 2000 Pro or Windows XP Pro is limited to a single root web.

Is /earl a subweb under wwwroot or just a folder and are you always access
it via http://localhost/
 
Try this: In FP move the page into the root of the web out of the /earl folder, then test using
http://localhost/test.asp

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Is there a typo in the <% Hello World %>? The reason I ask is because this
actually does nothing. You would need to say <%= Hello World %>. The equal
sign immediately after the first percent is a shortcut for the
Response.Write method.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
More info. based on that error response that there was a problem in
global.asa, apparently that file in c:\inetpub\wwwroot is the initial
default
asa file. I copied the global.asa file from c:\inetpub\wwwroot\earl and
using http://localhost/hello.asp does work.

However, it appears my problem still exists trying to run an .asp page from
my "/earl" folder. Looks like I might have to bite the bullet and do away
with that folder and move everything to c:\inetpub\wwwroot
Earl
 
Earl,

Do you have a database or connection to a database within this web space? If not delete the
global.asa file.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
I have a folder named "DB" that contains several databases.
Incidentally, I did discover that the root can be changed, or at least it
appears
changeable... at:
Control Panel | Administrative Tools | Internet Information Services,
then
expand "your computer", then expand "Web Sites" and select properties
of "Default Web Site", then the "Home Directory" tab and there I changed
my root directory.
Earl
 
Ok, the databases need to be in the fpdb folder so that FP can set the correct ASP permissions for
the web, and you need to recreate the database connections under Tools | Web / Site Settings |
Database.

Root Web: But you can only have a single root web under IIS running under Windows 2000/XP Pro, no
matter where the physical directory is. The home directory = root web.

If you change the home directory, it can not be under the current home directory, and you will loose
access to all content that is outside of this directory via the web server / FP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
It should, see my other reply.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Wow, I'm starting to get lost. Let me add this last observation and ask
what
the results might point to as the problem...

In FP, I open an .asp page that calls for data from a database. I Preview
in Browser
and the data is not retrieved. I View Source and my asp code is shown.

I connect to my hosting service live from FP, open the same file there,
Preview in
Browser, it works correctly. The database data is filled in and my asp code
is
not visible when I View Source.

Would this imply a problem with FP, ASP, IIS or Database Connection?
I suspect ASP.
Earl
 
This would normally indicate that you are not accessing the page via http on your local machine.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top