Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

WebService log on To AX2012 Error: NOIISRIGHTException

Posted on by 75


I want to create a WebService project to connect to ax2012 and access the method to get the return value

When I create a project to debug, the following error appears

Microsoft.Dynamics.BusinessConnectorNet.NoIISRightsException

pastedimage1615798322646v1.png

My ax2012 is now running. And the WinForm project can be successfully connected.

As an error check, what items need to be set

How can I solve this mistake.

I hope solve this problem.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    If getEmployee() accepted a parameter, you would use it after the call context:

    cl.getEmployee(context, myParam);

  • xiaoshuai.fan Profile Picture
    xiaoshuai.fan 75 on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    Thank you very much for your advice.

    When I specified the user name and password for the user, I was surprised to find that I successfully got the return value. 

    But I'm not sure that's the right way to do it. So could you please review the following code for me again.

    ServiceReference1.EmployeeServiceTestClient cl = new ServiceReference1.EmployeeServiceTestClient();
    ServiceReference1.EmployeeTest em;
    
    CallContext context = new CallContext();
    context.Company = "dat";
    
    cl.ClientCredentials.Windows.ClientCredential.Domain = param;
    cl.ClientCredentials.Windows.ClientCredential.UserName = param1;
    cl.ClientCredentials.Windows.ClientCredential.Password = param2;
    
    em = cl.getEmployee(context);  //This is implemented in AX Service 
    

    Thank you again

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    The necessary configuration for exposing web services through IIS is documented in Install web services on IIS.

  • xiaoshuai.fan Profile Picture
    xiaoshuai.fan 75 on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    Thank you for your reply.

    For some reasons, I am unable to investigate the issue of EP licensing for the time being.

    There will be an investigation later

  • xiaoshuai.fan Profile Picture
    xiaoshuai.fan 75 on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    Thank you for your reply.

    I used Ax Service in the way you provided and successfully called it in the local C # project.

    Now I need to expose the service to the network

    so that I can call it through other projects.

    What should I do?

    (After I create a. Net WebService project, call ax service and publish it to IIS, I get the following error.)

    Exception: Failed to logon to Microsoft Dynamics AX

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    Why are you using Business Connector instead of web services? Doesn't it make everything more complicated and impossible to upgrade?

    Check out custom services in AX 2012.

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    I think you have Enterprise Portal Framework license problem

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans