Click here to Skip to main content
15,867,704 members
Articles / Silverlight
Tip/Trick

Error 2103 “Unhandled Error in Silverlight Application

Rate me:
Please Sign up or sign in to vote.
4.88/5 (6 votes)
29 May 2012CPOL 66.7K   2   6
Unhandled error in Silverlight application-Error 2103.

Introduction

If you getting given bellow image error in silverlight then try this...

Image 1

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

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.

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.

Image 2

Now, open the Startup object dropdown. 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
PraiseError 2103 Pin
Reg Hammond7-Nov-15 5:18
Reg Hammond7-Nov-15 5:18 
GeneralRe: Error 2103 Pin
Savalia Manoj M26-Nov-15 0:04
Savalia Manoj M26-Nov-15 0:04 
Enjoy coding.....
QuestionError 2103 “Unhandled Error in Silverlight Application Pin
Bikram Panjikar20-Nov-13 5:49
Bikram Panjikar20-Nov-13 5:49 
QuestionMy Vote Of 5 Pin
Alexey Chepelev15-Oct-13 2:29
Alexey Chepelev15-Oct-13 2:29 
AnswerRe: My Vote Of 5 Pin
Savalia Manoj M25-Mar-15 0:11
Savalia Manoj M25-Mar-15 0:11 
GeneralMy vote of 4 Pin
jophyjob5-Feb-13 3:41
jophyjob5-Feb-13 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.