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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to configure dynamic Gp 2010 web service with C#.net ?

(0) ShareShare
ReportReport
Posted on by 115

Hi,

I configure the dynamic GP 2010 webservice , below mention is the app.config file 

<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<startup><supportedRuntime version="v2.0.50727"/></startup><system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="GPWebService" />
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://abc:48620/Dynamics/GPService/GPService"
binding="wsHttpBinding" bindingConfiguration="GPWebService"
contract="GPWS2010.DynamicsGP" name="GPWebService">
<identity>
<userPrincipalName value="administrator@abc.com" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>

I  have added webservice url ,userPrincipalName  and company ID as (1).

when i run the program it prompt me an error mention below ,

"An exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in mscorlib.dll but was not handled in user code

Additional information: The caller was not authenticated by the service. "

Please guide to get rid of this issue.

Thanks,

Ajay

*This post is locked for comments

I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans