Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ASP on IIS

Status
Not open for further replies.

jambu

Programmer
Nov 20, 2002
185
GB
I have IIS 5.1 running on XP PRO and using IE6 I can load a simple web page from the web root. If I add some basic ASP &quot;<%= Now() %>&quot; to this file and save it then refresh the browser I cannot see the result of the ASP function. I can see changes to the text on the page and using &quot;View|Source&quot; I can see the ASP statements embedded in the html.

btw I am using &quot; to pickup the file via the web server.

Any suggestions as to how I can get ASP working?

thanks in advance.
 
Must be a .asp file

myfile.asp

not

myfile.htm

Good luck
-pete
 
Thanks, after making that change I am now unable to see the page. I get a &quot;page cannot be displayed&quot; error! Your suggestion makes a lot of sense, but something else seems to be wrong.

 
Have you looked an any of the samples or read the documentation that is installed with IIS for ASP development?

I see your using VBScript vs. Javascript. I don't know it well at all so there might be something wrong with <%=Now()%> I can't say.

-pete
 
this is what I get in the browser
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)


Background:
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Well that seems to be the problem, How do I fix it? How do I tell IIS or XP to let me exec programs in that directory?
 
I should mention that I am logged in to an administrative account and have no problems accessing .htm files from the directory.
 
where are the files located?
instead of
try


if you go into IIS and in the default web right click the file you need to test. then click browse (not open) this will tell us if you are actually having settings issues or it is jsut the url you are trying to use.

also, Now will return the time. Although Now() still outputs the same the () are not needed
A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
I am using hhtp://localhost/filename.asp, I dont know why I put localserver in my first post.

The IIS explorer gives me the same 403.1 error when I try and browse the default web site.

I am obviously not familiar with IIS, so I am not sure how to resolve this. It looks like that directory or the server itself is preventing my scripts from executing, how I change that is another matter. I will be reading through the IIS help but would appreciate any suggestions.

Thanks.
 
try these steps

1) Click Start, point to Programs, click Administrative Tools, and then double-click IIS.

2) In the navigation pane, select the Web site you want to configure.

3) Click the Home Directory tab.

4) For Application Settings Permissions, if it is not already set, set the site to Script Only, and then clickOK.

NOTE: If inheritance overrides appears, select all except the root _vti_bin folder, any subweb _vti_bin folders, and any cgi-bin folders if they exist (these folders should have &quot;execute&quot; to work properly), and then click OK.

5) Ensure that the program has been created. To do so, note that if the button to the right of the program appears as remove, then you have the Web set as a program. If it appears as create, click create, and the program will be created.

6) Right-click the Web, point to Tasks (or All Tasks), and then click to check Server Extensions (click No when you are prompted to tighten security) to let it fix any problems.

A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Thats done it. Thanks onpnt and palbano.

My .asp file worked after step 4. I also did step 6 but am not sure what you mean in step 5.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top