Hi,
I got the below error while validating the DIXF parameters. And also got the same error while trying to upload data.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.InvalidOperationException: Could not find default endpoint element that references contract
'Microsoft.Dynamics.AX.Framework.Tools.DMF.SSISHelperService.Contract.ServiceContract' in the ServiceModel client configuration section.
This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the
client element.
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address, Configuration configuration)
at System.ServiceModel.Configuration.ConfigurationChannelFactory`1..ctor(String endpointConfigurationName, Configuration configuration, EndpointAddress remoteAddress)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Dynamics.IntegrationFramework.ServiceReference.GetServiceEndpoint(Type serviceClientType, String configFilePath)
at Microsoft.Dynamics.IntegrationFramework.ServiceReference.CreateServiceClient(Type serviceClientType, String configFilePath)
at Dynamics.AX.Application.DMFParameters.createWebServiceClient(Object serviceClientType)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 291
at Dynamics.AX.Application.DMFParameters.createServiceClient(Object serviceClientType)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 266
at Dynamics.AX.Application.DMFParameters.validateSharedFileFolderPath(String _path)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 191
Solution:
<endpoint address="http://localhost:7000/DMFService/DMFServiceHelper.svc" binding="basicHttpBinding" bindingConfiguration="bascicHttpBindingEndpoint" contract="Microsoft.Dynamics.AX.Framework.Tools.DMF.SSISHelperService.Contract.ServiceContract" name="bascicHttpBindingEndpoint" />
I got the below error while validating the DIXF parameters. And also got the same error while trying to upload data.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.InvalidOperationException: Could not find default endpoint element that references contract
'Microsoft.Dynamics.AX.Framework.Tools.DMF.SSISHelperService.Contract.ServiceContract' in the ServiceModel client configuration section.
This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the
client element.
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address, Configuration configuration)
at System.ServiceModel.Configuration.ConfigurationChannelFactory`1..ctor(String endpointConfigurationName, Configuration configuration, EndpointAddress remoteAddress)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Dynamics.IntegrationFramework.ServiceReference.GetServiceEndpoint(Type serviceClientType, String configFilePath)
at Microsoft.Dynamics.IntegrationFramework.ServiceReference.CreateServiceClient(Type serviceClientType, String configFilePath)
at Dynamics.AX.Application.DMFParameters.createWebServiceClient(Object serviceClientType)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 291
at Dynamics.AX.Application.DMFParameters.createServiceClient(Object serviceClientType)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 266
at Dynamics.AX.Application.DMFParameters.validateSharedFileFolderPath(String _path)
in xppSource://Source/ApplicationFoundation\AxTable_DMFParameters.xpp:line 191
Solution:
Below are the steps to resolve the issue:
Step 1: Go to C:\Program Files (x86)\Microsoft Dynamics AX\70\DataImportExportFramework
Open/Edit the below config DMF file in notepad(Microsoft.Dynamics.AX.Framework.Tools.DMF.SSISHelperService.exe)
and check base address in the config file and Service account URI(Data Management > Framework parameters > In general tab) are same.
Step 2: Go to J:\AosService\WebRoot\bin
and check the endpoints node in the file, it should the same URI as mentioned in the step1.
(Make sure you have access for editing the file)
(Make sure you have access for editing the file)
It should contains 2 endpoints. In my case i had only one end point. So, I added the second one manually.
Step 3: Restart the DIXF service (Under services).
Step 4: Reset the IIS(from the command prompt or from inetmgr).
Step 5: After performing above steps, its resolve the issue and able to validate the issue.
Hi,
ReplyDeleteI have performed similar steps which you mentioned but still the issue persists.
Appreciate your help on this.
Regards,
Naresh
Hi Naresh,
DeleteCan you restart the "world wide web publisher" and also restart AOS services in IIS.
If possible can you share Step2 DLL code here.