Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
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 225,490 Super User 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 225,490 Super User 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 225,490 Super User 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 on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    I think you have Enterprise Portal Framework license problem

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans