Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Problems with VS 2008 Silverlight
4 replies. Latest Post by hariram.p@live.in on March 9, 2009.
(0)
GSMR
Member
0 points
4 Posts
01-02-2009 6:13 PM |
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
All-Star
16210 points
2,471 Posts
01-02-2009 6:28 PM |
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?
01-02-2009 6:44 PM |
Nope.
Is it possible that a required .NET assembly is missing?
01-02-2009 6:45 PM |
Nope. I can design the XAML page and all that, but the errors come up whenever I try to build it.
hariram....
181 points
50 Posts
03-09-2009 1:46 PM |
Could you please put the extra of your xaml files which will have the namespace.
Thanks
Hari