Enabling ASP-running webserver on a local machine

Enabling ASP-running webserver on a local machine

am 21.04.2008 20:52:13 von Konrad 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


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

Re: Enabling ASP-running webserver on a local machine

am 21.04.2008 20:55:24 von 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 Viltersten" schreef in bericht
news:674562F2mk8fmU1@mid.individual.net...
>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
>

SV: Enabling ASP-running webserver on a local machine

am 21.04.2008 23:11:55 von Konrad 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?

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

Re: Enabling ASP-running webserver on a local machine

am 21.04.2008 23:14:25 von lexa

On Apr 21, 8:52=A0pm, "K Viltersten" 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 =A0 =A0- 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/1 0aac45e-e993-42a=
2-bf93-275375d662631033.mspx?mfr=3Dtrue

Re: Enabling ASP-running webserver on a local machine

am 22.04.2008 13:59:54 von 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

Re: Enabling ASP-running webserver on a local machine

am 22.04.2008 20:55:19 von nomailreplies

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" wrote in message news:676q2nF2nie2oU1@mid.individual.net...
>>> 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!
>
> --
> Regards
> Konrad Viltersten
> --------------------------------
> sleep - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
>

SV: Enabling ASP-running webserver on a local machine

am 22.04.2008 21:01:06 von Konrad 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
>
> 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!

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

SV: Enabling ASP-running webserver on a local machine

am 22.04.2008 23:01:56 von Konrad 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...

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