Hi there,
I'm completely new to FunnelWeb but I think it's great and the best looking MVC blog engine out there.
I am having a bit of trouble though - running the website in Visual Studio and once published to my local IIS, everything runs and shows as expects.
However, when I FTP to my hosting provider (Vidahost) the theme.css is failing to load. Looking at the web console in Firefox, this is the output I get from my working local version:
But from my broken live version I get:
I'm guessing it might be permissions related? I had a look at the code and I'm just guessing this might have something to do with it?
var layoutName = "_Public";
Layout = "~/Views/Shared/" + layoutName + ".cshtml";
if(Context.IsMobileDevice())
{
layoutName = "_Mobile";
Layout = "~/Views/Shared/" + layoutName + ".cshtml";
}
var settingsProvider = DependencyResolver.Current.GetService<FunnelWeb.Settings.ISettingsProvider>();
var settings = settingsProvider.GetSettings<FunnelWeb.Settings.FunnelWebSettings>();
var locationFormats = new List<string>
{
"~/Themes/" + settings.Theme + "/Views/{0}.cshtml",
"~/Themes/" + settings.Theme + "/Views/Shared/{0}.cshtml",
"~/Views/Extensions/{0}.cshtml",
};
foreach(var format in locationFormats)
{
var virtualPath = String.Format(
System.Globalization.CultureInfo.InvariantCulture,
format,
layoutName);
System.Diagnostics.Trace.WriteLine(virtualPath);
if(!System.Web.Hosting.HostingEnvironment.VirtualPathProvider.FileExists(virtualPath))
{
continue;
}
this.Layout = virtualPath;
break;
}
Any help/suggestions is massively appreciated.
Thanks,
Jonny