Click to See Complete Forum and Search --> : Problems creating web pages
raydona
December 15th, 2008, 10:00 AM
Hi, I’m new to Web development so please bear with me. I’m developing a web site using Visual Studio.Net. I’ve two problems. First, I’m able to build the web site, but when I run it in Explorer I get the error “HTTP 401.3 - Access denied by ACL on resource Internet Information Services - You are not authorized to view this page. You do not have permission to view this directory or page using the credentials you supplied.” I cannot see the web page I’m creating. I don’t know if it is related to the Virtual Folder I’ve had to create and accept default settings. How do I overcome the problem?
Second, how do I extract the web site or at least a few pages so that I can show it to my friends on their machines. With a normal application I can extract the .exe file and run it on various machines. What is the equivalent in web development? At the moment if I extract an .aspx file and open it on another machine all that is shown is HTML code.
toraj58
December 15th, 2008, 10:31 AM
.aspx is a server side foramt that need server side processing to return the prepared webpage base on standard html/xhtml tags to the client. so when you open it in the client nothing will be executed you will only see the source.
you should host your .aspx files some where in a server that has a web server like IIS then you requset for the page that hosted in the server via its IP or DNS. if you host your .aspx files in your local machine you can use loopback ip (127.0.0.1) or http://localhost/default.aspx to see the file.
also when you press F5 in visual studio it is no need for you to host the .aspx file in web server IIS because visual studio benefits from using Development Server.
ASP.NET Development Server was mentioned earlier as the lightweight web server that comes with VWD. This is the lightweight server that was known as Cassini during the Beta releases of VWD. Both ASP.NET Development Server and IIS (included with the .NET Framework) can serve all ASPX and associated pages, so at deployment there is no need to make changes to your site. But a number of differences exist between the servers but for your case both of them work for you properly.
if you want your friend see your work host your project in IIS server ang give them the IP or Domain to access it.
for hosting windows 2000 advance server and 2003 server are good.
vuyiswam
December 22nd, 2008, 08:28 AM
Now firstly remember a , when you are Developing your website, you will be doing it under Visual Studio, when you press F5 , it will show you how it looks, i dont remember getting an Error like that , its either you are doing it wrong or out of VS. Now secondly if you want people to see your website, you have to Host it in a IIS as <b>toraj58</b> suggested. and after that you can give your friends a link to access it. but remember that should be internally, if you want your friends out of your office to see that , you have to get a Domain and deploy your pages.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.