Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

Posted on by Microsoft Employee

Hi,

I am trying to load  'http://AX2012R2A:8101/DynamicsAx/Services/UserSessionService'   service on WCFTestClient in Dynamic Ax server, but it can not able to load.

Error Message :  Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.

Error Details :  c:\Users\Administrator\AppData\Local\Temp\Test Client Projects\10.0\5da1e5d3-f1a9-4e79-868b-5f8f7c3cbeea\Client.cs(812,73) : error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Microsoft.Dynamics.Ax' (are you missing an assembly reference?)

 

For more details please see following error image.

DAX-Error.PNG

Does anyone know why 'UserSessionService'  service is not able to load?

Thanks,

Amol Shinde.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    Thank you very much Martin for your reply.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    It's a problem in the test client. Instead of using it, create a new an application in Visual Studio and add a service reference - it works all right there.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    Thanks Martin and waiting for your answer if nobody offers any solution.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    I managed to reproduce your problem (in AX2012 R2 CU7 with VS 2010), but I don't have time to debug it right now. I'll take a look later, if nobody offers any solution.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    Yes Martin, I can open the WSDL in web browser.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Not able to load 'UserSessionService' on WCFTestClient in Dynamic Ax server itself.

    Can you open the WSDL in a web browser?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans