cant see my site in browser!
-
Hi I am new to ASP.Net.I have created a file system based web application.I tried to view it in browser.I can do so when i do http://localhost:portno/.However I cannot view it when i do http://:portno/.I cant unserstand where the problem is.I have placed the project inside wwwroot and have webshared it well.I have allowed it in network sharing too.Another thing that is confusing me is when i dont give the port no that is http:// it shows me the directory listing of tegh project .But when i click on any of the aspx page,the following error is shown in the browser: "The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processing resource 'http://jeri/joint/Default.aspx'. Line 1, Position... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> -^" Please help! I know very little about IIS settings and all.Thanks in advance!! confusedme
-
Hi I am new to ASP.Net.I have created a file system based web application.I tried to view it in browser.I can do so when i do http://localhost:portno/.However I cannot view it when i do http://:portno/.I cant unserstand where the problem is.I have placed the project inside wwwroot and have webshared it well.I have allowed it in network sharing too.Another thing that is confusing me is when i dont give the port no that is http:// it shows me the directory listing of tegh project .But when i click on any of the aspx page,the following error is shown in the browser: "The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processing resource 'http://jeri/joint/Default.aspx'. Line 1, Position... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> -^" Please help! I know very little about IIS settings and all.Thanks in advance!! confusedme
hi if i understand your question you want to browse your website on Lan the way is to add the file system web site to vertual directory you can do it like this: open control panel --> adminstrative tools --> IIS when you open it look at left side of the window and right click on web site default in web sites in your local computer tree. on the right menu choose new --> virtual directory that will launch wizard . alias name will be the website name . in the browse window put your project folder . in the permision put what you see necessary and now you can see your website like this http://localhost/'your web site name' or if you are o lan any one can write your ip/'site name' and he will see your web site . it's not necessary to put your file system project in wwwroot folder and this is one of it's benefit gain i hope i understand your question have nice day
-
Hi I am new to ASP.Net.I have created a file system based web application.I tried to view it in browser.I can do so when i do http://localhost:portno/.However I cannot view it when i do http://:portno/.I cant unserstand where the problem is.I have placed the project inside wwwroot and have webshared it well.I have allowed it in network sharing too.Another thing that is confusing me is when i dont give the port no that is http:// it shows me the directory listing of tegh project .But when i click on any of the aspx page,the following error is shown in the browser: "The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processing resource 'http://jeri/joint/Default.aspx'. Line 1, Position... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> -^" Please help! I know very little about IIS settings and all.Thanks in advance!! confusedme
confusedme wrote:
I can do so when i do http://localhost:portno/.However I cannot view it when i do http://:portno/
Of course it doesn't work.
http://:_portNumber_
isn't a valid URL. You didn't tell the browser which host to connect to to request the page. If you specify a port number you must specify the host, either by name or IP.A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Hi I am new to ASP.Net.I have created a file system based web application.I tried to view it in browser.I can do so when i do http://localhost:portno/.However I cannot view it when i do http://:portno/.I cant unserstand where the problem is.I have placed the project inside wwwroot and have webshared it well.I have allowed it in network sharing too.Another thing that is confusing me is when i dont give the port no that is http:// it shows me the directory listing of tegh project .But when i click on any of the aspx page,the following error is shown in the browser: "The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processing resource 'http://jeri/joint/Default.aspx'. Line 1, Position... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> -^" Please help! I know very little about IIS settings and all.Thanks in advance!! confusedme
thanks for the reply..There was some kind of typing error in that .Of course i gave the servername...it was like this: I can do so when i do http://localhost:portno/project name.However I cannot view it when i do http://hostname:portno/project name.I want to run it in LAN.Please Help! confusedme
-
hi if i understand your question you want to browse your website on Lan the way is to add the file system web site to vertual directory you can do it like this: open control panel --> adminstrative tools --> IIS when you open it look at left side of the window and right click on web site default in web sites in your local computer tree. on the right menu choose new --> virtual directory that will launch wizard . alias name will be the website name . in the browse window put your project folder . in the permision put what you see necessary and now you can see your website like this http://localhost/'your web site name' or if you are o lan any one can write your ip/'site name' and he will see your web site . it's not necessary to put your file system project in wwwroot folder and this is one of it's benefit gain i hope i understand your question have nice day
hi there!Thanks for the reply!! I did wat u said.Now i can see the directory listing when i do http://localhost/mywebsitename in my computer.But when i click on any of the pages of the directory the message is like: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processing resource 'http://localhost/joint/Default.aspx'. Line 1, Pos... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> -^ And i cant see even the directory listing in my LAN when i do http://ipadd//mywebsite or http://ipadd//aliasname.It says page cant be displayed. Please help! confusedme