![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | VS WinFX web applications do not run properly "outside" of VS It appears that you need a "-debug" to be on the PresentationHost.exe command line for a XBAP to run properly, this is not the default configuration for file association. By run properly, if you have anything other than a XAML file (i.e. events... any code behind), it does not seem to recognize it. I have a button with a click event that changes the size of the button. It works fine inside of Visual Studio, but when I execute the app from windows (by double clicking on the XBAP file), it displays the page (not quite properly), and the click does nothing. I just started working with WinFX today, and haven't tried compiling the project as a finished build. This might make a difference in the result. -- Thanks, |
My System Specs![]() |
| | #2 (permalink) |
| | Re: VS WinFX web applications do not run properly "outside" of VS No, that is not the case. PresentationHost is launched with the -debug flag within Visual Studio, among other reasons, so that the application isn't inducted into the ClickOnce application store. If it were, you'd have to increment the version number with every build and 'convince' ClickOnce into thinking a newer version of the application is being launched. Not something you want to be doing during development. This is why within VS, the application isn't ClickOnce-deployed. You do not need the -debug flag for a browser-hosted WPF app in any other scenario. As to your browser-hosted WPF application, can you try something simpler such as displaying an image or text content in your XAML and see if the app launches fine? I haven't seen any issues with launching browser hosted apps with December CTP or even prior public releases. -- Ashish Shetty [MSFT] Program Manager, Windows Presentation Foundation (Avalon) Blog: http://nerddawg.blogspot.com --- This posting is provided "AS IS" with no warranties, and confers no rights. "Leicester B. Ford Jr." <LeiFordJr@online.nospam> wrote in message news:61AA9F80-4356-4D53-A574-583FB623A68E@microsoft.com... > It appears that you need a "-debug" to be on the PresentationHost.exe > command > line for a XBAP to run properly, this is not the default configuration for > file association. > > By run properly, if you have anything other than a XAML file (i.e. > events... > any code behind), it does not seem to recognize it. I have a button with > a > click event that changes the size of the button. It works fine inside of > Visual Studio, but when I execute the app from windows (by double clicking > on > the XBAP file), it displays the page (not quite properly), and the click > does > nothing. > > I just started working with WinFX today, and haven't tried compiling the > project as a finished build. This might make a difference in the result. > > -- > Thanks, |
My System Specs![]() |
| | #3 (permalink) |
| | Re: VS WinFX web applications do not run properly "outside" of VS Thanks for the reply, The content displays, but the event does not fire (i.e. Click on a button) when running directly outside of Visual Studio... within VS it works great. But it might be a problem with an installation that I have at home, since I tried it again at work, where I installed a fresh version... and it works. -- Thanks, "Ashish Shetty [MSFT]" wrote: > No, that is not the case. PresentationHost is launched with the -debug flag > within Visual Studio, among other reasons, so that the application isn't > inducted into the ClickOnce application store. If it were, you'd have to > increment the version number with every build and 'convince' ClickOnce into > thinking a newer version of the application is being launched. Not something > you want to be doing during development. This is why within VS, the > application isn't ClickOnce-deployed. > > You do not need the -debug flag for a browser-hosted WPF app in any other > scenario. > > As to your browser-hosted WPF application, can you try something simpler > such as displaying an image or text content in your XAML and see if the app > launches fine? I haven't seen any issues with launching browser hosted apps > with December CTP or even prior public releases. > > -- > Ashish Shetty [MSFT] > Program Manager, Windows Presentation Foundation (Avalon) > Blog: http://nerddawg.blogspot.com > --- > This posting is provided "AS IS" with no warranties, and confers no rights. > > > > "Leicester B. Ford Jr." <LeiFordJr@online.nospam> wrote in message > news:61AA9F80-4356-4D53-A574-583FB623A68E@microsoft.com... > > It appears that you need a "-debug" to be on the PresentationHost.exe > > command > > line for a XBAP to run properly, this is not the default configuration for > > file association. > > > > By run properly, if you have anything other than a XAML file (i.e. > > events... > > any code behind), it does not seem to recognize it. I have a button with > > a > > click event that changes the size of the button. It works fine inside of > > Visual Studio, but when I execute the app from windows (by double clicking > > on > > the XBAP file), it displays the page (not quite properly), and the click > > does > > nothing. > > > > I just started working with WinFX today, and haven't tried compiling the > > project as a finished build. This might make a difference in the result. > > > > -- > > Thanks, > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| MIcrophone's wont work. "Audio not working properly"? | Sound & Audio | |||
| "Provider cannot be found. It may not be properly installed Error --2146824582" | Network & Sharing | |||
| "Could not perform this operation because the default mail client is not properly installed" | Vista General | |||
| Search - Detail View - "Folder" is backwards - can't sort properly | Vista file management | |||
| Atbroker.exe "application failed to initialize properly" on remote desktop to vista | Vista General | |||