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!

Having a problem viewing my .ASP pages...

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]

Hello all,

I'm trying to figure out what's wrong with my IIS on a Xp Pro machine.

When I open the browser and view C:\Inetpub\the page displays fine

BUT

When I replace index.html with default.asp
dreamweaver is launched opening the default page.

What should I check on IIS to fix this problem? Thanks in advance.




Got ASP Error(s)? =
 
make sure that you are using the correct URL in the address bar...


http://localserver/phoneBook/index.html

NOT

C:\Inetpub\
one way to check this is to open IIS and right click on your virtual directory and select BROWSE
-----------------------------------------------------------------
"Whether you think that you can, or that you can't, you are usually right."
- Henry Ford (1863-1947)

mikewolf@tst-us.com
 
What do you expect to see? The asp displayed as web page? Then you need to set the url as mwolf00 suggests. If you expect to see an editor, you need to go to Windows Explorer, tools, folder options and set the file type .asp to use your preferred editor.

HTH
 
is phonebook as a virtual directory?
if not here are the steps

How to Create a Virtual Web Folder

To create a virtual Web folder:
In the console tree, right-click the Web site where you want to create the new folder, click New, and then click Virtual directory.


When the Virtual Directory Creation Wizard starts, click Next.


In the Virtual Directory Alias dialog box, type the alias that you want to assign to the folder in the Alias box, and then click Next.


In the Web Site Content Directory dialog box, type the path for the new folder in the Directory box, or click Browse to locate the folder, and then click Next.


In the Access Permissions dialog box, accept the default settings, click Next, and then click Finish.
---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
[tt]Thanks onpnt, but I keep getting this

HTTP 500 - Internal server error
Internet Explorer



Got ASP Error(s)? =
 
sounds like a code problem in the default.asp
turn off freindly HTTP errors to see what the error actually is in detail.
IE internet options
advanced options
uncheck show friendly HTTP error messages ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
ASP only errors out?

Check default website properties to check execute permissions under home directory or directory for individual folders.

I believe "Scripts Only" should work.

HTH

 
it sounds like you don't have you IIS pointed to the right directory (it can't find default.asp).

Make default.asp as simple asp page just to get going. Something like:
<%
response.write &quot;hello world&quot;
%>

so we know no errors are occuring there...
Then make sure that this page is called default.asp and that it is located in the root folder of you site (&quot;phonebook&quot;) -----------------------------------------------------------------
&quot;Whether you think that you can, or that you can't, you are usually right.&quot;
- Henry Ford (1863-1947)

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top