Posts

Showing posts from February, 2009

Visual Studio 2008 - Make sure the application for the file type (.xaml) is installed - Quick Fix

I recently started getting the following error message when attempting to open the design view of a XAML document in VS2008: Make sure the application for the file type (.xaml) is installed I haven't yet been able to determine the root cause of the issue (I run SP1 of both the .NET Framework and Visual Studio itself and use this functionality every day), though there is a pretty straightforward fix. Navigate to the IDE folder of your VS2008 installation (for me: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\) in DOS and run the following: devenv.exe /setup Reopening the development environment should result in the return of this functionality.

Project Conversion Woes: A project with that name is already opened in the solution

Tonight I decided to play with the project conversion (C# to VB.NET) capabilities of the wonderful #develop. For the uninitiated, #develop is an open source .NET IDE which is surprisingly robust, feature rich and lightweight. It has many cool features, one of which is the ability to convert entire projects (not solutions though) between languages. I really can’t recommend this app enough – it can be found at the following link . I set my project up to convert and it ran smoothly. There were a few error messages (could not convert C# yield statement to VB.NET, anonymous method issues etc.) but pretty straightforward stuff and  the conversion ran extremely quickly. I attempted to add the newly created/converted vb.net project to a newly created VB.NET solution in Visual Studio, only to run into the following message: A project with that name is already opened in the solution It took some research but everything I read pointed to the ProjectTypeGuids in the vbproj file. Mine loo

.NET – Modal Dialog Issue

Today I finally got to the bottom of a niggling issue that has been bugging me for about a week. I had some downtime and debugged my way through it. The error message was as follows: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application Like many developers I’ve gotten into the bad habit of googling before investigating and the only hits for this error message were related to ASP.NET applications where users were attempting to open a Winforms dialog from an ASP.NET page… My setup was a little different – a WPF application connected to a server-side remoting service. After running out of ways to phrase my search term I went back to basics and ran the debugger a few times only to discover the root cause…similarly to the ASP.NET issue, someone had stuck a messagebox call in a catch block in our server-