Oct 272010
 

Recipe for a good application CRM 2011-  Windows azure Cuisine

Ingredients :

  • CRM 2011 beta (Online)
  • Windows Azure Web Role
  • WCF Service
  • Claims based authentication (knowledge)
  • CRM 2011 SDK
  • Silvelight 4
  • Coffe
  • Developers
  • Visual studio 2010

Take all ingredients , together mix with architecture (like on screen bellow ).

Use plenty of coffe (if you prefer coke that’s fine ) and I almost forgot assing some developers to that project. First you should start with Azure Webrole for hosting WCF service . This WCF service has to communicate with CRM 2011 online so you need to season that with claims based authentication  be careful it’s a bit challenging (DeviceID has to be generated etc.), When all authentication problems are cooked , add some Silvelight app I recommend custom bindings , Update ServiceReferences.ClientConfig to yourname.cloudapp.net domain and then create azure package and publish that on Azure. Don;t forget to copy Microsoft.IdentityModel.dll :) then invite customer and enjoy :) .

I  tested that recipe and effect it’s preety amazing.

If you have any questions related to that recipe feel free to contact.

Oct 232010
 

Server to Server Impersonation for CRM Online from Windows Azure Hosted Service. MS Support Team published excellent article + sample application . This is next on my list  to test :) the walkthrough uses Windows Identity Foundation instead of RPS (Relying Party Suite),

http://code.msdn.microsoft.com/crmonlineforazure

Oct 172010
 

Welcome in part 1. Let’s try to that OOB functionality which allows us to easy create connection to Appfabric Service Bus .

What we need
-Visual Studio 2010 preferable
-Plugin registraion tool – DIY job (We need to build that from sources).

How to build “Plugin registration tool” !//if you know how to do that skip next paragraph.
TO build Plugin registraion tool download Microsoft Dynamics CRM 2011 Software Development Kit (SDK) from http://go.microsoft.com/fwlink/?LinkID=200082 then install it. Find directory  Tools\PluginRegistration click PluginRegistrationTool.sln, this will open solution in Visual Studio, all what you need to do press F6 or Build. This will build new “plugin registraion tool” for us. Output files will be placed in  \Tools\PluginRegistration\bin\Debug (or Release depends which configuration you’ve used).
OK we need to test that tool so run plugin registration tool (PluginRegistration.exe) and connect to you environment.

Now it’s a bit of challenge to do that for online I hope this is because of beta version .
I’ve put https://myorganization.crm4.dynamics.com/ as discovery url and empty user name.


You will be will asked about creditentials after you press “connect” and if you are lucky   you will see screen like bellow

If you have problems. Try to do following.

For Exception Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: …..
1) Try Delete %userprofile%\LiveDeviceID

2) Try to use diffrent Discovery Web Service URL.
North America   https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc
EMEA                https://dev.crm4.dynamics.com/XRMServices/2011/Discovery.svc
APAC                 https://dev.crm5.dynamics.com/XRMServices/2011/Discovery.svc

Pre-beta version showed “Microsoft.Crm.ServiceBus” on the plugin list , current version of plugin registroin tools doesn’t do that, but this funcionality still exists. Instead doint that in convensiopanl was assembly->plugin->step, we will just create endpoint and then register sdkmessageprocessingstep. Credits to person from MSFT for that explanation. I was a bit confused where OOB “Microsoft.Crm.ServiceBus” has gone but they made it clear.

Related posts
MS CRM 2011 and AppFabric (part 0) .

Oct 122010
 

I really like MSDN magazine, the articles are usually very good and it’s worth to check what’s new what is on top. In the October issue for azure oriented people Juval Lowy (yes WCF guru) presetned article “AppFabric Service Bus Discovery”. Interesting concept of dicovering services connected to AppFabric , article includes the some code samples wich we can learn from and resue in real live.

MSDN MAGAZINE

 Posted by at 11:37 pm