Skip to main content

Microsoft Silverlight

Unanswered Question Name 'Initialize Component' is not declared Error When I create A new AppRSS Feed

(0)

zakkar
zakkar

Member

Member

14 points

67 Posts

Name 'Initialize Component' is not declared Error When I create A new App

 HI ,

I'm using VS2008 and SL3. I 'm trying to create a new Silverlight Application with Ria Services support.

But when I create from the template the app I'm getting in the error list the InitializeComponent Error.

I haven't done anything ,meaning by this mixing with namespaces or even add a single button. Just left the defaults.

And I got the error. If I run the app I'm getting from my IE8 that I need to configurre the webserver settings. Why my IIS is configured with the nessacary MIME types. I don't know if it is much of a help but everything started behaving strangelly after installing the Last IE8 update which was released on 11/3/2009.

I have tried to uninstall Silverlight and Install but still the error remains.

I have installed SP1 for VS in my machine. 

What should I do ? Any ideas ?

 Can anyone of you MVPs has an answer ?

 

thank you
zkar

Ardman
Ardman

Contributor

Contributor

3408 points

938 Posts

Re: Name 'Initialize Component' is not declared Error When I create A new App

Try doing the following to get more details:

  1. Open Debug->Exceptions...
  2. Check "thrown" option on  "Commn Language Runtime Exceptions"
  3. Click "OK"

zakkar
zakkar

Member

Member

14 points

67 Posts

Re: Re: Name 'Initialize Component' is not declared Error When I create A new App

Hi and thank you for your answer.

Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: Could not download the Silverlight application. Check web server settings    

The above is what I got from IE8. I google for that error and it says about the MIME in IIS. But I have all these configured. I have the mime for xap,xaml and xasb (If I remember correctly).

Why I got the error although my IIS is configured ?

Is there any solution for that ?

thank you
zkar

zakkar
zakkar

Member

Member

14 points

67 Posts

Re: Re: Name 'Initialize Component' is not declared Error When I create A new App

Not to forget .

I have windows vista business and IIS 7

thank you
zkar

Min-Hong Tang - MSFT
Min-Hong...

Contributor

Contributor

3562 points

400 Posts

Re: Re: Name 'Initialize Component' is not declared Error When I create A new App

Hi,

   Based on my experience, could not download xap error's probable causes are:

  1. Did not configure iis(It seems you have wiped out this possibilty). 

  2. Mistype of the xap file's name(I've done that before,,,,)

  3.SL application did not build successfully.

  You can give these a try. Hope it helps you.

Best Regards

Min-Hong Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities