Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: can't get going


Message #1 by "Alex Smotritsky" <alex.smotritsky@v...> on Fri, 27 Dec 2002 11:32:43 -0500
I'm running windows 2000 and i have visual studio.net installed. I
couldn't get an example from a book to work so i installed the
quickstart stuff and that doesn't work, i'm getting page forbidden
errors and in the quickstart pages, like:
http://localhost/quickstart/HowTo/default.aspx, the header displays
properly but the body of the page opens as code in vs.net instead
diplaying in ie. The book example i tried to get working was a datagrid
displaying an access table, i got it to compile but the page displays
nothing.
 
I think there's something wrong with my IIS settings or something like
that, any suggestions would be greatly appreciated.

Message #2 by MSpruill <mspruill@m...> on Fri, 27 Dec 2002 15:13:45 -0500
I had kind of the same problem....

What I had done wrong was IIS was not running when I installed .net. IIS
must be running
or .net will not recognize IIS and function properly. Even it you
uninstall and startup IIS it still won't work. There is a fixit program on
Microsoft's web site to fix this however, I don't have the web page name nor
program name
with me at work. I have it at home and can give it to you on Monday. Once I
ran this fixit program
everything started working....

I'll check back Monday and post that information.

Mitch Spruill




-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Friday, December 27, 2002 11:33
To: aspx_beginners
Subject: [aspx_beginners] can't get going


I'm running windows 2000 and i have visual studio.net installed. I
couldn't get an example from a book to work so i installed the
quickstart stuff and that doesn't work, i'm getting page forbidden
errors and in the quickstart pages, like:
http://localhost/quickstart/HowTo/default.aspx, the header displays
properly but the body of the page opens as code in vs.net instead
diplaying in ie. The book example i tried to get working was a datagrid
displaying an access table, i got it to compile but the page displays
nothing.
 
I think there's something wrong with my IIS settings or something like
that, any suggestions would be greatly appreciated.


Message #3 by "Alex Smotritsky" <alex.smotritsky@v...> on Fri, 27 Dec 2002 15:21:25 -0500
Thanks a lot! I've uninstalled vs.net and the .net framework, I'm about
to install vs.net in a few minutes, your advice comes in very handy
here!


-----Original Message-----
From: MSpruill [mailto:mspruill@m...] 
Sent: Friday, December 27, 2002 3:14 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: can't get going


I had kind of the same problem....

What I had done wrong was IIS was not running when I installed .net. IIS
must be running or .net will not recognize IIS and function properly.
Even it you uninstall and startup IIS it still won't work. There is a
fixit program on Microsoft's web site to fix this however, I don't have
the web page name nor program name with me at work. I have it at home
and can give it to you on Monday. Once I ran this fixit program
everything started working....

I'll check back Monday and post that information.

Mitch Spruill




-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Friday, December 27, 2002 11:33
To: aspx_beginners
Subject: [aspx_beginners] can't get going


I'm running windows 2000 and i have visual studio.net installed. I
couldn't get an example from a book to work so i installed the
quickstart stuff and that doesn't work, i'm getting page forbidden
errors and in the quickstart pages, like:
http://localhost/quickstart/HowTo/default.aspx, the header displays
properly but the body of the page opens as code in vs.net instead
diplaying in ie. The book example i tried to get working was a datagrid
displaying an access table, i got it to compile but the page displays
nothing.
 
I think there's something wrong with my IIS settings or something like
that, any suggestions would be greatly appreciated.




Message #4 by "Jerry Lanphear" <jerrylan@q...> on Fri, 27 Dec 2002 13:27:17 -0700
Alex,

I spent a week and a half working on this issue before getting my ASP.NET to
work.  I will share the knowledge of that week with you here.

1. Is your computer you are running a Primary domain controller? If so,
there are inherent problems with running ASP.NET on a domain controller. It
has to do with the security method of ASP.NET and the default user
"ASPUSER". On a computer which is not the primary domain controller ASP.NET
tacks on the computer name to the account and internally you have
[Domain]/ASPUSER. On a Primary domain controller this is left off causing
problems.  The suggestion is to not run ASP.NET on a PDC.

2. IIS has to be in place BEFORE installing the .NET framework.  This is
mandatory. If you installed the other way around you have to uninstall and
start over.

3. Make sure you try installing .NET Service Pack 2 before you do anthing
else.
This may solve it.  If not, try uninstalling the framework and deleting the
files, reinstalling and SP2.  There is a file called machine.config that
contains security information.  Check out MSDN Knowledge Base Article
Q315158. This is not to say that installing SP2 was without additional
headaches.
The installation for SP2 itself has a bug which demands that the file
"netfx.mis" should be at a certain expected path.  After searching for 2
hours for the way to fix that I happened upon explicit directions on the
microsoft site for extracting and placing the desired file in order to fool
the ill-advised installer program.  This bug apparently exists on every
update program for .NET ever made, so it seems to be some kind of tradition
or inside joke.

Regards,

Jerry Lanphear



----- Original Message -----
From: "Alex Smotritsky" <alex.smotritsky@v...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Friday, December 27, 2002 9:32 AM
Subject: [aspx_beginners] can't get going


> I'm running windows 2000 and i have visual studio.net installed. I
> couldn't get an example from a book to work so i installed the
> quickstart stuff and that doesn't work, i'm getting page forbidden
> errors and in the quickstart pages, like:
> http://localhost/quickstart/HowTo/default.aspx, the header displays
> properly but the body of the page opens as code in vs.net instead
> diplaying in ie. The book example i tried to get working was a datagrid
> displaying an access table, i got it to compile but the page displays
> nothing.
>
> I think there's something wrong with my IIS settings or something like
> that, any suggestions would be greatly appreciated.
>
>
>
>

Message #5 by "Jerry Lanphear" <jerrylan@q...> on Fri, 27 Dec 2002 13:28:36 -0700
Make sure you SP2.

Regards
----- Original Message -----
From: "Alex Smotritsky" <alex.smotritsky@v...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Friday, December 27, 2002 1:21 PM
Subject: [aspx_beginners] RE: can't get going


> Thanks a lot! I've uninstalled vs.net and the .net framework, I'm about
> to install vs.net in a few minutes, your advice comes in very handy
> here!
>
>
> -----Original Message-----
> From: MSpruill [mailto:mspruill@m...]
> Sent: Friday, December 27, 2002 3:14 PM
> To: aspx_beginners
> Subject: [aspx_beginners] RE: can't get going
>
>
> I had kind of the same problem....
>
> What I had done wrong was IIS was not running when I installed .net. IIS
> must be running or .net will not recognize IIS and function properly.
> Even it you uninstall and startup IIS it still won't work. There is a
> fixit program on Microsoft's web site to fix this however, I don't have
> the web page name nor program name with me at work. I have it at home
> and can give it to you on Monday. Once I ran this fixit program
> everything started working....
>
> I'll check back Monday and post that information.
>
> Mitch Spruill
>
>
>
>
> -----Original Message-----
> From: Alex Smotritsky [mailto:alex.smotritsky@v...]
> Sent: Friday, December 27, 2002 11:33
> To: aspx_beginners
> Subject: [aspx_beginners] can't get going
>
>
> I'm running windows 2000 and i have visual studio.net installed. I
> couldn't get an example from a book to work so i installed the
> quickstart stuff and that doesn't work, i'm getting page forbidden
> errors and in the quickstart pages, like:
> http://localhost/quickstart/HowTo/default.aspx, the header displays
> properly but the body of the page opens as code in vs.net instead
> diplaying in ie. The book example i tried to get working was a datagrid
> displaying an access table, i got it to compile but the page displays
> nothing.
>
> I think there's something wrong with my IIS settings or something like
> that, any suggestions would be greatly appreciated.
>
>
>
>
>
>
>

Message #6 by "Alex Smotritsky" <alex.smotritsky@v...> on Fri, 27 Dec 2002 15:35:42 -0500
Thanks a lot Jerry, thanks to you guys I'm confident I'm gonna be in
good shape inside of today.


-----Original Message-----
From: Jerry Lanphear [mailto:jerrylan@q...] 
Sent: Friday, December 27, 2002 3:29 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: can't get going


Make sure you SP2.

Regards
----- Original Message -----
From: "Alex Smotritsky" <alex.smotritsky@v...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Friday, December 27, 2002 1:21 PM
Subject: [aspx_beginners] RE: can't get going


> Thanks a lot! I've uninstalled vs.net and the .net framework, I'm 
> about to install vs.net in a few minutes, your advice comes in very 
> handy here!
>
>
> -----Original Message-----
> From: MSpruill [mailto:mspruill@m...]
> Sent: Friday, December 27, 2002 3:14 PM
> To: aspx_beginners
> Subject: [aspx_beginners] RE: can't get going
>
>
> I had kind of the same problem....
>
> What I had done wrong was IIS was not running when I installed .net. 
> IIS must be running or .net will not recognize IIS and function 
> properly. Even it you uninstall and startup IIS it still won't work. 
> There is a fixit program on Microsoft's web site to fix this however, 
> I don't have the web page name nor program name with me at work. I 
> have it at home and can give it to you on Monday. Once I ran this 
> fixit program everything started working....
>
> I'll check back Monday and post that information.
>
> Mitch Spruill
>
>
>
>
> -----Original Message-----
> From: Alex Smotritsky [mailto:alex.smotritsky@v...]
> Sent: Friday, December 27, 2002 11:33
> To: aspx_beginners
> Subject: [aspx_beginners] can't get going
>
>
> I'm running windows 2000 and i have visual studio.net installed. I 
> couldn't get an example from a book to work so i installed the 
> quickstart stuff and that doesn't work, i'm getting page forbidden 
> errors and in the quickstart pages, like: 
> http://localhost/quickstart/HowTo/default.aspx, the header displays 
> properly but the body of the page opens as code in vs.net instead 
> diplaying in ie. The book example i tried to get working was a 
> datagrid displaying an access table, i got it to compile but the page 
> displays nothing.
>
> I think there's something wrong with my IIS settings or something like

> that, any suggestions would be greatly appreciated.
>
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to 
> unsubscribe send a blank email to 
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to 
> unsubscribe send a blank email to 
>
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to 
> unsubscribe send a blank email to
>
>



Message #7 by MMcdonie@a... on Fri, 27 Dec 2002 23:47:22 EST
There is a fix for the Domain Controller thing. I had that problem and there 
is a fix for it.
I copied this from the Microsoft site on how to fix the problem. It worked 
for me.
Read this:
GETTING AN ERROR WHEN TRYING TO EXECUTE AN .ASPX PAGE IN EXPLORER. SERVER 
UNAVAILABLE.
When you check the event vewer on the server under applications it says that
aspnet_wp.exe could not be launched because the usernam and/or password 
supplied is invalid.

This happens due to a bug in the Microsoft .net software. If you put the IIS 
Server on the same server
as the domain controller it causes an error due to the fact that the ASPNET
account cannot run locally on a domain controller.

To fix this you must first reset the password on the ASPNET account.

Add it to the local server by logging it on. Open Control Panel and go to
Administrative Tools. Grant Log on as batch job to the ASPNET account
in each of these places:
Domain Controller Security Policy
Domain Security Policy
Local Security Policy

Reboot Server to apply changes.

Go to the WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG
menu. Open the Machine.config file in notepad.

Find the processModel section about half way down the code. Change the
Username to "Domain\ASPNET". Change the password to whatever you set the new 
password to.

I know it seems like alot of crap but to run the ASPNET account on a domain 
controller the security settings make this necessary. I did this and mine 
works great now.
Good Luck, Mike

Message #8 by "Alex Smotritsky" <alex.smotritsky@v...> on Sat, 28 Dec 2002 05:53:16 -0500
I'm up and running! Thanks a lot to several people on this list that
gave me some surprisingly thorough advice!

One thing though, I'm having a minor problem when trying to run a
project in debug mode. I get:

Error while trying to run project: Unable to start debugging on the web
server. You do not have permissions to debug the server. Verify that you
are a member of the 'Debugger Users' group on the server. Would you like
to disable future attempts to debug ASP.NET pages for this project?

