locked
Lunching using FTP, open's as a folder and not a webpage RRS feed

  • Question

  • User1420911473 posted

    Hey, i have created this website using ASP.net for a university project.

    The website works as it should when i launch via Visual studio 2019 locally. 

    But when i try to publish it, to my Hostgator server, it treats it as a folder and not as a website. 

    So am obvious doing something wrong, i have tried to read tutorials and forum post, to figure it out, but have not. 

    Am using my own server, where am trying to add it as a sub page, like www.website.com/project

    So here is how am doing it. 

    • I use visual studio 2019's publish function, using a costem profile
    • Publish method: FTP
    • Server: ftp.websitename.com
    • public_html/project
    • Passive mode: on 
    • Destination URL: websitename.com/project

    Setting 

    • Delete all existing files prior to publish: on
    • Precompile during publishing: on
    • Exclude files from the App_Data folder: on 

    So am not sure what i do wrong, or if the thing am trying is even possible.

    Is there something i need to install on the server, or do i need to add some specific

    code some where in my code ? Is one of the setting wrong ? 

    Monday, November 4, 2019 9:44 AM

All replies

  • User61956409 posted

    Hi Bjarked,

    Welcome to ASP.NET forums.

    when i try to publish it, to my Hostgator server, it treats it as a folder and not as a website. 

    You can try to browse something like www.website.com/xxx/default.html from your browser and check if it can render static html page well.

    And please check if you add default document(s) for your site or application, and if you enabled directory browsing for your site or application.

    <directoryBrowse enabled="true" />

    Besides, as you mentioned, your site/project work well on local, but not working on Hostgator server, you can post it on Hostgator Support Forums.

    http://forums.hostgator.com/

    With Regards,

    Fei Han

    Tuesday, November 5, 2019 1:41 AM
  • User1420911473 posted

    So we are using MVC 4, and i most admit i don't know what it means to "add defualt documents" or which document 

    <directoryBrowse enabled="true" />

    needs to be written in. 

    Monday, November 11, 2019 12:21 PM
  • User61956409 posted

    Hi Bjarked,

    Your site/project work well on local, but not working on Hostgator server, you may need to do additional configuration on Hostgator server, we do not have Hostgator server to help reproduce the issue, so please post it on Hostgator Support Forums. Thanks for your understanding.

    http://forums.hostgator.com/ 

    With Regards,

    Fei Han

    Tuesday, November 12, 2019 1:39 AM