Option Strict On disallows implicit conversions

You may receive an error message that resembles the following when you try to compile a Windows Presentation Foundation (WPF) application in Microsoft Visual Basic 2008:

Option Strict On disallows implicit conversions from 'System.Windows.Application' to 'WpfApplication1.Application'.

This issue occurs if the value of the Option Strict statement is "On" at the project level.

To resolve this issue, download an updated WPF template. To obtain the updated template, visit the following Microsoft Web site:

http://go.microsoft.com/fwlink/?LinkId=105130 (http://go.microsoft.com/fwlink/?LinkId=105130)

Important You do not have to unzip the compressed file with a .zip file name extension to install the updated template. To install the updated template, put the .compressed file with a .zip file name extension in the \Visual Studio 2008\Templates\ProjectTemplates\Visual Basic folder, and then restart Visual Studio 2008.
After you install the updated template, the updated template appears in the New Project dialog box in the My Templates section. This section is located under the Visual Studio installed templates section.

Posted in: problems and solutions | Tags: new project visual studio disallows implicit conversions visual basic 2008 visual studio installed templates my templates