Enabling ASP-running webserver on a local machine

K

K Viltersten

I have problems enabling my machine to
work locally as a webserver. I wish to
test some ASP.NET code but this far i
must be missing something because i've
got no response as requested.

Could a kind soul point me to a
tutorial or a walkthru on how to
configure Vista Business (VS.NET 2008
Express installed with DotNet 3.5) to
give the correct response when called
with
http://localhost/that_file.asp
 
J

John Devlon

Hi Konrad,

I just went trough the same problem ... I was running IIS on Windows XP and
the aspx files didn't run as they should...
When looking at the configuration I noticed that the aspx-files were not
enabled...

my solution:
from the command promt run ....
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
and it solved the problem ....

Maybee you will have to do the same for your problem...
I'm not sure this will work for the 3.5 framework but maybee google knows
:)

John
 
K

K Viltersten

I just went trough the same problem ... I
was running IIS on Windows XP and the aspx
files didn't run as they should...
When looking at the configuration I
noticed that the aspx-files were not enabled...

my solution:
from the command promt run ....
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

Just to be sure - you request a file by
entering into url-line the following:

http://localhost/testme.aspx

and the file testme.aspx is located on
your drive at what location?
 
G

Guest

I have problems enabling my machine to
work locally as a webserver. I wish to
test some ASP.NET code but this far i
must be missing something because i've
got no response as requested.

Could a kind soul point me to a
tutorial or a walkthru on how to
configure Vista Business (VS.NET 2008
Express installed with DotNet 3.5) to
give the correct response when called
withhttp://localhost/that_file.asp

Installing IIS 7.0 on Windows Vista Business or Vista Ultimate
http://technet2.microsoft.com/windo...e993-42a2-bf93-275375d662631033.mspx?mfr=true
 
H

Hans Kesting

K Viltersten submitted this idea :
I have problems enabling my machine to work locally as a webserver. I wish to
test some ASP.NET code but this far i
must be missing something because i've
got no response as requested.

Could a kind soul point me to a tutorial or a walkthru on how to configure
Vista Business (VS.NET 2008 Express installed with DotNet 3.5) to
give the correct response when called
with http://localhost/that_file.asp

Is that a typo, or did you really mean to call an "asp" (old ASP) file
instead of an aspx?

IIRC you need to enable "asp" explicitly in IIS. I don't have Viste
myself, so I can't check.

Hans Kesting
 
J

Juan T. Llibre

re:
!> I assumed that both "asp" and "aspx" worked equally fine, with the only
!> difference that the user can "see" what kind of ASP it is. Is that incorrect?

With the caveat that each must be specifically authorized, no, it's not incorrect.

re:
!> 1. Is http://localhost/that_file.aspx the correct syntax to request the local file?

Only if you're using IIS to request that_file.aspx and the file is located in the root directory
( usually drive:\inetpub\wwwroot\ )

re:
!> 2. Where exactly will the file be stored in the ..\Visual Studio 2008\ directory structure when i build a project?

If it's a File System project :

drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\ProjectName

If it's an IIS-based app, wherever in the IIS directory structure you created it.
 
K

K Viltersten

I have problems enabling my machine to
Is that a typo, or did you really mean to
call an "asp" (old ASP) file instead of
an aspx?

No typo. I assumed that both "asp" and
"aspx" worked equally fine, with the only
difference that the user can "see" what
kind of ASP it is. Is that incorrect?
IIRC you need to enable "asp" explicitly
in IIS. I don't have Viste myself, so I
can't check.

I think that regardless of WinXP or Vista
you still can help me with these two
questions (so you'll be useful anyway). :)

1. Is http://localhost/that_file.aspx the
correct syntax to request the local file?

2. Where exactly will the file be stored
in the ..\Visual Studio 2008\ directory
structure when i build a project?

Thanks!
 
K

K Viltersten

2. Where exactly will the file be stored in the
..\Visual Studio 2008\ directory structure when
i build a project?

If it's a File System project :

drive:\Documents and Settings\Administrator\
My Documents\Visual Studio 2008\Projects\
ProjectName

The files are there but the ASP-magic doesn't
happen to my files as i click on them. i've
been instructed to REQUEST them instead.

Can i request a file from the folder you
mention above somehow? I've tried to set it as
a website using IIS-manager but got only
errors, as was the case for any directory not
in the wwwroot-folder.
If it's an IIS-based app, wherever in the IIS
directory structure you created it.

Does it need to be an IIS-project if i wish to
request my files, making the <% =getStuff %>
convert to some stuff?

The issue with the wwwroot-folder is that i
can't edit the file iisstart.htm, allthough
i'm logged on as an administrator...
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top