Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Calling webservice problem

Posted on by 55

Hi,

We developed a rest WS which we will call from an external application.

The ws is getting an account based on same search criteria.

when I launch the WS from visual studio (IIS express) all work fine, i get the result and i have no problem.

but once my WS deployed on the server's IIS , it does not work :the line of code that is returning the error is the retrieve.

the error I'am getting 

ERROR AccountController FindAndGetResponse - System.ServiceModel.FaultException: Le serveur n'a pas pu traiter la demande en raison d'une erreur interne. Pour plus d'informations sur l'erreur, activez IncludeExceptionDetailInFaults (depuis ServiceBehaviorAttribute ou depuis le comportement de configuration ) sur le serveur pour renvoyer les informations de l'exception au client, ou activez le suivi conformément à la documentation du Kit de développement logiciel (SDK) de Microsoft .NET Framework et examinez les journaux de suivi du serveur.

Server stack trace: 
   à System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   à System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   à System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   à System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   à Microsoft.Xrm.Sdk.IOrganizationService.RetrieveMultiple(QueryBase query)
   à Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.RetrieveMultipleCore(QueryBase query)
it s the V9.0 on premise version

  • Nando07 Profile Picture
    Nando07 55 on at
    RE: Calling webservice problem

    Hi Amit ,

    Thank you for reply!

    1.I checked the parameters passing on my web.conf and are the same i use on my web.config in my VS.

    2.I will check for the firewall!

  • Nando07 Profile Picture
    Nando07 55 on at
    RE: Calling webservice problem

    Hi Oussama ,

    Thank you for your reply !

    I did the deployment of the WS on the server where i've the crm installed (Frontend) and on another one which has connection to this server .

  • Amit Katariya007 Profile Picture
    Amit Katariya007 8,525 Super User 2024 Season 1 on at
    RE: Calling webservice problem

    Hello,

    Please check below things for the troubleshoot this issue.

    1. So first please check if your are passing the correct parameter to the MSD server to get all the required information for establishment of the connection.

    2. This is most important thing please check the firewall settings for the server. Because most of the time your server's firewall will block this responses and because of that connection will not established. and after some time it will show this type of timeout error.

    Thank you,

    Amit Katariya

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calling webservice problem

    Hi,

    is it applicable to connect your Dynamics CRM from the WS server?

    may be its a connection issues!

    because when the retrieve throw an error, that's mean in most of issues that the connection not correct.

    my recommendation is to review your infrastructure.

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

Featured topics

Product updates

Dynamics 365 release plans