Posts Tagged visualstudio
Windows Phone Emulator Is Doing A Complete OS Boot
I recently installed the Windows Phone 7 Development Tools on my Acer AspireOne netbook. Visual Studio works pretty well on this machine. But unfortunately when running my app for the first time the emulator started up and then just sat there with a message that said, “Windows Phone Emulator Is Doing A Complete OS Boot”.
After reading some discussion about the problem online it seems that the emulator doesn’t work with some types of hardware virtualization. Apparently the AMD cpu in my netbook isn’t supported and there is no way to turn off the virtualization enhancements in the BIOS.
So I looked around and found the emulator config file. In the file is a setting to turn Hardware Assist off. I set the value to false, started up the emulator and now it works perfectly. It may not work too well if your app is CPU intensive like a game, but for my use it works fine.
Here is how to configure it:
- Open a command window and go to %LOCALAPPDATA%\microsoft\xde
- There will be a file similar to config_*.decfg
- Open the file in notepad and look for a line that looks like this:
<EnableHWAssist Reconfigurable="static" Type="bool">true</EnableHWAssist>
- Change “true” to “false”
- Save the file and start the emulator.
How to fix: error MSB6006: “aspnet_merge.exe” exited with code 1
One of the most annoying Visual Studio errors are the ones that don’t give you any details of what is wrong. This is one of those errors:
error MSB6006: "aspnet_merge.exe" exited with code 1
To fix it open a command line at the root of your project and enter this command:
msbuild /verbosity:detailed > output.txt
Now open output.txt and search for “MSB6006″. You’ll probably see the error right above the error line. This is the error that I usually get:
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type '<ClassName>' found in assembly 'App_Web_b6it0-k1'.
Usually when I get this error it is because I copied some files to create new pages but forgot to rename the classes. This causes naming conflicts because there are multiple classes with the same name. Just search your code for <ClassName> and you will probably find it defined in multiple places.