Wednesday, March 10, 2010

Silverlight Error: The name ‘InitializeComponent’ does not exist in the current context

I faced problem after conversion silverlight 2.0 app to silverlight 3.0 (VS 2008). After searching on net, I found the problem and the following change fixed my problem

Step1 : Right click on project folder -> unload the project
Step2: Right click on the project and click "Edit the Project.csproj"
Step3: Make the following change. Change "SilverlightPage" tag to "ApplicationDefinition" tag name.

Before Change:


After change:

Step4: Save the changes
Step5: Reload the project (Right click & reload)

This must fix the problem.

No comments:

Post a Comment