28.10.2015, 17:36 | #1 |
Участник
|
AIF ServiceGroup с разными сервисами
Всем привет!
У меня вопрос по AIF. Есть группа сервисов ServiceGroup в АОТ. В неё можно добавлять различные сервисы 1, 2 ... Сервисы могут быть разные, использовать разные контракты да и возвращать различные данные. Если добавить в сервисную группу различные сервисы и посмотреть wsdl сервиса, который работает по net.tcp, то wsdl открывается нормально. Но если этот сервис развернуть на http и попробовать просмотреть wsdl то выводится куча ошибок: Цитата:
[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +0 System.Reflection.RuntimeMethodInfo.get_Signature() +82 System.Reflection.RuntimeMethodInfo.GetParameters() +38 System.Runtime.Serialization.ClassDataContractCriticalHelper.EnsureMethodsImported() +188 System.Runtime.Serialization.DataContractCriticalHelper.CreateDataContract(Int32 id, RuntimeTypeHandle typeHandle, Type type) +793 System.Runtime.Serialization.DataContractCriticalHelper.GetDataContractSkipValidation(Int32 id, RuntimeTypeHandle typeHandle, Type type) +117 System.Runtime.Serialization.XsdDataContractExporter.GetSchemaTypeName(Type type) +85 System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter..ctor(OperationDescription description, DataContractFormatAttribute dataContractFormatAttribute, DataContractSerializerOperationBehavior serializerFactory) +412 System.ServiceModel.Description.DataContractSerializerOperationBehavior.GetFormatter(OperationDescription operation, Boolean& formatRequest, Boolean& formatReply, Boolean isProxy) +308 System.ServiceModel.Description.DataContractSerializerOperationBehavior.System.ServiceModel.Description.IOperationBehavior.ApplyDispatchBehavior(OperationDescription description, DispatchOperation dispatch) +69 System.ServiceModel.Description.DispatcherBuilder.BindOperations(ContractDescription contract, ClientRuntime proxy, DispatchRuntime dispatch) +120 System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +4106 System.ServiceModel.ServiceHostBase.InitializeRuntime() +90 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +175 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +740 System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +125 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901 [ServiceActivationException: The service '/MicrosoftDynamicsAXAif60/ServiceGroup/xppservice.svc' cannot be activated due to an exception during compilation. The exception message is: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B).] System.Runtime.AsyncResult.End(IAsyncResult result) +624474 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +196075 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +166 Ах2012 R3 |
|
Теги |
aif, ax2012, service |
|
|