WPF NotifyIcon must be used as x86 application

After a small configuration change, I spent a lot of time trying to figure out the following problem. In solution was simply that the WPF NotifyIcon (http://www.hardcodet.net/projects/wpf-notifyicon) requires the WPF application to be running as x86. Running as Any CPU will produce the following uninformative error:

“‘The invocation of the constructor on type ‘Hardcodet.Wpf.TaskbarNotification.TaskbarIcon’ that matches the specified binding constraints threw an exception.'”

Advertisements
This entry was posted in C# and tagged , . Bookmark the permalink.

One Response to WPF NotifyIcon must be used as x86 application

  1. kai Zhou says:

    great, that saved my time.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s