Skip to content

Instantly share code, notes, and snippets.

@JonCubed
Created January 22, 2016 02:58
Show Gist options
  • Save JonCubed/47f071af5cfb56286a0e to your computer and use it in GitHub Desktop.
Save JonCubed/47f071af5cfb56286a0e to your computer and use it in GitHub Desktop.
Server Error in '/' Application.
Type 'System.Collections.Immutable.ImmutableStack`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'NewRelic.Providers.CallStack.AsyncLocal, Version=5.12.13.0, Culture=neutral, PublicKeyToken=f7f92cc5c2dc8743' is not marked as serializable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException: Type 'System.Collections.Immutable.ImmutableStack`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'NewRelic.Providers.CallStack.AsyncLocal, Version=5.12.13.0, Culture=neutral, PublicKeyToken=f7f92cc5c2dc8743' is not marked as serializable.
Source Error:
Line 43:
Line 44:
Line 45: @CloudFrontResources.RenderStyle(ConfigurationManager.AppSettings["CdnUrl"], "~/Content/modernTemplate")
Line 46: <link href="@Model.WebFontCssUrl" rel="stylesheet" type="text/css" />
Line 47: <!-- Top Header -->
Source File: c:\Build\WebApp\Views\Home\ModernTemplate_Layout.cshtml Line: 45
Stack Trace:
[SerializationException: Type 'System.Collections.Immutable.ImmutableStack`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'NewRelic.Providers.CallStack.AsyncLocal, Version=5.12.13.0, Culture=neutral, PublicKeyToken=f7f92cc5c2dc8743' is not marked as serializable.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +348
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1351
System.AppDomain.get_Id() +0
<CrtImplementationDetails>.DoCallBackInDefaultDomain(IntPtr function, Void* cookie) +256
<CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* ) +472
<CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* ) +89
[ModuleLoadException: The C++ module failed to load while attempting to initialize the default appdomain.
]
<CrtImplementationDetails>.ThrowModuleLoadException(String errorMessage, Exception innerException) +50
<CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* ) +200
.cctor() +41
[TypeInitializationException: The type initializer for '<Module>' threw an exception.]
LibSassHost.SassCompiler..ctor(IFileManager fileManager) +0
BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.Translate(IList`1 assets) +326
BundleTransformer.Core.Transformers.TransformerBase.Translate(IList`1 assets, Boolean isDebugMode) +116
BundleTransformer.Core.Transformers.TransformerBase.Transform(IList`1 assets, BundleContext bundleContext, BundleResponse bundleResponse, VirtualPathProvider virtualPathProvider, Boolean isDebugMode) +106
BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse, Boolean isDebugMode) +347
System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles) +210
System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath) +274
System.Web.Optimization.AssetManager.EliminateDuplicatesAndResolveUrls(IEnumerable`1 refs) +363
System.Web.Optimization.AssetManager.DeterminePathsToRender(IEnumerable`1 assets) +800
System.Web.Optimization.AssetManager.RenderExplicit(String tagFormat, String[] paths) +34
BuyReply.Platform.WebApp.Common.Bundles.CloudFrontResources.RenderStyle(String cdnUrl, String path) in c:\TeamCity\buildAgent\work\f487e2bbb61aedc4\BuyReply.Platform.WebApp.Common\Bundles\CloudFrontResources.cs:16
ASP._Page_Views_Home_ModernTemplate_Layout_cshtml.<Execute>b__5() in c:\Build\WebApp\Views\Home\ModernTemplate_Layout.cshtml:45
System.Web.WebPages.<>c__DisplayClassb.<RenderSection>b__9(TextWriter tw) +186
ASP._Page_Views_Shared__Layout_cshtml.Execute() in c:\Build\WebApp\Views\Shared\_Layout.cshtml:9
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +227
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +77
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +108
System.Web.WebPages.WebPageBase.PopContext() +200
System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +108
System.Web.WebPages.WebPageBase.PopContext() +200
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +312
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +533
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +533
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +533
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +533
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +248
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +221
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +857
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +1257
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1294
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +2445
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1010
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34280
@NikRimington
Copy link

Hi Jon,

Did you get to the bottom of this AppDomain issue with LibSassHost? I'm getting something similar in a different project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment