最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Dynamics AX 2012 R2 AIF No Endpoint Behavior Named ‘clientEndpointBehavior’

网络文摘 William 1581浏览 0评论

Image[4]

 

最近,Reinhard在使用Http Adapter类型的AIF入站端口时,总是报以下错误:

 

Server Error in ‘/MicrosoftDynamicsAXAif60’ Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: There is no endpoint behavior named ‘clientEndpointBehavior’.

Reinhard分析,问题可能出在系统自动生成的web.config文件(以下称为A文件)上。现在要找到一个能正常使用的Http Adapter类型的web.config文件(以下称为B文件),做个对比。

 

Image

 

    打开B文件,Reinhard发现85行之前的内容,都是与具体项目无关的通用模板内容。问题恰恰就出在这里。经过对比,Reinhard发现A文件与B文件的通用模板内容不一样。

 

Image

 

    具体是什么原因导致的系统自动生成的web.config文件内容变了,Reinhard还无法得知。

    不过如果你非常着急地想解决这个问题的话,不妨试试这个方法:用B文件86行之前的内容,替换A文件49行之前的内容,然后再重启下IIS站点,应该就可以咯。

    Reinhard修复完毕后,重新打开浏览器,现在服务可以正常调用了。

 

Image

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址