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 / May 2008

Tip: Looking for answers? Try searching our database.

Page not found when running ASP.Net web application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HvLa - 22 May 2008 13:12 GMT
I've just installed Visual Web developer 2008 and tried to run my first
ASP.net web site. When I run it on my Vista Business PC I got an error
"Page can not be displayed". What should I check to get an ASP.Net
application running. I'm familiar with classic ASP programming not with
ASP.Net. Classic ASP applications are running fine on the same PC.

Signature

Kind regards,
Hans

Juan T. Llibre - 22 May 2008 14:38 GMT
First thing to check for is whether the account ASP.NET
is running as has ACL permissions to the application directory.

In Vista, ASP.NET on IIS runs, by default, as the Network Authority account.

Make sure that account has at least read permissions to the app dir.

If you need to write to the directory, or update an Access database,
add write permissions to the appropiate directories, too.

If you're using VWD's Development Server,
it will run as the MachineName\Administrator account.

Make sure *that* account has access permissions.

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've just installed Visual Web developer 2008 and tried to run my first
> ASP.net web site. When I run it on my Vista Business PC I got an error
> "Page can not be displayed". What should I check to get an ASP.Net
> application running. I'm familiar with classic ASP programming not with
> ASP.Net. Classic ASP applications are running fine on the same PC.
HvLa - 22 May 2008 16:01 GMT
I don't seem to have a ASPNET account! Any ideas how this is possible
and how to correct this.

Signature

Kind regards,
Hans van de Laar

www.datascore.nl

Juan T. Llibre - 22 May 2008 16:10 GMT
re:
!>I don't seem to have a ASPNET account!

Of course you don't. You are running Vista.
ASPNET was the default account in IIS 5.1, in Windows XP.

In Vista, which runs IIS 7.0, the default IIS account is Network Service.
If you are using IIS, that's the account which needs permissions.

Since apparently you're not running IIS, but VWD's Development Server,
ASP.NET will run as the MachineName\Administrator account.

Make sure *that* account has access permissions.

re:
!>Any ideas how this is possible and how to correct this.

There's nothing to correct.
Just give the right account the permissions outlined in my previous post.

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 don't seem to have a ASPNET account! Any ideas how this is possible
> and how to correct this.
HvLa - 22 May 2008 19:04 GMT
How do you give the Network Service the right permissions?

I also noticed that the asp.net websites aren't listed in the IIS
management console, whereas the classic asp web apps do. Shouldn't
these asp.net apps show up also?

Signature

Kind regards,
Hans van de Laar

www.datascore.nl

> re:
> !>I don't seem to have a ASPNET account!
[quoted text clipped - 29 lines]
> >
> > www.datascore.nl
Juan T. Llibre - 22 May 2008 21:03 GMT
re:
!> How do you give the Network Service the right permissions?

You need to open the "Advanced Security Settings" dialog for the directory.
Search Vista's help for "Advanced Security Settings".

There's a good rundown, background info and images here :
http://technet.microsoft.com/en-us/magazine/cc138011.aspx

re:
!> I also noticed that the asp.net websites aren't listed in the IIS
!> management console, whereas the classic asp web apps do

Did you install ASP.NET ?

http://msdn.microsoft.com/en-us/library/aa964620(VS.80).aspx

Did you *enable* ASP.NET ?

http://intersoftpt.wordpress.com/2006/11/25/enabling-aspnet-20-in-vista-rtm/

Scott Guthrie has a very good rundown here :

http://weblogs.asp.net/scottgu/archive/2006/09/19/Tip_2F00_Trick_3A00_-Using-IIS
7-on-Vista-with-VS-2005.aspx


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/
======================================
> How do you give the Network Service the right permissions?
>
[quoted text clipped - 35 lines]
>> >
>> > www.datascore.nl

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.