Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Enabling ASP-running webserver on a local machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
K Viltersten - 21 Apr 2008 19:38 GMT
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 - 21 Apr 2008 19:55 GMT
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

>I have problems enabling my machine to work locally as a webserver. I wish
>to
[quoted text clipped - 13 lines]
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
K Viltersten - 21 Apr 2008 22:02 GMT
> I just went trough the same problem ... I
> was running IIS on Windows XP and the aspx
[quoted text clipped - 5 lines]
> 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
Alexey Smirnov - 21 Apr 2008 22:14 GMT
> I have problems enabling my machine to
> work locally as a webserver. I wish to
[quoted text clipped - 15 lines]
> 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-bf
93-275375d662631033.mspx?mfr=true

Hans Kesting - 22 Apr 2008 12:59 GMT
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
[quoted text clipped - 5 lines]
> 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 - 22 Apr 2008 19:47 GMT
>> I have problems enabling my machine to
>> work locally as a webserver. I wish to
[quoted text clipped - 12 lines]
> 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
Juan T. Llibre - 22 Apr 2008 19:55 GMT
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/
======================================
>>> I have problems enabling my machine to work locally as a webserver. I wish to
>>> test some ASP.NET code but this far i
[quoted text clipped - 31 lines]
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
K Viltersten - 22 Apr 2008 21:50 GMT
> 2. Where exactly will the file be stored in the
> ..\Visual Studio 2008\ directory structure when
[quoted text clipped - 5 lines]
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.