— New online course!  Getting Started with Azure DevOps — Special launch price 50% off —

Error 2103 “Unhandled Error in Silverlight Application”

by

Seen this error before? 

image

Line: 54
Error: Unhandled Error in Silverlight Application
Code: 2103   
Category: InitializeError      
Message: Invalid or malformed application: Check manifest 

At first I was terrified that there was some kind of mysterious corruption in my Visual Studio 2010 Silverlight 4 bits.  After some searching on The Internets, I found the answer at http://forums.silverlight.net/forums/p/170656/384800.aspx#384800.  On March 25, 1010 at 4:15pm, sladapter said that this error “usually happens when you changed the namespace of your app [and] then did not change the Startup Object in the project property.” 

I did just do a big refactoring and renamed a lot of stuff – including renaming the Silverlight project – so I figured that this was the problem.  Unfortunately, I didn’t immediately know what he meant. 

The answer, open the Solution (sln) that has your Silverlight 4 project.  Go to the Silverlight project (not the *.Web project), right-click the project and choose Properties.  When the Project Properties page comes up, click the Silverlight tab and you should see the screen below.

image

When I went to the Silverlight tab for my project, I found that the Startup object was indeed set to the old name and namespace for App.xaml. 

Now, open the Startup object dropdown.

image

The old value isn’t even available in the list anymore.  Choose the right value from the Startup object dropdown list, Save the project, and now your Silverlight application should run.

-Ben


2 Responses to "Error 2103 “Unhandled Error in Silverlight Application”"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: