2017-12-05 22 views
-1

테스트 시스템에서는 제대로 작동하지만 프로덕션에서는 이상한 예외를 던지고있는 플러그인이 있습니다. 플러그인은 연락처 생성의 사전 및 사후 이벤트에 등록됩니다. 몇 가지가 될 수 BadImageFormatException이가 당신이 예외를 볼 수 있듯이 아래 CRM 2016의 플러그인이 이상한 예외를 던졌습니다

예외

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.BadImageFormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1C99C823Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"> 
<ActivityId>607632be-97ab-4704-961c-7f552681a51e</ActivityId> 
<ErrorCode>-2147220970</ErrorCode> 
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> 
<Message>System.BadImageFormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1C99C823</Message> 
<Timestamp>2017-12-05T14:44:03.5336134Z</Timestamp> 
<ExceptionRetriable>true</ExceptionRetriable> 
<ExceptionSource>PluginExecution</ExceptionSource> 
<InnerFault> 
<ActivityId>607632be-97ab-4704-961c-7f552681a51e</ActivityId> 
<ErrorCode>-2147220970</ErrorCode> 
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> 
<Message>System.BadImageFormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6482593B</Message> 
<Timestamp>2017-12-05T14:44:03.5336134Z</Timestamp> 
<ExceptionRetriable>false</ExceptionRetriable> 
<ExceptionSource i:nil="true" /> 
<InnerFault i:nil="true" /> 
<OriginalException i:nil="true" /> 
<TraceText i:nil="true" /> 
</InnerFault> 
<OriginalException>System.BadImageFormatException 
+0

도움이 될 수 있습니다 ... https://stackoverflow.com/questions/36069766/system-badimageformatex-when-plugin-executes – Aron

+0

깨끗한 빌드를 시도하고 플러그인을 다시 등록하십시오 ... –

답변

0

입니다 : https://msdn.microsoft.com/en-us/library/k7137bfe.aspx

당신이 플러그인의 추적을 켜고 플러그인을 볼 경우, 당신은 더 나은 정보를 얻을 수 있습니다 Dynamics CRM 내부의 추적 로그. 여기에 좋은 기사가 있습니다 : https://www.powerobjects.com/2016/07/05/debugging-your-plug-ins-with-the-plug-in-trace-log/

코드에 추적 문을 추가 할 수 있습니다. 내 생각 엔 어셈블리의 목표가 바뀌어야한다는 것입니다.