Razor Compilation E…
 
Notifications
Clear all

Razor Compilation Errors after upgrading to v3.2.0226.0

9 Posts
2 Users
0 Reactions
11.2 K Views
0
Topic starter

Hi there,

just noticed you published the v3.2 so I tried updating the previous version installed before christmas. After removing the old version and installing the newer one, I tried to access CloudPanel. I got the following error 500 after a while of loading:

System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid. at Nancy.ViewEngines.Razor.RazorViewEngine.GenerateRazorViewFactory(IRazorViewRenderer renderer, GeneratorResults generatorResults, Type passedModelType, ViewLocationResult viewLocationResult) at Nancy.ViewEngines.Razor.RazorViewEngine.GetCompiledViewFactory(TextReader reader, Type passedModelType, ViewLocationResult viewLocationResult) at Nancy.ViewEngines.Razor.RazorViewEngine.<>c__DisplayClass22_0.<GetOrCompileView>b__0(ViewLocationResult x) at Nancy.ViewEngines.DefaultViewCache.<>c__DisplayClass3_0`1.<GetOrAdd>b__0(ViewLocationResult x) at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Nancy.ViewEngines.DefaultViewCache.GetOrAdd[TCompiledView](ViewLocationResult viewLocationResult, Func`2 valueFactory) at Nancy.ViewEngines.Razor.RazorViewEngine.GetOrCompileView(ViewLocationResult viewLocationResult, IRenderContext renderContext, Type passedModelType) at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Nancy.ViewEngines.Razor.RazorViewEngine.GetViewInstance(ViewLocationResult viewLocationResult, IRenderContext renderContext, Object model) at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Nancy.ViewEngines.Razor.RazorViewEngine.<>c__DisplayClass9_0.<RenderView>b__0(Stream stream) at Nancy.Responses.MaterialisingResponse.PreExecute(NancyContext context) at Nancy.NancyEngine.<InvokeRequestLifeCycle>d__22.MoveNext() 

Cant get the Login-View or any other to get working. Even this error message dont appear anymore. Instead I will get a really long “Razor Compilation Error”-Page.

Razor Compilation Error

We tried, we really did, but we just can’t compile your view.

We’re sorry ?

 

KevinKleinjung Topic starter 2018-01-05 07:05

Fixed by removing all existing brandings from database, and restarting IIS.

3 Answers
0

What version did you upgrade from?

KevinKleinjung Topic starter 2018-01-05 07:54

3.1.1540

KMI Support 2018-01-05 09:02

Did you just get this error once and then removed the branding or did you try to refresh the page a couple of times?

0
Topic starter

I tried multiple times.

1st time: Getting that System.BadImageFormatException Exception
After that: Razor Compilation Errors

Also tried in multiple browsers on 2 diffrent machines to get sure it’s not a cache-thing.

KMI Support 2018-01-05 09:14

Ok we will try to reproduce this. The branding did change so it sounds like it may have been an error with the changes and you not having values.

0
Topic starter

According to the error messages on the page with the template error, I suspect the same.

KMI Support 2018-01-09 20:18

You don’t have a copy of your database from backups that you could send us do you? We are having a little trouble reproducing this.

KevinKleinjung Topic starter 2018-01-10 04:54

I have, but would not like to upload it public. May I could mail you the backup.

Share: