Azure DevOps, Scrum, & .NET Software Leadership and Consulting Services

Free course! Predicting the Future, Estimating, and Running Your Projects with Flow Metrics

Error 2103 “Unhandled Error in Silverlight Application”


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

SUBSCRIBE TO THE BLOG


2 responses to “Error 2103 “Unhandled Error in Silverlight Application””

  1. Anbu Avatar

    After changing the startup project type, my application works fine. Thanks

  2. jordi Avatar
    jordi

    Thanks!! It worked!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

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