Testing asp

S

snip

Hi there,

I am starting to learn ASP
I am working on XP PRO and have IIS installed.

I can't get the IIS configured to run an ASP site to test it.

My code is working after uploading the pages to my web domain.

Is there a better way of testing the ASP code, at present I am using
HTMLKIT for editing.
 
B

Beauregard T. Shagnasty

Quoth the raven named snip:
I am starting to learn ASP
I am working on XP PRO and have IIS installed.

I can't get the IIS configured to run an ASP site to test it.

Been awhile since I set mine up (on W2kPro) but I believe you need the
FrontPage Server Extensions installed. Have you done that? If not,
search msdn.microsoft.com I've forgotten the links.

Do you have a c:\inetpub\wwwroot\yoursite for your site? It has to
run from there.
My code is working after uploading the pages to my web domain.

Is there a better way of testing the ASP code, at present I am using
HTMLKIT for editing.

Doubt if the editor matters, so long as you have valid asp. Be sure to
copy pages to the above inetpub structure after editing.

Personally, I like Visual Interdev for editing and maintaining
projects. It auto updates the inetpub. I do all handcoding though, and
don't use any of its wizard crap.
 
H

Hywel Jenkins

Quoth the raven named snip:


Been awhile since I set mine up (on W2kPro) but I believe you need the
FrontPage Server Extensions installed.

I don't think you do. I purposely don't install them because they're so
unreliable and insecure.

Do you have a c:\inetpub\wwwroot\yoursite for your site? It has to
run from there.

As a default.

Personally, I like Visual Interdev for editing and maintaining
projects. It auto updates the inetpub. I do all handcoding though, and
don't use any of its wizard crap.

That's why you need the FP extensions.
 
A

Augustus

snip said:
Hi there,

I am starting to learn ASP
I am working on XP PRO and have IIS installed.

I can't get the IIS configured to run an ASP site to test it.

My code is working after uploading the pages to my web domain.

Is there a better way of testing the ASP code, at present I am using
HTMLKIT for editing.

There shouldn't be anything you need to do to IIS to make ASP run... it
should be set up and configured when it (IIS) is installed

This doesn't mean that you can put an ASP page anywhere on your computer and
when you click on it, it runs (ie: on your desktop, in your My Documents
folder, in C:\My Website\, etc)

You have to go in the IIS control panel and create a new website... then
copy your ASP files to the folder specified for the website... then view
them through your web server...

To do this, you would go to MY COMPUTER and create a new folder in
C:\inetpub\wwwroot
(in this example, we'll say you make a new folder called "mysite")

Then open Internet Services Manager (the IIS control panel)
Right click on your computer name and select NEW >> website
enter description, click NEXT, click NEXT again
enter a path to your files: c:\inetpub\wwwroot\mysite

Once you have your website set up, you can now copy your files into the
folder
(c:\inetpub\wwwroot\mysite)

And to view them as a website, you can either view through the IIS control
panel or you can open IE and enter:
http://localhost/mysite
 
S

snip

There shouldn't be anything you need to do to IIS to make ASP run... it
should be set up and configured when it (IIS) is installed

This doesn't mean that you can put an ASP page anywhere on your computer and
when you click on it, it runs (ie: on your desktop, in your My Documents
folder, in C:\My Website\, etc)

You have to go in the IIS control panel and create a new website... then
copy your ASP files to the folder specified for the website... then view
them through your web server...

To do this, you would go to MY COMPUTER and create a new folder in
C:\inetpub\wwwroot
(in this example, we'll say you make a new folder called "mysite")

Then open Internet Services Manager (the IIS control panel)
Right click on your computer name and select NEW >> website
enter description, click NEXT, click NEXT again
enter a path to your files: c:\inetpub\wwwroot\mysite

Once you have your website set up, you can now copy your files into the
folder
(c:\inetpub\wwwroot\mysite)

And to view them as a website, you can either view through the IIS control
panel or you can open IE and enter:
http://localhost/mysite

I have done all this, My site comes up, but the asp doesn't seem to be
executed. All I have done is add a hitcounter so far.
 
S

snip

Quoth the raven named snip:


Been awhile since I set mine up (on W2kPro) but I believe you need the
FrontPage Server Extensions installed. Have you done that? If not,
search msdn.microsoft.com I've forgotten the links.

Do you have a c:\inetpub\wwwroot\yoursite for your site? It has to
run from there.


Doubt if the editor matters, so long as you have valid asp. Be sure to
copy pages to the above inetpub structure after editing.

Personally, I like Visual Interdev for editing and maintaining
projects. It auto updates the inetpub. I do all handcoding though, and
don't use any of its wizard crap.


I have Visual Studio.net 2003, is InterDev within that.? or an extra
expense.?
 
A

Augustus

snip said:
I have done all this, My site comes up, but the asp doesn't seem to be
executed. All I have done is add a hitcounter so far.

Well, best thing to do right now then would be to check and make sure the
ASP is working...

try just doing a page up like:

<%@ language=vbscript %>
<%response.write "test"%>


and then run it... you won't need any HTML tags to get that to show up... if
you see "test" in IE then you know its working and the problem is your ASP
code

If it doesn't show up, then maybe you didn't install all of IIS?

To make sure IIS is going to run ASP...

Go into the IIS console again and find your directory/folder in there

Right click and select PROPERTIES

on the first tab (directory) make sure down at the bottom for "Execute
Permissions" you have it set to "Scripts only". If its set to "None" then
that would be whats wrong
 
B

Beauregard T. Shagnasty

Quoth the raven named snip:
I have Visual Studio.net 2003, is InterDev within that.? or an extra
expense.?

I retired, and stopped buying it at VS 6. <g> But I do believe VI has
been dropped. I was also not pleased when MS dropped FoxPro from the
suite.
 

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

Members online

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top