Basic Question About Executing ASP.NET App Outside Visual Studio
-
I am just learning ASP.NET. I have an ASP.NET application that I developed in Visual Studio. It contains some GrdiViews, and all works well when I execute the application within Visual Studio using F5. However, when I try to execute the application from Internet Explorer using: http://localhost/FirstExperiment I get a HTTP 403 Message saying: The website declined to show this webpage HTTP 403 Most likely causes: This website requires you to log in. What am I missing or not doing correctly? Thanks!!! Mark
-
I am just learning ASP.NET. I have an ASP.NET application that I developed in Visual Studio. It contains some GrdiViews, and all works well when I execute the application within Visual Studio using F5. However, when I try to execute the application from Internet Explorer using: http://localhost/FirstExperiment I get a HTTP 403 Message saying: The website declined to show this webpage HTTP 403 Most likely causes: This website requires you to log in. What am I missing or not doing correctly? Thanks!!! Mark
Have you deployed your website to IIS? When you run from VS, usually it starts on ASp.NET development web server. To make it work with IIS, use publish website option in VS. Alternatively, you can create a virtual directory in IIS and copy the files to the directory. In your case, virtual directory name would be
FirstExperiment
. If you have done all the above and getting this error message means you have not enabled anonymous authentication in IIS. Right click on your virtual directory and allow anonymous access. :)Navaneeth How to use google | Ask smart questions