Discussion:
AIF webservice problem
(too old to reply)
michael
2009-02-04 03:12:01 UTC
Permalink
I try to implement a soap webservice from external through aif webservice
I fully followed msdn's docs of aif configuration, and finally
got a exception like below

Event Type: Error
Event Source: Dynamics Application Integration Server
Event Category: None
Event ID: 0
Date: 2/3/2009
Time: 8:44:20 PM
User: N/A
Computer: PSH2S008
Description:
The description for Event ID ( 0 ) in Source ( Dynamics Application
Integration Server ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages from
a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve
this description; see Help and Support for details. The following information
is part of the event: An error occurred while Web service request
http://10.62.120.238/DynamicsWebService/CustomerService.asmx and action
readCustomer were being processed. Error details: You cannot log on to
Microsoft Dynamics AX.. Error details: Failed to establish connection.. Check
the Web server event viewer for more information, or contact your
Administrator.

Possible reasons for the logon failure include: (1) The current user is not
a valid Windows user. (2) The user is not configured in Microsoft Dynamics
AX. (3) The user has not been enabled in Microsoft Dynamics AX. (4) The IIS
application pool identity should be running as the Business Connector proxy
user. (5) The Business Connector proxy user has not been configured in
Microsoft Dynamics AX under Administration > Setup > Security..

**Exception:**

Message: Failed to establish connection.Stack trace: at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO*
pBCProxyAccountInfo, String company, String language, String objectServer,
String configuration)
at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W*
pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String
company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user,
String domain, NetworkCredential bcProxyCredentials, String company, String
language, String objectServer, String configuration)
at
Microsoft.Dynamics.IntegrationFramework.WebService.IntegrationProcessor.SubmitMessage(String aifMessage).


please help

Thanks
Michael
Axel Kühn
2009-02-04 08:19:01 UTC
Permalink
Hi michael,

sounds like a problem with the bc proxy user.

Did you configured the AppPool under which your webapp is running to use the
credintials of the bc proxy user?

Please also check, that the bc proxy user has a falid AX client
configuration. Should be possible that the client configuration settings (i.e
AOS instance) is wrong.
--
Sincerely yours
Axel Kühn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Post by michael
I try to implement a soap webservice from external through aif webservice
I fully followed msdn's docs of aif configuration, and finally
got a exception like below
Event Type: Error
Event Source: Dynamics Application Integration Server
Event Category: None
Event ID: 0
Date: 2/3/2009
Time: 8:44:20 PM
User: N/A
Computer: PSH2S008
The description for Event ID ( 0 ) in Source ( Dynamics Application
Integration Server ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages from
a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve
this description; see Help and Support for details. The following information
is part of the event: An error occurred while Web service request
http://10.62.120.238/DynamicsWebService/CustomerService.asmx and action
readCustomer were being processed. Error details: You cannot log on to
Microsoft Dynamics AX.. Error details: Failed to establish connection.. Check
the Web server event viewer for more information, or contact your
Administrator.
Possible reasons for the logon failure include: (1) The current user is not
a valid Windows user. (2) The user is not configured in Microsoft Dynamics
AX. (3) The user has not been enabled in Microsoft Dynamics AX. (4) The IIS
application pool identity should be running as the Business Connector proxy
user. (5) The Business Connector proxy user has not been configured in
Microsoft Dynamics AX under Administration > Setup > Security..
**Exception:**
Message: Failed to establish connection.Stack trace: at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO*
pBCProxyAccountInfo, String company, String language, String objectServer,
String configuration)
at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W*
pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String
company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user,
String domain, NetworkCredential bcProxyCredentials, String company, String
language, String objectServer, String configuration)
at
Microsoft.Dynamics.IntegrationFramework.WebService.IntegrationProcessor.SubmitMessage(String aifMessage).
please help
Thanks
Michael
michael
2009-02-05 02:41:01 UTC
Permalink
Dear Axel:
Thank you very much for your reply!
I've configured the correct bc proxy user as msdn doc ,I finally solved
the problem by
reinstalled the ".Net Business Connector" on server as another doc
presents.
seems I have to install the BC after the bc proxy user has been
configured in
Windows and Dynamics AX.


Regards

Michael
Post by Axel Kühn
Hi michael,
sounds like a problem with the bc proxy user.
Did you configured the AppPool under which your webapp is running to use the
credintials of the bc proxy user?
Please also check, that the bc proxy user has a falid AX client
configuration. Should be possible that the client configuration settings (i.e
AOS instance) is wrong.
--
Sincerely yours
Axel Kühn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Post by michael
I try to implement a soap webservice from external through aif webservice
I fully followed msdn's docs of aif configuration, and finally
got a exception like below
Event Type: Error
Event Source: Dynamics Application Integration Server
Event Category: None
Event ID: 0
Date: 2/3/2009
Time: 8:44:20 PM
User: N/A
Computer: PSH2S008
The description for Event ID ( 0 ) in Source ( Dynamics Application
Integration Server ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages from
a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve
this description; see Help and Support for details. The following information
is part of the event: An error occurred while Web service request
http://10.62.120.238/DynamicsWebService/CustomerService.asmx and action
readCustomer were being processed. Error details: You cannot log on to
Microsoft Dynamics AX.. Error details: Failed to establish connection.. Check
the Web server event viewer for more information, or contact your
Administrator.
Possible reasons for the logon failure include: (1) The current user is not
a valid Windows user. (2) The user is not configured in Microsoft Dynamics
AX. (3) The user has not been enabled in Microsoft Dynamics AX. (4) The IIS
application pool identity should be running as the Business Connector proxy
user. (5) The Business Connector proxy user has not been configured in
Microsoft Dynamics AX under Administration > Setup > Security..
**Exception:**
Message: Failed to establish connection.Stack trace: at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO*
pBCProxyAccountInfo, String company, String language, String objectServer,
String configuration)
at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W*
pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String
company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user,
String domain, NetworkCredential bcProxyCredentials, String company, String
language, String objectServer, String configuration)
at
Microsoft.Dynamics.IntegrationFramework.WebService.IntegrationProcessor.SubmitMessage(String aifMessage).
please help
Thanks
Michael
ray dax
2010-09-21 17:20:44 UTC
Permalink
Hello Michael and Alex,

I have encountered exactly the same error as Michael had. In my case, the external application that is trying to access the AIF web service is a Micrososft Office Infopath file. While I create a web-service based document in Infopath, i am successfully connected to the AIF doument service(which I have hosted on a virtual machine's IIS as a web service), but with some errors(whose details Infopath doesnt show).

But, nevertheless, it had displayed all the operations offered by the service(like create, update, etc). So, I was able to design the Infopath form successfully(also validating it against the requirements of the document, which are mentioned as XMl schema rules in the web service code).

The issue arises when I try to "submit" the same form to the web service(btw, the service is written to create a ledgerjournal in AX, based on data coming from an external Infopath file). It gives me the following error:
"You cannot log on to Microsoft Dynamics AX.. Error details: Connection with the Application Object Server could not be established.. "

The event viewer gives the same error as that of what Michael has posted above in the first post of this thread.

Now, as per your suggestions above, I was trying to change the user account in 'IIS->application pools->properties->identity'. In the application pool identity, I chose the "Configurable" option(instead of "Predefined"), and I gave username and password as the same account which i set as 'bcproxy' user account in AX. But, now, it is not even showing the service i.e, when I browse through the service in IIS, it saying "service unavailable" in the web page(instead of showing the WSDL).
Infact, if I choose to set anything other than "Perdefined->Network Service/Local System" in the Application Pool Identity, the web service itself is not successfully hosted.


Please help me out with this issue. I am not finding any resources(personally or through the internet) in this regard.

Thanks,
Ray.
Post by michael
I try to implement a soap webservice from external through aif webservice
I fully followed msdn's docs of aif configuration, and finally
got a exception like below
Event Type: Error
Event Source: Dynamics Application Integration Server
Event Category: None
Event ID: 0
Date: 2/3/2009
Time: 8:44:20 PM
User: N/A
Computer: PSH2S008
The description for Event ID ( 0 ) in Source ( Dynamics Application
Integration Server ) cannot be found. The local computer may not have the
necessary registry information or message DLL files to display messages from
a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve
this description; see Help and Support for details. The following information
is part of the event: An error occurred while Web service request
http://10.62.120.238/DynamicsWebService/CustomerService.asmx and action
readCustomer were being processed. Error details: You cannot log on to
Microsoft Dynamics AX.. Error details: Failed to establish connection.. Check
the Web server event viewer for more information, or contact your
Administrator.
Possible reasons for the logon failure include: (1) The current user is not
a valid Windows user. (2) The user is not configured in Microsoft Dynamics
AX. (3) The user has not been enabled in Microsoft Dynamics AX. (4) The IIS
application pool identity should be running as the Business Connector proxy
user. (5) The Business Connector proxy user has not been configured in
Microsoft Dynamics AX under Administration > Setup > Security..
**Exception:**
Message: Failed to establish connection.Stack trace: at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO*
pBCProxyAccountInfo, String company, String language, String objectServer,
String configuration)
at
Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W*
pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String
company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user,
String domain, NetworkCredential bcProxyCredentials, String company, String
language, String objectServer, String configuration)
at
Microsoft.Dynamics.IntegrationFramework.WebService.IntegrationProcessor.SubmitMessage(String aifMessage).
please help
Thanks
Michael
Post by Axel Kühn
Hi michael,
sounds like a problem with the bc proxy user.
Did you configured the AppPool under which your webapp is running to use the
credintials of the bc proxy user?
Please also check, that the bc proxy user has a falid AX client
configuration. Should be possible that the client configuration settings (i.e
AOS instance) is wrong.
--
Sincerely yours
Axel K??hn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Post by michael
Thank you very much for your reply!
I've configured the correct bc proxy user as msdn doc ,I finally solved
the problem by
reinstalled the ".Net Business Connector" on server as another doc
presents.
seems I have to install the BC after the bc proxy user has been
configured in
Windows and Dynamics AX.
Regards
Michael
Submitted via EggHeadCafe - Software Developer Portal of Choice
Nested IF Statement ? Excel 2007
http://www.eggheadcafe.com/tutorials/aspnet/195df521-46a8-4b2f-a6aa-dad1fb2c63d5/nested-if-statement--excel-2007.aspx
Loading...