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?
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?
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.
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
Danilo,
Simple and direct answer: No.
The extent .cshtml is used by the ASP.NET View Engine Razor, which may contain code other than HTML, but is ultimately rendered pure HTML.
Got it, thank you very much, helped me, now I need to test and give a feedback..
Browser other questions tagged asp.net-mvc
You are not signed in. Login or sign up in order to post.
On which server you are publishing your site?
– Leonel Sanches da Silva
The server I’m publishing is Godaddy
– Danilo Oliveira
Godaddy even supports MVC3. The instance you are publishing is configured for this?
– Leonel Sanches da Silva
I’m not sure, but the server is Linux, I requested the migration, is that the problem?
– Danilo Oliveira
It sure is. I’ll answer.
– Leonel Sanches da Silva