| Author |
Local ASP and SHTML problem since installing SP2
|
|
| Mad Dog 2004-08-27, 7:14 am |
| Hey Wizards--
All of a sudden tonight if I open an .asp or .shtml page on my local
computer it opens Dreamweaver instead of processing it. I haven't had to do
this in a while, so I may be shooting in the dark when I say it started when
I installed SP2 yesterday. It could have happened a while ago and I didn't
notice.
So.....any hints how to get it so IIS processes those files again?
Thanks!
Mad Dog
| |
| BradMcA 2004-08-27, 8:56 am |
| Reinstall IIS, and .net framework if you are using that.
..asp extension should be pointing at asp.dll | |
| Dooza 2004-08-27, 12:15 pm |
| "Mad Dog" <md@mdp.com> wrote in message
news:cgmnsb$lsn$1@forums.macromedia.com...
> Hey Wizards--
>
> All of a sudden tonight if I open an .asp or .shtml page on my local
> computer it opens Dreamweaver instead of processing it. I haven't had to
do
> this in a while, so I may be shooting in the dark when I say it started
when
> I installed SP2 yesterday. It could have happened a while ago and I didn't
> notice.
>
> So.....any hints how to get it so IIS processes those files again?
To view an ASP page or SHTML you need to access the page using your browser.
If you just double click it, the default application associated with editing
that page is used, ie. Dreamweaver. I would suggest opening your browser,
and entering the address to where the page is located. Try this:
http://localhost/yourpage.asp or maybe http://yourcomputername/yourpage.asp
I hope this helps a little.
Steve
| |
| Mad Dog 2004-08-27, 7:15 pm |
| Maybe I'm completely zoning, but something's not acting right here. I
suspect some permissions or mapping was changed with the SP2 installation
and I'm not familiar enough with it to remember what the heck I had to do to
get IIS working right for all directories in the first place. I do remember
there was no one comprehensive place with instructions.
How do I make sure that a directory that's not within INETPUB is mapped to
IIS?
(If that's the right term)
Thanks,
MD
Dooza wrote:
> "Mad Dog" <md@mdp.com> wrote in message
> news:cgmnsb$lsn$1@forums.macromedia.com...
>
> To view an ASP page or SHTML you need to access the page using your
> browser. If you just double click it, the default application
> associated with editing that page is used, ie. Dreamweaver. I would
> suggest opening your browser, and entering the address to where the
> page is located. Try this: http://localhost/yourpage.asp or maybe
> http://yourcomputername/yourpage.asp
>
> I hope this helps a little.
>
> Steve
| |
| Durwood Edwards 2004-08-27, 7:15 pm |
| Create a virtual directory in IIS, perhaps?
D
"Mad Dog" <md@mdp.com> wrote in message
news:cgnp07$22u$1@forums.macromedia.com...
> Maybe I'm completely zoning, but something's not acting right here. I
> suspect some permissions or mapping was changed with the SP2 installation
> and I'm not familiar enough with it to remember what the heck I had to do
to
> get IIS working right for all directories in the first place. I do
remember
> there was no one comprehensive place with instructions.
>
> How do I make sure that a directory that's not within INETPUB is mapped to
> IIS?
>
> (If that's the right term)
>
> Thanks,
> MD
>
>
>
> Dooza wrote:
>
>
| |
| Kindler Chase 2004-08-27, 7:15 pm |
| Mad Dog wrote:
> Maybe I'm completely zoning, but something's not acting right here. I
> suspect some permissions or mapping was changed with the SP2
> installation and I'm not familiar enough with it to remember what the
> heck I had to do to get IIS working right for all directories in the
> first place. I do remember there was no one comprehensive place with
> instructions.
>
> How do I make sure that a directory that's not within INETPUB is
> mapped to IIS?
>
> (If that's the right term)
Dooza is correct. If you just click on an asp file, it will open in your
default editor.
To map a virtual directory:
1. open IIS
2. right-click the default website
3. new > virtual directory
4. follow the wizard.
When you're done, you can view the virtual directory in your browser.
http://localhost = the default home directory. You can find this by:
1. open IIS
2. right-click the default website
3. properties
4. click the home tab - you can now see what your default directory is.
You can change the default to whatever you want. It does not need to be in
the Inetpub; you can use any directory you want.
http://localhost/YourVirtualDirectory/ = the virtual directory you made
above.
You can create as many virtual directories as you want.
To browse to your asp page:
http://localhost/YourVirtualDirectory/yourPage.asp
Of course, all of the above assumes you actually have IIS running :)
--
kindler chase
http://www.ncubed.com
Home of SuperInvoice's Groove Thang
news://news.ncubed.com/support
n3 Support Group
| |
| Mad Dog 2004-08-27, 7:15 pm |
| Thanks. I was zoning out but only part way. For some weird reason I lost a
virtual directory, and I do this so infrequently that I forgot how I did it
the first time.
Is there a way to use your broswser to browse to localhost directories?
Thanks
Kindler Chase wrote:
> Mad Dog wrote:
>
> Dooza is correct. If you just click on an asp file, it will open in
> your default editor.
>
> To map a virtual directory:
> 1. open IIS
> 2. right-click the default website
> 3. new > virtual directory
> 4. follow the wizard.
>
> When you're done, you can view the virtual directory in your browser.
>
> http://localhost = the default home directory. You can find this by:
> 1. open IIS
> 2. right-click the default website
> 3. properties
> 4. click the home tab - you can now see what your default directory
> is. You can change the default to whatever you want. It does not need
> to be in the Inetpub; you can use any directory you want.
>
> http://localhost/YourVirtualDirectory/ = the virtual directory you
> made above.
> You can create as many virtual directories as you want.
>
> To browse to your asp page:
> http://localhost/YourVirtualDirectory/yourPage.asp
>
> Of course, all of the above assumes you actually have IIS running :)
| |
| Kindler Chase 2004-08-27, 7:15 pm |
| Mad Dog wrote:
> Thanks. I was zoning out but only part way. For some weird reason I
> lost a virtual directory, and I do this so infrequently that I forgot
> how I did it the first time.
>
> Is there a way to use your broswser to browse to localhost
> directories?
You mean to list all virtual directories in your browser? Or to enable
directory browsing w/in your browser? or something all together different?
--
kindler chase
http://www.ncubed.com
Home of SuperInvoice's Fortress of BeanCounters
news://news.ncubed.com/support
n3 Support Group
| |
| Mad Dog 2004-08-27, 7:15 pm |
| Kindler Chase wrote:
>
> You mean to list all virtual directories in your browser? Or to enable
> directory browsing w/in your browser? or something all together
> different?
I guess listing the virtual directories might work. I'm thinking more of a
way to actually browse to a directory or file from within the browser (or
Windows Explorer?) so you can open it from within IIS. Say you in your
browser (or WE) you can use FILE/ OPEN to find a directory or file and open
it. It would be nice to be able to "browse" localhost the same way.
Can you?
MD
| |
| Kindler Chase 2004-08-27, 7:15 pm |
| Mad Dog wrote:
> Kindler Chase wrote:
>
> I guess listing the virtual directories might work. I'm thinking more
> of a way to actually browse to a directory or file from within the
> browser (or Windows Explorer?) so you can open it from within IIS.
> Say you in your browser (or WE) you can use FILE/ OPEN to find a
> directory or file and open it. It would be nice to be able to
> "browse" localhost the same way.
>
> Can you?
Yep.
1. open up the IIS module.
2. right-click default website
3. properties
4. home tab > check directory browsing.
May need to do similar to each virtual directory as well.
--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.
news://news.ncubed.com/support
n3 Support Group
| |
| Kindler Chase 2004-08-27, 7:15 pm |
| Mad Dog wrote:
> Semi-beautiful, Kindler! It's not pretty, but it does what I want.
> The only thing I really need to do is make a new "start page" for
> localhost so I can just type http://localhost and get an ugly
> directory listing. Do you know of any downside to this? It's only on
> my computer, I'm the only one who uses it, and I wouldn't think
> anyone from outside could get through my firewall etc to gain access.
My localhost changes depending on the site I'm working on. There's nothing
wrong with that at all (afaik). Just change it to whatever default directory
you want in the home directory tab. :)
--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.
news://news.ncubed.com/support
n3 Support Group
| |
| Mad Dog 2004-08-27, 7:15 pm |
| Semi-beautiful, Kindler! It's not pretty, but it does what I want. The only
thing I really need to do is make a new "start page" for localhost so I can
just type http://localhost and get an ugly directory listing. Do you know of
any downside to this? It's only on my computer, I'm the only one who uses
it, and I wouldn't think anyone from outside could get through my firewall
etc to gain access.
THANKS!
MD
Kindler Chase wrote:
> Mad Dog wrote:
>
> Yep.
> 1. open up the IIS module.
> 2. right-click default website
> 3. properties
> 4. home tab > check directory browsing.
>
> May need to do similar to each virtual directory as well.
| |
| Durwood Edwards 2004-08-27, 7:15 pm |
| Try this little brutal ASP. You can make it as pretty as you want.
Durwood
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<%
Dim strPathInfo, strPhysicalPath
strPathInfo = Request.ServerVariables("SCRIPT_NAME")
strPhysicalPath = Server.MapPath(strPathInfo)
Dim objFSO, objFile, objFileItem, objFolder, objFolderContents
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPhysicalPath)
Set objFolder = objFile.ParentFolder
Set objFolderContents = objFolder.Files
%>
<h1>A Directory Listing<br>
<%= FormatDateTime(Date(), vbLongDate) %></h1>
<hr>
<table CELLPADDING=6 >
<%
For Each objFileItem In objFolderContents
Response.Write "<TR><TD align=left>" %>
<%
Response.Write " <a href = """
& objFileItem.Name & """>" & Replace(objFileItem.Name,".wpd","")& "</a>"
&"</td><td> " &
objFileItem.DateCreated
Response.Write "</TD></TR>"
Next
%>
</table>
</body>
</html>
"Mad Dog" <md@mdp.com> wrote in message
news:cgntu3$7ds$1@forums.macromedia.com...
> Kindler Chase wrote:
>
> I guess listing the virtual directories might work. I'm thinking more of a
> way to actually browse to a directory or file from within the browser (or
> Windows Explorer?) so you can open it from within IIS. Say you in your
> browser (or WE) you can use FILE/ OPEN to find a directory or file and
open
> it. It would be nice to be able to "browse" localhost the same way.
>
> Can you?
>
> MD
>
>
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |