karthik25 / sblog.net

sBlog.Net is a minimalistic blog engine created using the ASP.Net MVC 4 framework
http://sblogproject.net
BSD 3-Clause "New" or "Revised" License
117 stars 61 forks source link

Setup does not start during first run #11

Closed karthik25 closed 10 years ago

karthik25 commented 10 years ago

Setup does not start during first run - due to the addition of custom razor view engine in global.asax.cs

private void SetupViewEngines()
{
     var settings = InstanceFactory.CreateSettingsInstance();
     ViewEngines.Engines.Clear();
     ViewEngines.Engines.Add(new CustomRazorViewEngine(settings.BlogTheme)); <--- error, load the default view engine if BlogTheme is null
 }
karthik25 commented 10 years ago

Fixed! -- https://github.com/karthik25/sblog.net/commit/73f24890efbfde6e524bbfa1cf09df953c078fb8