Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. cant see my site in browser!

cant see my site in browser!

Scheduled Pinned Locked Moved C#
helpcsharpxmlasp-netsysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    confusedme
    wrote on last edited by
    #1

    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

    S D C 3 Replies Last reply
    0
    • C 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

      S Offline
      S Offline
      samforu
      wrote on last edited by
      #2

      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

      C 1 Reply Last reply
      0
      • C 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

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • C 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

          C Offline
          C Offline
          confusedme
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • S samforu

            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

            C Offline
            C Offline
            confusedme
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups