Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
error when run web project
I write the address of my web site in browser as below:
http://localhost/my_vd/test_777/WebApplication1/WebApplication1/Default.aspx

my_vd is aliace of virtual directory . and I don’t publish my project (because I don’t know how can I publish I VS2010 – I don’t know how must I fill box service URL and site/application)
but it ask for username and password . why?
I disabled this option (Menu : tools -> folder option -> view -> use simple file sharing)
Therefore problems be solved
But I received this error :
Source Error:

Line 44:             ASP.NET to identify an incoming user.
Line 45:         -->
Line 46:         <authentication mode="form" />
Line 47:         <!--
Line 48:             The <customErrors> section enables configuration

Source File: C:\my_virtual_directory\test_777\webapplication1\webapplication1\web.config    Line: 46


[edit]Bold replaced with code block - OriginalGriff[/edit]
Posted
Updated 27-Apr-11 20:25pm
v3

1 solution

This is not about file permissions / file sharing on your server, but about what authentication the ASP.NET framework demands when a web client makes an HTTP request to the IIS web server running your ASP.NET site.

See http://msdn.microsoft.com/en-us/library/532aee0e.aspx[^] for details of the authentication modes available.

This is about the <authentication> tage in line 46 of your web.config file (which should be in the <configuration><system.web> section of the web.config).

If you don't want to get the ASP.NET user / password form, you probably want either:

Windows authentication - in which case ASP.NET will use whatever authentication method (if any) is specified in your IIS management console, including allowing anonymous access if appropriate, or
None - which does exactly what it says (and leaves you free to do whatever you want for yourself in your own code)
 
Share this answer
 
Comments
Ankur\m/ 28-Apr-11 3:12am    
Good answer, 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900