Click to See Complete Forum and Search --> : stuck with ISS / windows and viewing files through localhost in IE
right,
I've got IIS installed and local hosts running on my own machine
I've set up an alias for a directory and set it to run ASP scripts and cgi scripts, but when i browse the directort through internet explorer and click on the file, instead of opening as a web file, it asks me if i want to save it or open it, if you click open, it opens it my default editor for asp files (dreamweaver).
anyone got any suggestions?
Enter http://localhost/ on the address bar, or configure Dreamweaver to run the files through the server.
I run Apache and HTML-Kit, but the principal should be the same.
chris9902
01-05-2004, 09:05 AM
it could be becuase of the file extension, i had the same proplem with .xhtml files
its an aspx file I'm trying to view,
I've been told to setup a server on my machine, but normally I just run things on the server
I moved the file up a directory into wwwroot and it now views it as a txt file instead though IE :confused:
I've been typing in localhost in my browser, the usual mistake I make is to browse through my computer and look at it that way
chris9902
01-05-2004, 09:21 AM
do you need to turn you localhost on
I don't mean to sound like an idiot, but hows that done?
I was under the impression it turns itself on automatically when i reset my machine after insallation?
chris9902
01-05-2004, 09:34 AM
lol, you got me there.
i use Apache, php and MySql but i do have XP pro so i will find out for you
chris9902
01-05-2004, 09:37 AM
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/gs_iissnapin.asp
thanks :)
I'm bound to have done something painstakingly obvious.
I changed the file to .asp moved it into wwwroot so when i go to localhost host I can try to access it from there, but then I get:
The page cannot be displayed
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Click the Refresh button, or try again later.
Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Active Server Pages, ASP 0221 (0x80004005)
The specified 'Register TagPrefix="cc1" Namespace="SilkWebware.Marquee" Assembly="SilkWebware.Marquee" ' option is unknown or invalid.
/About.asp, line 1
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Page:
GET /About.asp
Time:
Monday, January 05, 2004, 3:34:08 PM
More information:
Microsoft Support
I've checked and IIS says my "default web site" is running
also we have no proxy server so I can't see what the problem is ???
v confused :confused: :confused:
chris9902
01-05-2004, 09:48 AM
can you post the .asp code, the prop is on line 1 from what i can see
<%@ Register TagPrefix="cc1" Namespace="SilkWebware.Marquee" Assembly="SilkWebware.Marquee" %>
<%@ Register TagPrefix="uc1" TagName="Mailers" Src="Mailers.ascx" %>
<%@ Page language="c#" Codebehind="About.aspx.cs" AutoEventWireup="false" Inherits="Studio.About" ErrorPage="error.htm" Culture="en-GB"%>
<%@ Register TagPrefix="uc1" TagName="ScrollingNews" Src="ScrollingNews.ascx" %>
<%@ Register TagPrefix="uc1" TagName="navigation" Src="navigation.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML xmlns:o xmlns:st1>
<HEAD>
<title>STUDIO ... About</title>
<link href="studio.css" rel="stylesheet" type="text/css">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<BODY bgColor="#ffffff" MS_POSITIONING="GridLayout">
<form id="Gallery" method="post" runat="server">
chris9902
01-05-2004, 09:54 AM
i am not sure, sorry.
try this tool from Microsoft, it is really good for ASP and ASP.NET.
it will check your code better then Dreamweaver etc etc
http://www.asp.net/webmatrix/default.aspx?tabIndex=4&tabId=46
Also you could properly config it to your IIS to set up a local site
plus the tool is FREE.... :)
i've been following the instuctions from wroxs beggining asp.net book, and it said to "test out iis" b4 installing asp.net
i think it may have led to me getting confused I'm now going to try and install asp.net to see if that helps
its just failed installation, so i'm going to reset and try again.
thanks for the help chris
chris9902
01-05-2004, 10:09 AM
i did'nt really do much,
try: http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/gs_iissnapin.asp
and can i ask... what OS are you running
its XP
I closed all other programs and the .net installation was succesful I can now open the pages in asp but I am gettin errors (its not my page :rolleyes: )
you may not have done much but it helped me think,
cheers ;D
chris9902
01-05-2004, 10:24 AM
is it XP pro or XP home
the help guide says XP pro help, so i'm guessing its pro.
the pages run now but I'm still having probs which I'll post in the ASP forum, because I'm not that familiar with ASP myself.