Search code examples
asp.netserverumbraco

Umbraco - Compilation Error


I have an issue with running my UMBRACO website live. I have uploaded it via FTP client to the server (using dailyrazor.com ASP.NET hosting) and it comes up with compliation error. Not sure why. I send my database too.

I can log into the backoffice and everything is fine in there but if I want to display a page is just keeps poping error for every page.

Compilation Error

I would appreciate any help to be honest.

Thanks

Pav


Solution

  • It looks like you are using Models Builder and the configuration is generating your models in file instead memory, so you have to include those cs files in your project so they are built along your site.

    By default those classes are saved in /App_Data/Models but are hidden.

    If you don't like this behaviour you can use PureLive as configuration but that will remove the benefits of using strongly typed models on your views.

    Models Builder configuration