How to put my ASP.NET website online

6

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

    
asked by anonymous 17.10.2014 / 05:07

3 answers

6

By extension of the file I can see 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 it is compiled on the server and as a result the client accessing it is rendering.

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

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

This Microsoft article should help you

Update

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

Other platforms also available in the documentation.

Publish to a Linux Production Environment

    
17.10.2014 / 13:55
2

Sabatinando the author of the question, I discovered that the hosting plan is Linux, which (so far) does not support a server that runs ASP.NET MVC properly.

Use Azure on a free instance to host your site for now.

    
17.10.2014 / 21:10
1

Danilo,

Simple and direct response: No.

The .cshtml extension is used by the ASP.NET View Engine Razor , which may contain code besides HTML, but in the end it is rendered pure HTML.

+ info: link

    
17.10.2014 / 13:33