Razor Compilation Errors after upgrading to v3.2.0226.0
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 ?
Fixed by removing all existing brandings from database, and restarting IIS.
What version did you upgrade from?
Did you just get this error once and then removed the branding or did you try to refresh the page a couple of times?
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.
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.
According to the error messages on the page with the template error, I suspect the same.
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.
I have, but would not like to upload it public. May I could mail you the backup.
- 5 Forums
- 714 Topics
- 3,630 Posts
- 1 Online
- 253 Members