You are viewing limited content. For full access, please sign in.

Question

Question

Session object throws exception "The type initializer for 'Module>' threw an exception"

SDK
asked on February 25, 2016 Show version history

Good Morning Laserfiche Community,

 

I hope all is well.

I am building a Laserfiche integration dll for a web application.  The web application uses an IService.dll to Put, Get, Update, and Delete documents from laserfiche.  All of the methods work properly and as expected except for the Delete.  When the web application calls the Delete method , this exception is thrown "The type initializer for '<Module>' threw an exception".  I have narrowed it down to this line "mySess.LogIn("admin", "admin", myRepoReg);" that cause the exception to be thrown.  I was told that it might have something to do with domain marshaling but that was just a guess.  I am out of ideas of what may be causing this and I am not sure how to troubleshoot and debug further since the exception seems to be thrown from further down the LF dll dependency tree, I think..

Well I hope all this makes sense.  If you have any idea or guess as to what is causing this, please do share.  Any information is helpful and appreciated.  Thank you!

 

 

            try
            {
                String servName = "ServerName";
                String repoName = "RepositoryName";
                // Using the overloaded RepositoryRegistration constructor
                RepositoryRegistration myRepoReg = new RepositoryRegistration(servName, repoName);
                Session mySess = new Session();
                <strong><em><u>mySess.LogIn("admin", "admin", myRepoReg);</u></em></strong>

                //    //    //Entry.Delete(int.Parse(_id), mySess);
                File.AppendAllText(@"C:\errors.txt", "\n Deleted Document, ID:" + documentId + " details: " + mySess.HostName);
                return true;

            } catch (System.Exception excp)
            {
                File.AppendAllText(@"C:\errors.txt", "\n Error deleting Document ID:" + documentId + " Exception:" + excp.Message);
                return false;
            }
0 0

Replies

replied on February 25, 2016

Usually this kind of error is caused by missing dependencies, though I don't know why you would be able to log in for different request types and not this one.  Can you post the full stack trace and any inner exceptions?

0 0
replied on March 2, 2016

Here is the full stack trace and the frames as well.

 

Full Stack Trace:    at LFIService.IService.DeleteDocument(String documentId)
   at EnerGovBusiness.Integration.TCMIntegrationHelper.DeleteDocument(String documentId)
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Server.ChildDataPortal.Update(Object obj, Object[] parameters)
   at Csla.BusinessListBase`2.Child_Update(Object[] parameters)
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Server.ChildDataPortal.Update(Object obj, Object[] parameters)
   at EnerGovBusiness.PermitManagement.Permit.UpdatePermit()
   at EnerGovBusiness.PermitManagement.Permit.DataPortal_Update()
   at dm(Object , Object[] )
   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Object[] parameters)
   at Csla.Server.SimpleDataPortal.Update(Object obj, DataPortalContext context)
   at Csla.Server.DataPortalSelector.Update(Object obj, DataPortalContext context)
   at Csla.Server.DataPortal.Update(Object obj, DataPortalContext context)
   at Csla.DataPortal.Update(Object obj)
   at Csla.Server.Hosts.Silverlight.WcfPortal.Update(UpdateRequest request)
   at SyncInvokeUpdate(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
   at System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
   at System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)
   at System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)
   at System.Runtime.AsyncResult.SyncContinue(IAsyncResult result)
   at System.ServiceModel.Channels.HttpPipeline.EmptyHttpPipeline.BeginProcessInboundRequest(ReplyChannelAcceptor replyChannelAcceptor, Action dequeuedCallback, AsyncCallback callback, Object state)
   at System.ServiceModel.Channels.HttpChannelListener`1.HttpContextReceivedAsyncResult`1.ProcessHttpContextAsync()
   at System.ServiceModel.Channels.HttpChannelListener`1.BeginHttpContextReceived(HttpRequestContext context, Action acceptorCallback, AsyncCallback callback, Object state)
   at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
   at System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)
   at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
 ============= GetFrames of the stack ===============
 
 Filename:  Method: Void PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) Line: 0 Column: 0  
    Filename:  Method: Boolean DeleteDocument(System.String) Line: 0 Column: 0  
    Filename:  Method: Boolean DeleteDocument(System.String) Line: 0 Column: 0  
    Filename:  Method: System.Object dm(System.Object, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: System.Object CallMethod(System.Object, Csla.Reflection.DynamicMethodHandle, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: Void Update(System.Object, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: Void Child_Update(System.Object[]) Line: 0 Column: 0  
    Filename:  Method: System.Object dm(System.Object, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: System.Object CallMethod(System.Object, Csla.Reflection.DynamicMethodHandle, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: Void Update(System.Object, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: Void UpdatePermit() Line: 0 Column: 0  
    Filename:  Method: Void DataPortal_Update() Line: 0 Column: 0  
    Filename:  Method: System.Object dm(System.Object, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: System.Object CallMethod(System.Object, Csla.Reflection.DynamicMethodHandle, System.Object[]) Line: 0 Column: 0  
    Filename:  Method: Csla.Server.DataPortalResult Update(System.Object, Csla.Server.DataPortalContext) Line: 0 Column: 0  
    Filename:  Method: Csla.Server.DataPortalResult Update(System.Object, Csla.Server.DataPortalContext) Line: 0 Column: 0  
    Filename:  Method: Csla.Server.DataPortalResult Update(System.Object, Csla.Server.DataPortalContext) Line: 0 Column: 0  
    Filename:  Method: System.Object Update(System.Object) Line: 0 Column: 0  
    Filename:  Method: Csla.Server.Hosts.Silverlight.WcfResponse Update(Csla.Server.Hosts.Silverlight.UpdateRequest) Line: 0 Column: 0  
    Filename:  Method: System.Object SyncInvokeUpdate(System.Object, System.Object[], System.Object[]) Line: 0 Column: 0  
    Filename:  Method: System.Object Invoke(System.Object, System.Object[], System.Object[] ByRef) Line: 0 Column: 0  
    Filename:  Method: Void InvokeBegin(System.ServiceModel.Dispatcher.MessageRpc ByRef) Line: 0 Column: 0  
    Filename:  Method: Void ProcessMessage5(System.ServiceModel.Dispatcher.MessageRpc ByRef) Line: 0 Column: 0  
    Filename:  Method: Void ProcessMessage31(System.ServiceModel.Dispatcher.MessageRpc ByRef) Line: 0 Column: 0  
    Filename:  Method: Boolean Process(Boolean) Line: 0 Column: 0  
    Filename:  Method: Boolean DispatchAndReleasePump(System.ServiceModel.Channels.RequestContext, Boolean, System.ServiceModel.OperationContext) Line: 0 Column: 0  
    Filename:  Method: Boolean HandleRequest(System.ServiceModel.Channels.RequestContext, System.ServiceModel.OperationContext) Line: 0 Column: 0  
    Filename:  Method: Void AsyncMessagePump(System.IAsyncResult) Line: 0 Column: 0  
    Filename:  Method: Void UnhandledExceptionFrame(System.IAsyncResult) Line: 0 Column: 0  
    Filename:  Method: Void Complete(Boolean) Line: 0 Column: 0  
    Filename:  Method: Void Set(Item) Line: 0 Column: 0  
    Filename:  Method: Void EnqueueAndDispatch(Item, Boolean) Line: 0 Column: 0  
    Filename:  Method: Void EnqueueAndDispatch(T, System.Action, Boolean) Line: 0 Column: 0  
    Filename:  Method: Void Enqueue(QueueItemType, System.Action, Boolean) Line: 0 Column: 0  
    Filename:  Method: Void CompleteParseAndEnqueue(System.IAsyncResult) Line: 0 Column: 0  
    Filename:  Method: Boolean HandleParseIncomingMessage(System.IAsyncResult) Line: 0 Column: 0  
    Filename:  Method: Boolean SyncContinue(System.IAsyncResult) Line: 0 Column: 0  
    Filename:  Method: System.IAsyncResult BeginProcessInboundRequest(System.ServiceModel.Channels.ReplyChannelAcceptor, System.Action, System.AsyncCallback, System.Object) Line: 0 Column: 0  
    Filename:  Method: System.Runtime.AsyncCompletionResult ProcessHttpContextAsync() Line: 0 Column: 0  
    Filename:  Method: System.IAsyncResult BeginHttpContextReceived(System.ServiceModel.Channels.HttpRequestContext, System.Action, System.AsyncCallback, System.Object) Line: 0 Column: 0  
    Filename:  Method: Void HttpContextReceived(System.ServiceModel.Activation.HostedHttpRequestAsyncResult) Line: 0 Column: 0  
    Filename:  Method: Void HandleRequest() Line: 0 Column: 0  
    Filename:  Method: Void BeginRequest() Line: 0 Column: 0  
    Filename:  Method: Void OnBeginRequest(System.Object) Line: 0 Column: 0  
    Filename:  Method: Void PartialTrustInvoke(System.Threading.ContextCallback, System.Object) Line: 0 Column: 0  
    Filename:  Method: Void OnBeginRequestWithFlow(System.Object) Line: 0 Column: 0  
    Filename:  Method: Void IOCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) Line: 0 Column: 0  
    Filename:  Method: Void UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped*) Line: 0 Column: 0  
    Filename:  Method: Void PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) Line: 0 Column: 0  

 

0 0
replied on February 25, 2016 Show version history

Here is the print out for exception.ToString().  Thanks for taking a look at this  Brian.

System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load while attempting to initialize the default appdomain.
 ---> System.Runtime.Serialization.SerializationException: Unable to find assembly 'EnerGovBusiness, Version=9.8.2.38, Culture=neutral, PublicKeyToken=e322cfd8d5c6fcaf'.

Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
   at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
   at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.FixupForNewAppDomain()
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at System.AppDomain.get_Id()
   at <CrtImplementationDetails>.DoCallBackInDefaultDomain(IntPtr function, Void* cookie)
   at <CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* )
   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
   --- End of inner exception stack trace ---
   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
   at .cctor()
   --- End of inner exception stack trace ---
   at Laserfiche.RepositoryAccess.SessionLocale..ctor(Session session, Boolean useUserOverride)
   at Laserfiche.RepositoryAccess.Session.LoginToServer(RepositoryRegistration repository, HttpCredential credentials)
   at Laserfiche.RepositoryAccess.Session.LogIn(String userName, String password, RepositoryRegistration repository)
   at LFIService.IService.DeleteDocument(String documentId)

 

0 0
replied on February 25, 2016 Show version history

Line 2 tells you which assembly it can't find.  I don't really understand why that's coming up at that point in your code, but it's a start.

0 0
replied on February 25, 2016

Hmm, that assembly is there and available.  Strange that it only complains about it when the LFObjects are used though.  I'll double check all of the locations that may be executing this code.  

0 0
replied on February 25, 2016

Note that .Net Remoting is involved here, and it appears to be the application running on the other side of the channel that can't load the assembly.

0 0
replied on February 25, 2016

Thanks for the response Brian.  But isn't both sides of this remote being handle by Laserfiche at that point?  It is happening during the Session login of the LF SDK.  I don't know, maybe I am missing something.

0 0
replied on February 25, 2016

RA doesn't do remoting.  I think that's introduced because of your domain marshaling, but I don't know enough about that or your setup to say for sure.  You might try not marshaling and see if that's the root cause.

0 0
replied on February 25, 2016 Show version history

The problem is probably that the ICU libraries aren't installed properly. The Laserfiche.I18n.dll assembly has a dependency on a couple of ICU DLLs that Windows is unable to find. To install ICU you need to run the full SDK installer or the SDK runtime installer.

The call stack is confusing because the first one is a red herring; the real problem is recorded in the inner exception.

0 0
replied on February 26, 2016

I have both SDK 10 and SDK 10 run time installed.  I just tried reinstalling 9.2 SDK again because I switched back to the 9.2 libraries to see if it was that.  Still the same issue.  Thanks for the input Michael.

0 0
replied on February 26, 2016 Show version history

Can you check if the icudt53.dll file exists in the Program Files\Common Files\Laserfiche\9.2 directory? If your program is running as a 32-bit process check under Program Files (x86) instead.

In the C:\Windows\WinSxS directory there should be a subdirectory named amd64_laserfiche.icu.release_c9173f2a5647b0d5_53.1.0.101_none_05f7067374d37edc and another subdirectory named x86_laserfiche.icu.release_c9173f2a5647b0d5_53.1.0.101_none_4da43d4a894fa7e2. Please check that those directories exists and that there are three DLLs inside of them. The copy of icudt53.dll in these directories will only be about 3KB so don't be alarmed by that.

0 0
replied on February 26, 2016

Okay, they all look present to me.

 

0 0
replied on February 26, 2016

What's the value of Message property of the inner exception that contains "Laserfiche.RepositoryAccess.SessionLocale..ctor" in the call stack? Also, what is the exact type (class name) of the inner exception instance?

0 0
replied on March 1, 2016 Show version history

Michael,

I am not completely sure if this is what you are asking for, but I tried to pull details from all of the inner exceptions.  I was able to traverse up two levels and that was it.  Below is the Message, Class, Source and Exception.ToString() properties of the two levels.

Please let me know if you need anything else.  Thanks again!

 


=========================Inner Exception Level 1 =================================
 Inner exception1 message: The C++ module failed to load while attempting to initialize the default appdomain.
  
	 class: Laserfiche.RepositoryAccess.SessionLocale
 Inner exception1 Source: Laserfiche.I18n
 Inner exception1 ToString(): <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load while attempting to initialize the default appdomain.
 ---> System.Runtime.Serialization.SerializationException: Unable to find assembly 'EnerGovBusiness, Version=9.8.2.38, Culture=neutral, PublicKeyToken=e322cfd8d5c6fcaf'.

Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
   at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
   at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.FixupForNewAppDomain()
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at System.AppDomain.get_Id()
   at <CrtImplementationDetails>.DoCallBackInDefaultDomain(IntPtr function, Void* cookie)
   at <CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* )
   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
   --- End of inner exception stack trace ---
   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
   at .cctor()


=========================Inner Exception Level 2 =================================
 Inner exception2 message: Unable to find assembly 'EnerGovBusiness, Version=9.8.2.38, Culture=neutral, PublicKeyToken=e322cfd8d5c6fcaf'.  
	 class: Laserfiche.RepositoryAccess.SessionLocale
 Inner exception2 Source: mscorlib
 Inner exception2 ToString(): System.Runtime.Serialization.SerializationException: Unable to find assembly 'EnerGovBusiness, Version=9.8.2.38, Culture=neutral, PublicKeyToken=e322cfd8d5c6fcaf'.

Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
   at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
   at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.FixupForNewAppDomain()
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at System.AppDomain.get_Id()
   at <CrtImplementationDetails>.DoCallBackInDefaultDomain(IntPtr function, Void* cookie)
   at <CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* )
   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )

 

0 0
replied on March 2, 2016

Do you have the Laserfiche.I18n.dll assembly installed in your GAC? If you do, to debug this at this point I would recommend starting with the .NET Fusion log viewer. WinSxS tracing and the use of Process Monitor to see which DLL Windows is looking for might also prove helpful.

If you need assistance with this, you can open a case with Laserfiche technical support and request a remote session.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.