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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM sdk 2013 using issue on windows server 2003 enterprise server

(0) ShareShare
ReportReport
Posted on by 290

Hello,

I have created one asp.net web site to communicate CRM 2013 online. Below is the code i am using

// Get Organization service

           ClientCredentials cre = new ClientCredentials();
            cre.UserName.UserName = Username;
            cre.UserName.Password = Password;

            Uri serviceUri = new Uri(Url);

            OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, cre, null);
             IOrganizationService service = proxy.EnableProxyTypes();

// Add entry in broker custom entity

 Entity ent = new Entity("new_brokercorrespon");
                ent.Attributes["new_name"] = "test";
                service.Create(ent);

The full code is working fine on my local computer (windows 7 PC) and our development server (windows 2012 server ) but it throw exception on our client server (windows 2003 server ). Is it because CRM 2013 sdk not support in windows 2003 server? 

I have debug the problem and come to know that the code above the "//Add entry in broker custom entity" working fine and the error thrown by rest of the code.

Below is the exception i got

------ Error --------

An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. System.ServiceModel.FaultException: An error occurred when verifying security for the message. Server stack trace: at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Create(Entity entity) at CRMWebApplication.BrokerDetail.AddBroker(Broker broker)

------------------

Can anyone help me to come out the problem?

Thanks & Regards

Bhumit Patel

*This post is locked for comments

I have the same question (0)
  • Royal King Profile Picture
    27,686 on at

    check whether you have windows Identity foundation installed on the machine where you are running the application? WIndows identity foundation is a required component for Authentication.

  • Bhumit Patel Profile Picture
    290 on at

    Dear Chitra,

    Thanks for your response.

    I have installed windows Identity foundation for windows 2003 server and still same problem arise.

    When i tested same code on another server which is windows 2008 R2 server. it works without installing windows Identity foundation. We just need to  put "Microsoft.IdentityModel.dll" in bin folder.

    One more thing the code for get organization service works fine in windows 2003 server.

    Regards

    Bhumit

  • Bhumit Patel Profile Picture
    290 on at

    Hello Guido Preite,

    Thanks For you replay,

    I have checked with code suggested by you and its working fine in my local computer as well as staging server but it throw exception on client sever (windows server 2003).

    Below is the message I got when i executed the code

    Message: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    Inner Exception: System.ServiceModel.FaultException: ACS10001: An error occurred while processing the SOAP header.

    Is there a issue of firewall?

    Thanks & Regards

    Bhumit Patel

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans