Clicky

Hi,

I'm trying to run a console application against a CRM 2011 online instance (https://<org-name>.crm5.dynamics.com)

I'm using the CrmServiceHelpers.cs and Deviceidmanager.cs helpers file. On the ServerConnection class I put:

 

        private string _user = "<my-live-id>";

        private string _pwd = "<my-live-passwd>";

        private string _server = "crm.dynamics.com";

        private string _org = "<unique-org-name>";

However, I always encountered this error:

Configuration binding extension 'system.serviceModel/bindings/netTcpRelayBinding ' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.

Can anyone help on what went wrong and how to fix it?

 

Thanks

asked 12/13/2011 06:00

asteven's gravatar image

asteven ♦♦


8 Answers:
Hi asteven,

It seems you need to change few configuration settings.

Check this : http://justinlee.sg/2011/04/27/how-to-fix-this-error-configuration-binding-extension-system-servicemodelbindingsnettcprelaybinding-could-not-be-found/

Let me know if it does not help you.

Regards,
Chinmay.
link

answered

Chinmay_Patel's gravatar image

Chinmay_Patel

Hi Chinmay,

Thanks for your prompt response,

However It doesn't really help. Can you guide me, preferable step by step, on how to Connect to CRM 2011 Online from a Console Application?

When Connecting to the CRM 2011 on-premise I used to use the files from the CRM 2011 Sdk (CrmServiceHelpers.cs and Deviceidmanager.cs helpers file)

From what I know, I can also use them to connect to the CRM Online. But I encountered this error "Configuration binding extension 'system.serviceModel/bindings/netTcpRelayBinding ' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly."

Thanks
link

answered 2011-12-13 at 14:10:52

asteven's gravatar image

asteven

Hi asteven,

Alright. The same code that you have used from SDK should just work fine. It seems some configuration entries have been changed on your system.

Could you tell me if you recently uninstalled Azure SDK from your computer?

Regards,
Chinmay.
link

answered 2011-12-13 at 14:24:55

Chinmay_Patel's gravatar image

Chinmay_Patel

Hi Chinmay,

Since I'm working from a remote server, I can't really tell. But that is not the case as far as I know.
Thanks..
link

answered 2011-12-13 at 14:32:11

asteven's gravatar image

asteven

Hi asteven,

You can still ask Administrator if  somebody uninstalled the Azure SDK or not. Also By Remote server, you mean to say you have another computer which you are using for development right?

Steps to fix this error are as follows
- Navigate to :C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
- Take backup of Machine.config and then open Machine.config. Once you have opened it,
- Do a Replace All to replace the following:
Microsoft.ServiceBus, Version=1.0.0.0
With:
Microsoft.ServiceBus, Version=1.5.0.0

If that does not fix it, we will explore other options.

Regards,
Chinmay.
link

answered 2011-12-13 at 14:34:23

Chinmay_Patel's gravatar image

Chinmay_Patel

Hi Chinmay,

There is no "Microsoft.Servicebus" line on the machine.config.

Can you advise? Thanks
link

answered 2011-12-13 at 14:42:29

asteven's gravatar image

asteven

Hi Chinmay,

At last resort, I moved the script into another machine and run it from there, so my problem is solved for now. thanks.
link

answered 2011-12-13 at 14:46:37

asteven's gravatar image

asteven

Crude solution

link

answered 2011-12-13 at 16:49:32

asteven's gravatar image

asteven

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×8
×2
×1

Asked: 12/13/2011 06:00

Seen: 310 times

Last updated: 12/17/2011 05:21