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 / .NET Framework / Setup / August 2005

Tip: Looking for answers? Try searching our database.

Why am I getting a prompt for a network login?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wASP - 10 Jul 2005 20:17 GMT
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 - and I'm using IE6.

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

When I try to load a page in my webroot, I get a prompt
for a network login:
======================================================
Enter Network Password
------------------------------------------------------

Site:       localhost
User name:  [   EDIT BOX   ]
Password:   [   EDIT BOX   ]
Domain:     [   EDIT BOX   ]

[] Save this password in your password list.

                        OK      cancel

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

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

I've also registered ASP.NET with my IIS server,
as instructed by Gregory:
***************************
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.

Signature

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

I was having a problem with access permissions after doing that,
and I found the following MS KB article:
http://support.microsoft.com/kb/316721

I did the following, as instructed by the article:


RESOLUTION
To add read, execute, and list access for the ASPNET account
on the root Web site or on any virtual directory, follow these steps:
1.    In Windows Explorer, browse to the folder that contains
       the root Web site (which is C:\Inetpub\Wwwroot by default)
       or the virtual directory.

2.    Right-click the folder, and then click Properties.

3.    On the Security tab, click Add.

4.    Type ComputerName\ASPNET (for example, on a computer named Webdev,
       type Webdev\ASPNET), and then click OK.

5.    Allow the following permissions for the ASPNET account:
•    Read & Execute
•    List Folder Contents
•    Read

6.    Click OK to close the Properties dialog box and to save the changes.

NOTE: You do not need to perform these steps if the Everyone group or the
Users group has read access to the root Web site or virtual directory.

I've also given the same permissions to the "Internet Guest Account (IUSR_BOFFO-1A)"
- I still have the same problem.

What happens now, when I load the address in the address bar of IE6
(http://localhost/HelloWorld01.aspx), then click on GO,
I get that box prompting me for a username, password, and domain.

Apparently, I have a permissions issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, for my "Internet Guest Account," the "Allow" boxes
for [read & execute], [list folder contents], and [Read] are checked
- BUT they are greyed out - I cannot clear them - and nothing else
is checked.

This is true for the "ASP.NET Machine Account (BOFFO-1A\ASPNET)",
as well as for the "Internet Guest Account (IUSR_BOFFO-1A)"

Now that I look further, the same thing is the case for every folder
in the root that I examined.

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.

I cleaned out the cache for the 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 that stupid network login prompt?
... or what it wants in the way of a username/password/domain?

Thanks In Advance!

- wASP
wASP - 10 Jul 2005 21:07 GMT
Hi again,

If anyone is interested, this problem has been solved.

Thanks,

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

>Hi,
>
[quoted text clipped - 57 lines]
>
>4. Try your page again.

- wASP
NET_MAN - 18 Jul 2005 20:31 GMT
Hi
How did you solve this issue?
lonewolfbeta - 08 Aug 2005 17:52 GMT
Hi,

I am facing a similar problem
Can you please post the solution

Lonewol

-
lonewolfbet

betabeta - 31 Aug 2005 16:49 GMT
Can you guys tell me how to solve this issue?

Thaks in advance.

--
betabeta


Rate this thread:







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.