Skip to content

System.InvalidOperationException  #1

@zaynhijazi

Description

@zaynhijazi

Dear Mr.ChurchHill,

I imported your project solution in Visual Studio on Mac. Whenever I build the solution, I keep on getting a System.Invalid Operation Exception.

Application Exception
System.InvalidOperationException
Could not locate Razor Host Factory type: System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35
Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): System.Web.WebPages.Razor.

Exception stack trace:
at System.Web.WebPages.Razor.WebRazorHostFactory.CreateFactory (System.String typeName) [0x0002e] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Collections.Concurrent.ConcurrentDictionary2[TKey,TValue].GetOrAdd (TKey key, System.Func2[T,TResult] valueFactory) [0x00034] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.Collections.Concurrent/src/System/Collections/Concurrent/ConcurrentDictionary.cs:1002
at System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfigCore (System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup config, System.String virtualPath, System.String physicalPath) [0x0004f] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig (System.String virtualPath, System.String physicalPath) [0x00036] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig (System.String virtualPath) [0x00000] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.RazorBuildProvider.GetHostFromConfig () [0x00006] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.RazorBuildProvider.CreateHost () [0x00000] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.RazorBuildProvider.get_Host () [0x00008] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode () [0x00008] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType () [0x00000] in <20b6401455624929b39ccbe8e8f54b37>:0
at System.Web.Compilation.BuildManagerDirectoryBuilder.GetBuildProviderCodeDomType (System.Web.Compilation.BuildProvider bp) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManagerDirectoryBuilder.cs:224
at System.Web.Compilation.BuildManagerDirectoryBuilder.AssignToGroup (System.Web.Compilation.BuildProvider buildProvider, System.Collections.Generic.List1[T] groups) [0x0006b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManagerDirectoryBuilder.cs:261 at System.Web.Compilation.BuildManagerDirectoryBuilder.Build (System.Boolean single) [0x00129] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManagerDirectoryBuilder.cs:120 at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, System.Boolean debug) [0x00010] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:415 at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x0004b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:396 at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00037] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:989 at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:972 at System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.GetCompiledType (System.String virtualPath) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.BuildManagerCompiledView.Render (System.Web.Mvc.ViewContext viewContext, System.IO.TextWriter writer) [0x0001c] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x00080] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (System.Collections.Generic.IList1[T] filters, System.Int32 filterIndex, System.Web.Mvc.ResultExecutingContext preContext, System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x0000b] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (System.Collections.Generic.IList1[T] filters, System.Int32 filterIndex, System.Web.Mvc.ResultExecutingContext preContext, System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x0009b] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (System.Web.Mvc.ControllerContext controllerContext, System.Collections.Generic.IList1[T] filters, System.Web.Mvc.ActionResult actionResult) [0x0000a] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass3_6.b__4 () [0x000f8] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass3_1.b__1 (System.IAsyncResult asyncResult) [0x00041] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult1[TResult].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Controller+<>c.b__152_1 (System.IAsyncResult asyncResult, System.Web.Mvc.Controller+ExecuteCoreState innerState) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Controller.EndExecuteCore (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Controller+<>c.b__151_2 (System.IAsyncResult asyncResult, System.Web.Mvc.Controller controller) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Controller.EndExecute (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.MvcHandler+<>c.b__20_1 (System.IAsyncResult asyncResult, System.Web.Mvc.MvcHandler+ProcessRequestState innerState) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.MvcHandler.EndProcessRequest (System.IAsyncResult asyncResult) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest (System.IAsyncResult result) [0x00000] in <03c98cfc8623445a8db7b66c6ffa5def>:0
at System.Web.HttpApplication.async_handler_complete_cb (System.IAsyncResult ar) [0x00015] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/System.Web/System.Web/HttpApplication.cs:988
Version Information: 6.8.0.123 (2019-10/1d0d939dc30 Thu Mar 12 23:19:08 EDT 2020); ASP.NET Version: 4.0.30319.42000
Powered by Mono

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions