.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> Silverlight >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Silverlight unhandled error application code 2105

Posted By:Dhiraj Ranka       Posted Date: January 04, 2011    Points: 75    Category: Silverlight    URL: http://www.dotnetspark.com  

Silverlight unhandled error application code 2105
 

Most of time when we create Silverlight project and use published code to deploy it on server and land up with this error
Error: Unhandled Error in Silverlight 2 application Code: 2105

The point is that when ever you create a Silverlight application with visual studio, it creates XAP package in "ClientBin" folder. You can either rename the .XAP to .ZIP and unzip the file to look at AppManifest.xaml OR if you have code with you then just access to source code and directly open "AppManifest.xaml" file from bin/ folder. And make sure these entries are correct


RuntimeVersion="2.0.31005.0?>

    
    

By default, app.xaml will contain the application class as "App", but over here I have changed it to my control or my page ("MyClass") as shown below. In same ways if you guys are using visual studio and you have renamed your project or App class then make sure that you also make the corresponding changes in Project Configuration (like assembly name, startup project, etc.).

public class MyControl: Application
{
    public App()
    {
        this.RootVisual = new Page();
    }
}

Other alternative

Most simple thing that one can do is re-build your entire project or solution and use that .XAP package for deployment.
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend