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. Web Development
  3. ASP.NET
  4. Publishing a Web Application

Publishing a Web Application

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
3 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.
  • R Offline
    R Offline
    Razanust
    wrote on last edited by
    #1

    I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?

    S A 2 Replies Last reply
    0
    • R Razanust

      I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Razanust wrote:

      Any Idea whats going wrong?

      Yes!

      Razanust wrote:

      when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application

      You need to host the files (uploaded on your FTP) on some webserver using IIS in order to make it work as it was when you published it in your system. Publishing once doesn't mean you can carry along published files anywhere and it would work. Read/Know how does a web application work - when you write 'www.codeproject.com' in your browser url, how does you see the homepage. How & What happens in between thing.

      1 Reply Last reply
      0
      • R Razanust

        I have created a simple web application and published it to the local host, running fine there. Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application. Any Idea whats going wrong?

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Razanust wrote:

        Now when i upload the same files present in the Inetpub/wwwroot folder, to my FTP Site and open the Default.aspx page, it shows the html code instead of the application.

        You need to host your sites on IIS. I have wrote couple of articles on IIS, here is the archive links from my blog post, you may found them interesting. http://www.codeproject.com/Articles/106504/IIS-Articles-Archives.aspx[^]

        Cheers ! Abhijit Jana | MVP Visit My Blog Abhijit's World of .NET | Follow Me @ twitter | Disclaimer

        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