portal-logo

Единый сервисный портал Минсельхоза России

Система государственного информационного обеспечения в сфере сельского хозяйства
Ошибка
Извините, во время работы системы произошла ошибка
System.ServiceModel.Dispatcher.NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:ExecuteResult. The InnerException message was 'Error in line 1 position 462. Element 'http://schemas.microsoft.com/xrm/2011/Contracts/Services:ExecuteResult' contains data from a type that maps to the name 'http://schemas.microsoft.com/xrm/2011/Contracts:RetrieveEntityResponse'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'RetrieveEntityResponse' and namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'.'. Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Error in line 1 position 462. Element 'http://schemas.microsoft.com/xrm/2011/Contracts/Services:ExecuteResult' contains data from a type that maps to the name 'http://schemas.microsoft.com/xrm/2011/Contracts:RetrieveEntityResponse'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'RetrieveEntityResponse' and namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'. at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.PartInfo.ReadObject(XmlDictionaryReader reader, XmlObjectSerializer serializer) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest) --- End of inner exception stack trace --- Server stack trace: at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 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 Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) at McxApplicantPortal.DataAccessLayer.DataAccess.Crm.EntityMetadataManager.<>c__DisplayClass2_0.<DoGetEntityMetadata>b__0(CrmConnector connector) in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal.DataAccessLayer\DataAccess\Crm\EntityMetadataManager.cs:line 38 at McxApplicantPortal.DataAccessLayer.DataAccess.Crm.CrmDataAccessBase.UsingCrmConnector(Action`1 useConnector) in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal.DataAccessLayer\DataAccess\Crm\CrmDataAccessBase.cs:line 38 at McxApplicantPortal.DataAccessLayer.DataAccess.Crm.EntityMetadataManager.DoGetEntityMetadata(String entityName) in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal.DataAccessLayer\DataAccess\Crm\EntityMetadataManager.cs:line 42 at McxApplicantPortal.DataAccessLayer.CachingObjects.GetFromCache[T](String cacheKey, GetDataAction`1 actionToInitObject) in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal.DataAccessLayer\CachingObjects.cs:line 19 at McxApplicantPortal.DataAccessLayer.DataAccess.Crm.CrmDataAccess.GetAllServiceAtomsFromCrm() in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal.DataAccessLayer\DataAccess\Crm\CrmDataAccess.cs:line 93 at McxApplicantPortal.Code.Common.GetRealData() in C:\M\MCXGU\mcxapplicantportal\McxApplicantPortal\Code\Common.cs:line 43 at ASP._Page_Views_Service_ServicePlan_cshtml.Execute() in c:\inetpub\wwwroot\Applicant Portal\Views\Service\ServicePlan.cshtml:line 26 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
← Вернутся назад На главную →