Skip to main content

Microsoft Silverlight

Problems with VS 2008 SilverlightRSS Feed

(0)

GSMR
GSMR

Member

Member

0 points

4 Posts

Problems with VS 2008 Silverlight

When I create a new silverlight project, I recieve the errors on both Page.xaml and App.xaml:

Error    1    Name 'InitializeComponent' is not declared.    D:\Documents and Settings\***\My Documents\Visual Studio 2008\Projects\SilverlightApplication5\SilverlightApplication5\App.xaml.vb    5    9    SilverlightApplication5


Error    2    Name 'InitializeComponent' is not declared.    D:\Documents and Settings\***\My Documents\Visual Studio 2008\Projects\SilverlightApplication5\SilverlightApplication5\Page.xaml.vb    5    9    SilverlightApplication5


This happens right away with the automatically generated code.  If I comment out both calls to InitializeComponent() I then get this error: 

Error    1    The 'extension' attribute must be specified on the 'compiler' tag. (D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 188)    D:\Documents and Settings\Govind\My Documents\Visual Studio 2008\Projects\SilverlightApplication5\SilverlightApplication5\App.xaml    1    1    SilverlightApplication5

 

Help please! I have tried reinstalling Silverlight but this has not solved the problem.

ken tucker
ken tucker

All-Star

All-Star

16210 points

2,471 Posts

Re: Problems with VS 2008 Silverlight

InitializeComponent is required so you can not comment it out the calls to the procedure.  If you build the app do the errors go away?

GSMR
GSMR

Member

Member

0 points

4 Posts

Re: Problems with VS 2008 Silverlight

 Nope.

 Is it possible that a required .NET assembly is missing?

GSMR
GSMR

Member

Member

0 points

4 Posts

Re: Problems with VS 2008 Silverlight

 Nope.  I can design the XAML page and all that, but the errors come up whenever I try to build it.

hariram.p@live.in
hariram....

Member

Member

181 points

50 Posts

Re: Problems with VS 2008 Silverlight

Could you please put the extra of your xaml files which will have the namespace.

Thanks

Hari

Thanks
Hari
---------------------------------------------
Dont forget to click "Mark as Answer" on the post that helped you.

My Site
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities