locked
Publishing a website. RRS feed

  • Question

  • User-79246414 posted

    Hey guys,

    Just am in the middle of switching my website to asp.net, and I'm not quite sure what to do when I want to publish it.

    Instead of an index.html is the page Default.aspx? Will a website automatically direct you to it?

    And don't I need to compile the .cs files? When I go Build/Publish Website, it literally is just copying my files to the destination I set, I don't see any compiled files.

    Sorry just a little confused here. Thanks for the help.

    Saturday, December 2, 2017 2:26 AM

All replies

  • User465171450 posted

    The default page will be whatever the IIS server is setup for. Form webforms sites this is usually Default.aspx

    If you are using a website project then no, the .cs files aren't compiled the same. Web application projects will compile the .cs down into a single dll for the project but not website projects.

    Saturday, December 2, 2017 4:22 AM
  • User-707554951 posted

    Hi LittleRainGames,

    For your problem, i suggest you could convert your website to web application project first,

    Then go publish it.

    Following walkthroughs explains how to convert an existing Visual Studio Web site project to a Visual Studio Web application project

    https://msdn.microsoft.com/en-us/library/aa983476.aspx

    https://blogs.msdn.microsoft.com/webdev/2009/10/29/converting-a-web-site-project-to-a-web-application-project/

    Best regards 

    Cathy

    Monday, December 4, 2017 6:52 AM
  • User379720387 posted

    I would install Microsoft's Web Deploy on IIS. If you are hosting then it is already likely the hosting company installed it for you.

    Once installed you retrieve the publish profile from the server and point to that when you click Publish in Visual Studio.

    You can get free hosting on Azure (with limitations) and it is seamless. Web Deploy is already active there.

    There is no need to convert your project .

    Index or Default are both fine, just need to pick one.

    No compiling.

    Tuesday, December 5, 2017 1:03 PM
  • User-79246414 posted

    Thanks everyone for replying. I did end up figuring it out, everything was fine, the naming was just different then with a regular HTML and it kind of confused me.

    I appreciate your answers!

    Wednesday, December 6, 2017 1:58 AM