473,386 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Having trouble with step 1


Hi,

I'm a newbie starting up with ASP.NET,
and I'm getting off to a wonderful start
- and when I tell you "wonderful" I'm being sarcastic.

My OS is Win 2000 SP4.

I've gotten IIS installed, along with the .NET framework.

I have the .NET Framework 1.1 configuration tool in Administrative tools,
along with the Wizards. I have opened the configuration tool,
but I have no idea as to what I'm looking at.

My code is about as simple as it can get:
===============================================
<%@ Page Language="C#" %>

<script runat="server">
void page_load(object obj, EventArgs e)
{ lblMessage.Text = "Hello World";
}
</script>

<html><body>
<asp:Label id="lblMessage" runat="server"/>
</body></html>
===============================================

... right from the book.

I put the file into my webroot directory:
C:\Inetpub\wwwroot\

... and this URL into the IE6 address bar:
http://localhost/HelloWorld01.aspx

When I hit "GO" I get the following error message:
===============================================
Error
................................................

A Runtime Error has occurred.
Do you wish to debug?

Line: 3
Error: Expected ')'

Yes No

===============================================

When I click on "YES" nothing happens.

When I plug that same URL into FireFox I get a prompt
for a user name and password:
===============================================
Prompt
................................................

Enter username and password for '"' at http://localhost

User Name:
[ EDIT BOX ]

Password:
[ EDIT BOX ]
Use Password Manager to remember this password.
OK Cancel

===============================================

I cleaned out the caches for each browser ...

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\
(for IE6)

... and it still doesn't work.
So this is going just "wonderfully". :-(
Does anyone have any idea as to why I'm getting
the missing close parenthesis error message
(when there *IS* a close parenthesis).

... and why is FireFox prompting me for a password?

Thanks In Advance!

- wASP
Nov 17 '05 #1
4 1220
1. Open a command prompt
2. Type cd %WINDIR%\Microsoft.NET\Framework\v1.1.4322
for 1.1 Framework (assume you are using the latest)
3. Type aspnet_regiis /i

That should register ASP.NET with your IIS server.

4. Try your page again.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"wASP" wrote:

Hi,

I'm a newbie starting up with ASP.NET,
and I'm getting off to a wonderful start
- and when I tell you "wonderful" I'm being sarcastic.

My OS is Win 2000 SP4.

I've gotten IIS installed, along with the .NET framework.

I have the .NET Framework 1.1 configuration tool in Administrative tools,
along with the Wizards. I have opened the configuration tool,
but I have no idea as to what I'm looking at.

My code is about as simple as it can get:
===============================================
<%@ Page Language="C#" %>

<script runat="server">
void page_load(object obj, EventArgs e)
{ lblMessage.Text = "Hello World";
}
</script>

<html><body>
<asp:Label id="lblMessage" runat="server"/>
</body></html>
===============================================

... right from the book.

I put the file into my webroot directory:
C:\Inetpub\wwwroot\

... and this URL into the IE6 address bar:
http://localhost/HelloWorld01.aspx

When I hit "GO" I get the following error message:
===============================================
Error
................................................

A Runtime Error has occurred.
Do you wish to debug?

Line: 3
Error: Expected ')'

Yes No

===============================================

When I click on "YES" nothing happens.

When I plug that same URL into FireFox I get a prompt
for a user name and password:
===============================================
Prompt
................................................

Enter username and password for '"' at http://localhost

User Name:
[ EDIT BOX ]

Password:
[ EDIT BOX ]
Use Password Manager to remember this password.
OK Cancel

===============================================

I cleaned out the caches for each browser ...

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\
(for IE6)

... and it still doesn't work.
So this is going just "wonderfully". :-(
Does anyone have any idea as to why I'm getting
the missing close parenthesis error message
(when there *IS* a close parenthesis).

... and why is FireFox prompting me for a password?

Thanks In Advance!

- wASP

Nov 17 '05 #2
On Fri, 8 Jul 2005 10:40:02 -0700, "Cowboy (Gregory A. Beamer) - MVP"
<No************@comcast.netNoSpamM> wrote:
1. Open a command prompt
2. Type cd %WINDIR%\Microsoft.NET\Framework\v1.1.4322
for 1.1 Framework (assume you are using the latest)
3. Type aspnet_regiis /i

That should register ASP.NET with your IIS server.

4. Try your page again.

Hi Gregory,

Thank you so much for the help - it got me to my next problem.

Apparently, I have a security issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, all of the "Allow" boxes are checked - BUT they are greyed out.

Now that I look further, the same thing is the case for every folder
in the root that I examined. What follows is the error message:

================================================== =================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application
directory 'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.
Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

================================================== =================
... and I still have the question as to why is FireFox prompting me for a password?
Thanks In Advance!

- wASP
Nov 17 '05 #3

Hi again,

If anyone is interested, this problem has been solved.

Thanks,

wASP
======================
On Fri, 08 Jul 2005 13:57:57 -0500, wASP <wylbur[at]ev1[dot]net> wrote:
On Fri, 8 Jul 2005 10:40:02 -0700, "Cowboy (Gregory A. Beamer) - MVP"
<No************@comcast.netNoSpamM> wrote:
1. Open a command prompt
2. Type cd %WINDIR%\Microsoft.NET\Framework\v1.1.4322
for 1.1 Framework (assume you are using the latest)
3. Type aspnet_regiis /i

That should register ASP.NET with your IIS server.

4. Try your page again.

Hi Gregory,

Thank you so much for the help - it got me to my next problem.

Apparently, I have a security issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, all of the "Allow" boxes are checked - BUT they are greyed out.

Now that I look further, the same thing is the case for every folder
in the root that I examined. What follows is the error message:

================================================= ==================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application
directory 'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.
Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

================================================= ==================
... and I still have the question as to why is FireFox prompting me for a password?
Thanks In Advance!

- wASP


- wASP
Nov 17 '05 #4
what was the solution? i am having these problems...

if i disable authenication in IIS then i can no longer debug in IIS..
but it gets round the firefox problem..

wASP wrote:
Hi again,

If anyone is interested, this problem has been solved.

Thanks,

wASP
======================
On Fri, 08 Jul 2005 13:57:57 -0500, wASP <wylbur[at]ev1[dot]net> wrote:
On Fri, 8 Jul 2005 10:40:02 -0700, "Cowboy (Gregory A. Beamer) - MVP"
<No************@comcast.netNoSpamM> wrote:
1. Open a command prompt
2. Type cd %WINDIR%\Microsoft.NET\Framework\v1.1.4322
for 1.1 Framework (assume you are using the latest)
3. Type aspnet_regiis /i

That should register ASP.NET with your IIS server.

4. Try your page again.

Hi Gregory,

Thank you so much for the help - it got me to my next problem.

Apparently, I have a security issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, all of the "Allow" boxes are checked - BUT they are greyed out.

Now that I look further, the same thing is the case for every folder
in the root that I examined. What follows is the error message:

================================================= ==================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application
directory 'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.
Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

================================================= ==================
... and I still have the question as to why is FireFox prompting me for a password?
Thanks In Advance!

- wASP


- wASP


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
3
by: Charles Krug | last post by:
List: I'm trying to use the example files from Programming Python, 2nd Ed. I've copied them into c:\Python24\Examples\PP2E. Launching any of the examples programs by themselves seems to work...
6
by: Jeremy Cowles | last post by:
Hi all, Disclaimer: This app is actually written in a different language, but I have much respect for this group & wanted to get your input so please ignore any minor syntactical errors. I...
13
by: python | last post by:
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that...
9
by: Christian Blackburn | last post by:
Hi Gang, I don't know what to make of all of this, but I'm having nothing, but trouble copying data to the clipboard which should be the easiest thing in the world. The only systems I can get...
5
by: Nicolay A. Vasiliev | last post by:
Hello there! I got some trouble trying to insert data into the database with MySQLdb module. I have such code: from MySQLdb import * def loc_connect_db():
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
24
by: GesterX | last post by:
First of all I'm new to this site but it certainly looks like a place that i will be visiting more often! Onto my problem. I am creating a Hotel Bussiness project in java using BlueJ The...
0
by: MLH | last post by:
Am looking through this NG for working example VBA code to pretty much do what the HyperlinkProperty setting should do. Anybody that can show me how to roll my own, feel free to step in. Thx.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.