web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

WebService log on To AX2012 Error: NOIISRIGHTException

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: WebService log on To AX2012 Error: NOIISRIGHTException

    I think you have Enterprise Portal Framework license problem

  • Verified answer
    Martin Dráb Profile Picture
    236,320 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.

  • xiaoshuai.fan Profile Picture
    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

  • xiaoshuai.fan Profile Picture
    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

  • Suggested answer
    Martin Dráb Profile Picture
    236,320 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
    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

  • Verified answer
    Martin Dráb Profile Picture
    236,320 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);

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,047

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 885 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 592 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans