Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when running projects on Expression Blend 4

Whenever I try to run a project on Expression Blend 4 an error always appear.

The specified solution configuration "Debug|MCD" is invalid.Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p Configuration=Debug / p:Platform="Any CPU" or leave those properties blank to use the default solution configuration )

In some forums I've read that by deleting something on the registry will solve this issue but what I want to know is if it's safe to do that or if there are other ways to solve this error.

like image 348
Randel Ramirez Avatar asked Aug 09 '26 20:08

Randel Ramirez


1 Answers

It turns out that HP machines from the factory come with several global variables set for it’s own update software, including things such as “PCBRAND”. One of those variables are, you guessed it, PLATFORM.

In VS 2010 RC the build environment started respecting “Platform” as a compile time System variable. Therefore, because no such platform exists in your deployment configuration, it fails.

It’s a pretty simple fix, just delete the PLATFORM variable.

You need to do the following steps:

  • Right-mouse click "Computer"
  • Go to "Properties"
  • Click "Advanced System Settings"
  • Click "Environment Variables"
  • Under "System Variables" find "PLATFORM" and delete it.
  • Restart Visual Studio

Here’s hoping I saved you some time.

like image 82
Soroush Avatar answered Aug 13 '26 13:08

Soroush



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!