unhandled Error in Silverlight 2 Application Code: 2103

I developed a Silverlight App for CRM2011 and deployed the XAP & HTML file as a web resource. While trying to view the HTML page, I got the following error:

unhandled Error in Silverlight 2 Application
Code: 2103
Category: InitializationError
Message: Invalid or malformed application: Check manifest

After looking through all posts online including msdn blogs, every site talked about renaming the namespace or changing default project in Silverlight project properties. But after spending endless number of hours to fix the issue, I figured out it was because I was deploying the XAP file from /bin/debug folder instead of ClientBin folder of web project. So, the fix for this issue can be summarised as:

1.) Open the solution to which web resources have been deployed and delete the xap as well as HTML resource

2.) Deploy the resource again to the same solution but from the ClientBin folder

3.) Publish all customizations and this should fix the issue.

Similar Posts

4 Comments

  1. Hi Ashish, I am new to CRM. I am getting the same error and came across your blog while searching the net. In this blog you mentioned that you were deploying the XAP file from bin/debug folder instead of ClientBin. And then in the Summary you have mentioned, deploy the resource from the bin/Debug folder. Should we deploy the XAP file from the bin/debug or clientAPP. Coming to my case, I am using the CRM 2011 30 day trial. I developed a Silverlight APP and tried to reference the containing HTML in the CRM entity form. I get the error mentioned above. When I directly reference the XAP file, there is no error displayed and the contents of the Silverlight APP is also not displayed. Could you help me?

    Regards
    Vishrant

    1. Hi Vishrant
      While deploying the Silverlight applications to CRM2011, we should always upload the XAP file from the ClientBin folder. If you want to deploy the silverlight application directly to a CRM entity form, use the link to the XAP web resource in the iframe. If you do not see anything in the Iframe or see an error after publishing the form, try opening the link that you mentioned in the iframe directly in IE. If you still see the error in IE, this means that silverlight application needs to be fixed.

      I can try to tweak the code if you can zip the solution and send me at akhanna1986@gmail.com

  2. Hi Ashish Khanna,

    Thank you for your post about Silverlight with CRM 2011. I am also trying to create a Silverlight Web Resource for use with CRM 2011. Can you give me some pointers as to how I can connect to the data in CRM 2011 (on premise) with a Silverlight app? Do you have a sample you can share with me?

    Thank you for any assistance you can provide.

Leave a Reply