Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Razor throws CompilationFailedException on X64 version of KRE #846

Closed
Praburaj opened this issue Jul 23, 2014 · 4 comments
Closed

Razor throws CompilationFailedException on X64 version of KRE #846

Praburaj opened this issue Jul 23, 2014 · 4 comments

Comments

@Praburaj
Copy link
Contributor

Try a Hello world razor view on X64 version of KRE (both Helios/WebListener) to run into this exception.

An unhandled exception occurred while processing the request.

CompilationFailedException: Compilation Failed:(62,13): error CS0746: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.

Microsoft.AspNet.Mvc.Razor.CompilationResult.get_CompiledType()


·       Stack 

·       Query 

·       Cookies 

·       Headers 

·       Environment 


·         CompilationFailedException: Compilation Failed:(62,13): error CS0746: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.


o    Microsoft.AspNet.Mvc.Razor.CompilationResult.get_CompiledType()

o    Microsoft.AspNet.Mvc.Razor.CompilerCache.GetOrAdd(IFileInfo file, Func`1 compile)

o    Microsoft.AspNet.Mvc.Razor.VirtualPathViewFactory.CreateInstance(String virtualPath)

o    Microsoft.AspNet.Mvc.Razor.RazorView.<RenderLayoutAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.Razor.RazorView.<RenderAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.ViewResult.<ExecuteResultAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResult>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResultFilter>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResultWithFilters>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Mvc.MvcRouteHandler.<RouteAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.RequestContainer.ContainerMiddleware.<Invoke>d__1.MoveNext()

o    --- End of stack trace from previous location where exception was thrown ---

o    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

o    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

o    Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__1.MoveNext()
@Praburaj Praburaj added the bug label Jul 23, 2014
@Praburaj
Copy link
Contributor Author

@kichalla @KKhurin

@KKhurin
Copy link

KKhurin commented Jul 23, 2014

This regressed in the past ~2 weeks

@Praburaj
Copy link
Contributor Author

As an additional note - this happens only on Ctrl + F5. Does not happen when doing F5.

@Praburaj
Copy link
Contributor Author

This is fixed with the latest CoreCLR bits.

@pranavkm pranavkm removed their assignment Aug 28, 2014
@pranavkm pranavkm added this to the 6.0.0-alpha4 milestone Aug 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants