Been two years since I've been on here asking Imar and Mike about the book.
I'm working on a large project at work using WebMatrix (behind the firewall: Intranet) but lately I'm getting a bad feeling about web hosting of WebMatrix, which unfortunately may be relevant to my larger work project.
I get feeling while WebMatrix runs perfectly and shines at the client end, doing the same with a hosting service is rather complex.
After completing a very small four file WebMatrix site locally, hosting my site on the web has been a total failure as of this writing. I suspected there would be issues, so kept things very simple with only four *.cshtml pages. The entire site, with exactly the same directory tree structure was FTP'd to GoDaddy. For some reason, only Default.cshtml
was up on the browser, but would not link to my other three *.cshtml pages. Also, none of the *.cshtml pages would run when the path was entered on the browser address bar. Presently I just have one file Test.cshtml on the site and it fails to open.
Initially I thought it might be a directory structure issue, then realized the hosting server was not recognizing my *.cshtml pages since my images were loading!
So renamed all the *.cshtml
pages to *.html
and they all ran and after the links were changed they all worked. So now, I have a static site with no database interactivity, which makes it useless.
I am presently using GoDaddy and so far they say
they are running version 4.0 of the .NET framework. Tech support puts the error on my side, but something tells me they're not fully supporting WebMatrix or ASP.Net.
There's something about needing a WebMatrix publish profile
, but GoDaddy's directions point to a dead end. I suspect my web.config
file may have the answer, but I've also attempted to tweak it without success. I even used the AppData/Packages*.* (all the Microsoft sub folders in there) files from the Bakery sample site to no avail, thinking I had the wrong Package files.
The simplest thing to do would be to drop GoDaddy for another hosting service, but I'd like to keep hacking here because I learn from failure (it sinks in far better when you succeed from it)
Any help here would be great!