Skip to content

Something failes to load when deploying MirrorSharp on a server #180

Open
@Sicos1977

Description

@Sicos1977

When I run my project in visual studio 2022 I have no problems but when deployed on IIS on a Windows 2019 server something failes to load. Does somebody know how I can hook into MirrorSharp to find out what is failing to load. I have no idea how I can retrieve the LoaderExceptions property

Process information: 
    Process ID: 11772 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\XXXXXXXXXXX
 
Exception information: 
    Exception type: ReflectionTypeLoadException 
    Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeAssembly.get_DefinedTypes()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable`1 types, AttributedModelProvider attributeContext)
   at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
   at MirrorSharp.Internal.Roslyn.RoslynLanguageBase.CreateHostServices(String featuresAssemblyName, String workspacesAssemblyName)
   at MirrorSharp.Internal.Roslyn.RoslynLanguageBase..ctor(String name, String featuresAssemblyName, String workspacesAssemblyName, IRoslynLanguageOptions options)
   at MirrorSharp.MirrorSharpOptions.<.ctor>b__3_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at MirrorSharp.Internal.LanguageManager.GetLanguage(String name)
   at MirrorSharp.Internal.MiddlewareBase.<WebSocketLoopAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions