Web Hosting for .cshtml files
Last post Jul 20, 2012 08:35 PM by thrasher114
Jan 19, 2011 12:27 AM|Darkman17|LINK
I am new to web programming. I used WebMatrix to build a site and I used .cshtml files all across the board. Now, I tried to take my site live on godaddy.com and found out that they do not suppot .cshtml files (or atleast that is what they told me on the
phone). The lady said that I would maybe need to add a MIME type for it or break up the files into .html and .cs files.
Does anyone know if using a MIME type is possible as I did not see it in this list
Jan 19, 2011 03:24 AM|HostingASPNet|LINK
You could check here -
It seems that you could need more advanced hosting solution as
Windows VPS Hosting or Dedicated Hosting.
Jan 19, 2011 03:24 AM|simtan|LINK
Unfortunately, GoDaddy does not yet support CSHTML files; they require more than just a MIME type change in order to function. GoDaddy would need to install some server-side components as well.
Did you try to use WebMatrix to publish your site to your GoDaddy account? If you publish through the WebMatrix interface (using FTP or another protocol called "Web Deploy"), WebMatrix does some alterations on the server that may help those pages run successfully.
If that does not work, you will need to specifically ask GoDaddy to support "ASP.NET Web Pages with Razor Syntax", which is still a new thing.
You can also find other hosting providers in your area that support WebMatrix completely, by looking for "Spotlight" hosting offers at Microsoft's own hosting gallery/directory:
Hope that helps!
May 16, 2011 12:40 AM|necro_mancer|LINK
Yes, GoDaddy until now has not supported .CSHTML / WebMatrix yet. If you are looking to host your .CSHTML / WebMatrix-based application, you can consider
ASPHostCentral.com. I have my site hosted on their server and .CSHTML files are now working fine. Initially, I have several problems like you experienced before, but the staffs on this hosts are helpful in resolving my issues.
The following are the common problems when deploying WebMatrix-based .CSHTML application to a server:
1. Your Application cannot connect to your SQL Compact / SQL database. This is something to do with your connection string and you need to check it with your current host for details of connection string
2. .CSHTML cannot be rendered and the error message is: "HTTP 404.0 File Not Found". This is pertaining the .CSHTML installation on the server and you need to check it with your current host for details
3. WebMatrix is able to run your .CSHTML file, however, the real URL fails to work. This may be confusing (I am also confused previously). What I am trying to say is: Let's say you have a domain called
http://www.BigDomain.com. Your .CSHTML works on
http://www.BigDomain.com/test.cshtml, however, it does not work with
http://www.BigDomain.com/test. Please remember that when you deploy the application properly, the two URLs should work. In case you experience any error, you need to check it with your current host about the .CSHTML
configuration on their server. Make sure HTTPHandler is set to "Revert to Inherited"
4. Your SQL Compact database cannot be updated with an error message: "Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
". This problem happens simply because of the improper READ and WRITE permission on the App_Data folder
Trust me! It is not quite a pleasant experience when working with .CSHTML. There are always problems after problems occur when trying to deploy it on a server. Fortunately, the staffs at asphostcentral.com did all the magics and my site is working perfectly
fine now. I certainly do not have problems recommending their service to you all.
Hope this helps!
Jul 20, 2012 08:35 PM|Thrasher114|LINK