Last post Dec 06, 2017 01:58 AM by LittleRainGames
Dec 02, 2017 02:26 AM|LittleRainGames|LINK
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.
Dec 02, 2017 04:22 AM|markfitzme|LINK
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.
Dec 04, 2017 06:52 AM|Cathy Zou|LINK
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
Dec 05, 2017 01:03 PM|wavemaster|LINK
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.
Dec 06, 2017 01:58 AM|LittleRainGames|LINK
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!