How to put my ASP.NET site online

Asked

Viewed 2,635 times

6

I’m trying to put my ASP.NET application on the air, and I’ve never had contact with it, I need to turn my . CSHTML into . HTML? Or something like?

  • 1

    On which server you are publishing your site?

  • The server I’m publishing is Godaddy

  • Godaddy even supports MVC3. The instance you are publishing is configured for this?

  • I’m not sure, but the server is Linux, I requested the migration, is that the problem?

  • It sure is. I’ll answer.

3 answers

6


By file extension I can notice that the structure is of a MVC C#, all you need is a Windows hosting with Net Framework support.

As our friend above said, .cshtml has not only HTML the same is compiled on the server and as a result for the client that accesses it is the rendering.

The Sending of the site is done through Deploy or FTP, there are other options but as it comes to hosting is very likely to be these options, with this will be done the project compilation this publication is made with the Visual Studio.

But keep in mind that your hosting should be on the platform Windows (IIS).

This article from Microsoft should help you

Update

With the new version of . NET, the . NET Core. Now supporting multiple platforms (Windows, Linux and Osx) I will leave the Microsoft documentation helping deploy ASP.NET applications in Linux environment.

Other platforms also available in the documentation.

Publish to a Linux Production Environment

  • Right, my server is Linux, in which case I need to switch?

  • Yes, you should request Windows migration.

  • Then I will download FTP and everything will be all right? I just requested the migration. Thank you!

  • If the source is already compiled just send via FTP, otherwise follow the steps of the article I attached.

2

After hearing the author of the question, I discovered that the hosting plan is Linux, which (until then) does not support a server that runs ASP.NET MVC properly.

Use Azure for free to host your website for a while.

1

  • Got it, thank you very much, helped me, now I need to test and give a feedback..

Browser other questions tagged

You are not signed in. Login or sign up in order to post.