Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enabling ASP-running webserver on a local machine

0 views
Skip to first unread message

K Viltersten

unread,
Apr 21, 2008, 2:52:13 PM4/21/08
to
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


--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy

John Devlon

unread,
Apr 21, 2008, 2:55:24 PM4/21/08
to

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 Viltersten" <tm...@viltersten.com> schreef in bericht
news:674562F...@mid.individual.net...

K Viltersten

unread,
Apr 21, 2008, 5:11:55 PM4/21/08
to
> 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?

Alexey Smirnov

unread,
Apr 21, 2008, 5:14:25 PM4/21/08
to
On Apr 21, 8:52 pm, "K Viltersten" <t...@viltersten.com> wrote:
> 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

>
> --
> Regards
> Konrad Viltersten
> --------------------------------
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy

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

Hans Kesting

unread,
Apr 22, 2008, 7:59:54 AM4/22/08
to
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


K Viltersten

unread,
Apr 22, 2008, 3:01:06 PM4/22/08
to
>> 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?

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!

Juan T. Llibre

unread,
Apr 22, 2008, 2:55:19 PM4/22/08
to
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.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"K Viltersten" <tm...@viltersten.com> wrote in message news:676q2nF...@mid.individual.net...

K Viltersten

unread,
Apr 22, 2008, 5:01:56 PM4/22/08
to
> 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...

0 new messages