![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | App.xaml - StartupUri attribute error when pointing to another folder I'm new to WPF in .NET 3.0 so I decided to dive in and take a look. Didn't get very far before running into a problem though. ---- Problem ----- I get an error from the StartupUri attribute in the App.xaml that says: Value 'NewFolder1/Window1.xaml' cannot be assigned to property 'StartupUri'. ---- How to reproduce ---- 1. Open up a WPF project in VS 2005 on XP. 2. Add a folder to the root directory with the default folder name ('NewFolder1'). 3. Add a new Window (WPF) to the new folder with the default name 'Window1.xaml'. 4. Close all open documents. 5. Open App.xaml. 6. Change StartupUri attribute to 'NewFolder1/Window1.xaml'. 7. Press F5 to run application. You should see Window1.xaml appear with no problems. 8. Now double-click 'NewFolder1/Window1.xaml' to open it up in Design view. This is when the error gets generated in my Error List window. I also cannot open up ANY form in Design mode anymore, just Xaml mode. When I try to open a xaml window in Design mode I get a screen that says: "Whoops! Visual Studio has encountered an error reading the designer file. The errors are shown in the task list. Make appropriate changes to the designer file and then click on the Design button to try again." Here's the funny thing, I can drag and drop the App.xaml into the same directory as the window I set as the StartupUri to fix the error. But the reason I'm posting this is to see if this is a common error or if perhaps I don't have the latest version of something. Thanks, Mark Moeykens ---- What I'm running ----- I'm using Visual Studio 2005 on Windows XP and I've installed the following: Microsoft® .NET Framework 3.0 Redistributable Package (ver. 3.0 Publishes 11/21/2006) Microsoft® Windows® Software Development Kit for Windows VistaT and .NET Framework 3.0 Runtime Components (ver. 6.0.6000 Published 11/4/2006) Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP (Published 11/6/2006) |
My System Specs![]() |
| | #2 (permalink) |
| | RE: App.xaml - StartupUri attribute error when pointing to another fol Hi Mark The Designer version which you are using is a very old CTP of the WPF designer for Visual Studio. We are no longer updating the Visual Studio Extensions for Visual Studio 2005 which support WPF and WCF; instead you need to get hold of a copy of Visual Studio 2008 Beta 2, which not only fixes the bug you are seeing and many others, it introduces a wide range of new features which we hope will assist you in building WPF applications. You can download Beta 2 here: http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx The WPF designer is present in all the SKUs including the Express editions, If you do choose to use it, we'd love to hear your feedback on the designer - please post it to our Forums on MSDN here: http://forums.microsoft.com/MSDN/Sho...D=169&SiteID=1 Thanks Mark Wilson-Thomas Program Manager, WPF Designer Team, Visual Studio "Mark Moeykens" wrote: > I'm new to WPF in .NET 3.0 so I decided to dive in and take a look. Didn't > get very far before running into a problem though. > > ---- Problem ----- > I get an error from the StartupUri attribute in the App.xaml that says: > Value 'NewFolder1/Window1.xaml' cannot be assigned to property 'StartupUri'. > > ---- How to reproduce ---- > 1. Open up a WPF project in VS 2005 on XP. > 2. Add a folder to the root directory with the default folder name > ('NewFolder1'). > 3. Add a new Window (WPF) to the new folder with the default name > 'Window1.xaml'. > 4. Close all open documents. > 5. Open App.xaml. > 6. Change StartupUri attribute to 'NewFolder1/Window1.xaml'. > 7. Press F5 to run application. You should see Window1.xaml appear with no > problems. > 8. Now double-click 'NewFolder1/Window1.xaml' to open it up in Design view. > This is when the error gets generated in my Error List window. I also > cannot open up ANY form in Design mode anymore, just Xaml mode. When I try > to open a xaml window in Design mode I get a screen that says: > "Whoops! Visual Studio has encountered an error reading the designer file. > The errors are shown in the task list. Make appropriate changes to the > designer file and then click on the Design button to try again." > > Here's the funny thing, I can drag and drop the App.xaml into the same > directory as the window I set as the StartupUri to fix the error. > > But the reason I'm posting this is to see if this is a common error or if > perhaps I don't have the latest version of something. > > Thanks, > Mark Moeykens > > ---- What I'm running ----- > I'm using Visual Studio 2005 on Windows XP and I've installed the following: > > Microsoft® .NET Framework 3.0 Redistributable Package (ver. 3.0 Publishes > 11/21/2006) > Microsoft® Windows® Software Development Kit for Windows VistaT and .NET > Framework 3.0 Runtime Components (ver. 6.0.6000 Published 11/4/2006) > Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November > 2006 CTP (Published 11/6/2006) > > > > > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Cannot change attribute of a folder | Vista file management | |||
| Pointing Device Driver Error | Drivers | |||
| Temp Folder Attribute Problem | Vista file management | |||