Having trouble with step 1

G

Guest

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!
***************************
 
W

wASP

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
 
W

wASP

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.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +983
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest 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
 
W

wASP

Hi again,

If anyone is interested, this problem has been solved.

Thanks,

wASP
======================


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.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +983
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest 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
 
W

Winshent

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..
Hi again,

If anyone is interested, this problem has been solved.

Thanks,

wASP
======================


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.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +983
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top