Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Access http://localhost

Status
Not open for further replies.

Melagan

MIS
Nov 24, 2004
443
US
Greetings,

My company has asked me to begin learning ASP.NET; as such, I am currently a total noob; I only come from a light HTML, VBA, and JetSQL background.

I have installed all of the necessary components to begin my studies (IIS, .NET Framework 2.0, ASP.NET SDK). I created a very basic .aspx page and put it into C:\inetpub\
When trying to access this page through a browser via I get a prompt for authentication. When entering my domain name and password (Active Directory), it does not authenticate. I am an admin on my local machine. All of the permissions on the C:\inetpub folder (and all subfolders) are set for full access to power users.

Here is the .aspx page:
Code:
	<%@ Page Language="VB" %>

	<script runat="server">
		sub Page_Load(obj as Object, e as eventargs)
			lblMessage.Text = "Welcome to ASP.NET!"
		end sub
	</script>

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

I expect to see only this in my browser:

Welcome to ASP.NET!

Any ideas?

~Melagan
______
"It's never too late to become what you might have been.
 
I'm not sure that it will solve your problem buy have you configured a virtual directory for your site in IIS?
 
I just configured a virtual folder and was unable to see my .aspx page there as well.

~Melagan
______
"It's never too late to become what you might have been.
 
Do you get the same error? Is the site (virtual directory) configured to run under ASP.NET 2.0 (you can tell if it is through the properties->ASP.NET tab of the virtual directory?
 
Yes it is. Of note: it is just the .aspx pages that will not load. If I try to call up a standard .htm page, it works just fine.

In the virtual directory, the error is not the same. It doesn't prompt for authentication. However, the source error on the page reads:

[No relevant source lines]

~Melagan
______
"It's never too late to become what you might have been.
 
Is the machine you are using Windows 2003 server? If so, you need to authorize ASP.NET 2.0 in IIS on your server. In the IIS console, go to Web Service Extensions, and see which types of apps are allowed and prohibited.

If your development server is on XP, then I am not sure...

Jason
 
one more thing, check your <authorization> tag in web.config. does it have windows authentication enabled???

Known is handfull, Unknown is worldfull
 
Thank you all for the replies!

I am confirming that I'm using ASP.NET 2.0.

Under directory security, anon. access is permitted and integrated windows authentication is checked.

I did the exact same setup method on my xp pro machine at home and it works fine. My dev. environment here at work is xp pro as well, but this machine is on an active directory network in which my account is not an admin - I am an admin on the local machine, though.

~Melagan
______
"It's never too late to become what you might have been.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top