Yes No Help

I'm running as Administrator, how do I add Administrator to the
'Debugger Users' group?

Thanks a lot guys!


-----Original Message-----
From: MMcdonie@a... [mailto:MMcdonie@a...] 
Sent: Friday, December 27, 2002 11:47 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: can't get going


There is a fix for the Domain Controller thing. I had that problem and
there 
is a fix for it.
I copied this from the Microsoft site on how to fix the problem. It
worked 
for me.
Read this:
GETTING AN ERROR WHEN TRYING TO EXECUTE AN .ASPX PAGE IN EXPLORER.
SERVER 
UNAVAILABLE.
When you check the event vewer on the server under applications it says
that aspnet_wp.exe could not be launched because the usernam and/or
password 
supplied is invalid.

This happens due to a bug in the Microsoft .net software. If you put the
IIS 
Server on the same server
as the domain controller it causes an error due to the fact that the
ASPNET account cannot run locally on a domain controller.

To fix this you must first reset the password on the ASPNET account.

Add it to the local server by logging it on. Open Control Panel and go
to Administrative Tools. Grant Log on as batch job to the ASPNET account
in each of these places: Domain Controller Security Policy Domain
Security Policy Local Security Policy

Reboot Server to apply changes.

Go to the WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG
menu. Open the Machine.config file in notepad.

Find the processModel section about half way down the code. Change the
Username to "Domain\ASPNET". Change the password to whatever you set the
new 
password to.

I know it seems like alot of crap but to run the ASPNET account on a
domain 
controller the security settings make this necessary. I did this and
mine 
works great now.
Good Luck, Mike



Message #9 by "Rohit Arora" <rohit_arora@i...> on Mon, 30 Dec 2002 09:28:33 +0530
Hie Alex,

If u'll hv a look at bug list then this is Bug no.1 for .net. Resolution is
when u r makin a project while specifying its name give like
../../192.144.111.111/myProject rather than ../../localhost/myProject or
make ur security settings for Intranet as Automatic logon for Intranet.

Hope it helps.

Regards
Rohit

-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Saturday, December 28, 2002 4:23 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: can't get going


I'm up and running! Thanks a lot to several people on this list that
gave me some surprisingly thorough advice!

One thing though, I'm having a minor problem when trying to run a
project in debug mode. I get:

Error while trying to run project: Unable to start debugging on the web
server. You do not have permissions to debug the server. Verify that you
are a member of the 'Debugger Users' group on the server. Would you like
to disable future attempts to debug ASP.NET pages for this project?

Yes No Help

I'm running as Administrator, how do I add Administrator to the
'Debugger Users' group?

Thanks a lot guys!


-----Original Message-----
From: MMcdonie@a... [mailto:MMcdonie@a...]
Sent: Friday, December 27, 2002 11:47 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: can't get going


There is a fix for the Domain Controller thing. I had that problem and
there
is a fix for it.
I copied this from the Microsoft site on how to fix the problem. It
worked
for me.
Read this:
GETTING AN ERROR WHEN TRYING TO EXECUTE AN .ASPX PAGE IN EXPLORER.
SERVER
UNAVAILABLE.
When you check the event vewer on the server under applications it says
that aspnet_wp.exe could not be launched because the usernam and/or
password
supplied is invalid.

This happens due to a bug in the Microsoft .net software. If you put the
IIS
Server on the same server
as the domain controller it causes an error due to the fact that the
ASPNET account cannot run locally on a domain controller.

To fix this you must first reset the password on the ASPNET account.

Add it to the local server by logging it on. Open Control Panel and go
to Administrative Tools. Grant Log on as batch job to the ASPNET account
in each of these places: Domain Controller Security Policy Domain
Security Policy Local Security Policy

Reboot Server to apply changes.

Go to the WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG
menu. Open the Machine.config file in notepad.

Find the processModel section about half way down the code. Change the
Username to "Domain\ASPNET". Change the password to whatever you set the
new
password to.

I know it seems like alot of crap but to run the ASPNET account on a
domain
controller the security settings make this necessary. I did this and
mine
works great now.
Good Luck, Mike






  Return to Index