Skip to main content

Notifications

Announcements

No record found.

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.

  • Verified answer
    Martin Dráb Profile Picture
    233,011 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
    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
    233,011 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 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
    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
    233,011 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
    8,816 Moderator 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans