Using Silverlight CRM Attachment Image in an onpremise Server

Jan 13, 2012 at 8:35 PM


I used for testing prupose the component in my online trial version of Dynamics 2011 and it worked perfectly. The problem was when i tried to use it in an onpremise Dynamics 2011 rollout 5 server but the component didn't worked.

The problem is that the component cannot store the image in the note of the entity. I'm Using it in the Contact Entity, and when i'm creating the record, the process is correct, but when i try to save the record again with the image, the component doesn't save the guid of the image in the field, so the system cannot store the image. The note is not created so i don't know what i have to do.

Any one had the same issue??

Thank you

Mar 16, 2012 at 4:10 PM

Ok.  I had to make some changes to the getServerUrl method in my Utility.cs to deal with OnPremise deployments where the host name may not match the host name in the CRM conifguration (which is what it returns when you use the context's getServerUrl).  Please download the updated version and try it, thank you.