Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 01:36:42 AM

Pages: [1]   Go Down
  Print  
Author Topic: Are .cshtml files supported?  (Read 6329 times)
chrisbob
Newbie
*
Offline Offline

Posts: 2


« on: July 26, 2011, 02:36:39 PM »

Hi, I've filed a ticket with support already, but maybe you guys can get back to me quicker.

My website is built entirely with .cshtml files. When I go to my domain, it gives a 403 Forbidden error. Trying to access an individual .cshtml throws up a 404 error. I read somewhere that the other hosting company's hosting didn't support the file type, but I haven't been able to find out whether LunarPages has the same problem.

I've spent the last few weeks teaching myself Webmatrix, C#, and Razor Syntax and I really don't want to have to learn and rebuild the whole site in PHP. Am I going to have to find a different host?
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #1 on: July 26, 2011, 06:43:22 PM »

That's not a widely used language, and certainly doesn't come on the shared servers. http://rayaspnet.blogspot.com/2011/03/what-is-cshtml-file.html has some information on it (I had to look it up myself). It seems to be related to ASP.Net, which is available at LP for extra cost. Certainly with a dedicated Windows/IIS server, and possibly a VPS Windows server, you could install whatever you want for software support, but you're not going to find CSHTML widely available. In the end, only LP Tech Support can tell you for sure whether you'll be able to get CSHTML, and at what cost.

Whatever led you to learn this language before seeing whether it's available anywhere?
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
chrisbob
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: July 27, 2011, 12:12:41 PM »

Well, I'm an absolute beginner to web development. I've been using Webmatrix since its very newbie and Windows friendly. I've also had some difficulties with MySQL and PHP on my Windows machine and just got fed up with fighting with it. Many of the tutorials for Webmatrix, including on the ASP.net site make extensive use of Razor and C# and don't make it clear that finding support for them would be difficult. Here's what the LunarPages support ticket said:

Quote
We dont offer Web matrix. with our shared Windows Hosting account you will have to upgrade to a Windows VPS or to a Dedicated Windows Server if you must need to host a Webmatrix. site, please let us know if you may require any further assistance.

Which would mean switching from a cheap plan to a significantly more expensive plan. Or rewriting the site in a compatible language (I assume they meant that some of the more unique aspects of WebMatrix like Razor aren't supported since regular html pages seem to work fine). Its not like my site is all that complicated, but it does make use of a database for my own little hacked together blog and I really like how Razor is dead simple as far as data retrieval goes and I can directly see and edit the database in WebMatrix itself. It helps to be a newbie in this case since I don't have any preconceived biases against things like SQL statements in markup and other weird quirks in WM.

Fortunately, Microsoft has a page that lists some (apparently) compatible hosting options. I was really hoping to use LP but it doesn't seem to be feasible at this point. My biggest frustration comes from the fact that I can't seem to find a straightforward answer as to why this isn't supported in a lot of hosting plans. I'd honestly be satisfied with a simple "its a security hole" or "it conflicts with existing server software."
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #3 on: July 27, 2011, 04:25:43 PM »

I'm sure it costs enough that LP would have to charge extra for it, and they probably haven't had people breaking down the doors asking for it (I've never seen a request for it, or even mention of it, before you). If enough people ask for it, they would probably make it available, but that will be far too late for your purposes...
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
DougieBear
Newbie
*
Offline Offline

Posts: 1


« Reply #4 on: August 30, 2011, 10:00:08 AM »

Hi Chrisbob,
My name is Doug.

I did the same as you.
I am also a newbie with WebMatrix and wanted to learn web pages....
I was trying to find how and where to look for the coding (how to write the expressions.
I found it really hard...
I still don't know what to do .
lol.
but still willing..
Good luck.




Hi, I've filed a ticket with support already, but maybe you guys can get back to me quicker.

My website is built entirely with .cshtml files. When I go to my domain, it gives a 403 Forbidden error. Trying to access an individual .cshtml throws up a 404 error. I read somewhere that the other hosting company's hosting didn't support the file type, but I haven't been able to find out whether LunarPages has the same problem.

I've spent the last few weeks teaching myself Webmatrix, C#, and Razor Syntax and I really don't want to have to learn and rebuild the whole site in PHP. Am I going to have to find a different host?
Logged
apapgolf
Newbie
*
Offline Offline

Posts: 1


« Reply #5 on: September 05, 2011, 11:45:05 PM »

I'm sure it costs enough that LP would have to charge extra for it, and they probably haven't had people breaking down the doors asking for it (I've never seen a request for it, or even mention of it, before you). If enough people ask for it, they would probably make it available, but that will be far too late for your purposes...
I carefully thought for a moment, this is feasible, but how good operation also need to think about!
« Last Edit: September 06, 2011, 03:53:54 AM by KrisA » Logged
Pages: [1]   Go Up
  Print  
 
Jump to: