I am getting this error while deploying or debugging windows phone 8.1 app.
Windows Phone Emulator is unable to create a differencing disk: A
virtual disk support provider for the specified file was not found.
That error means that *.vhd files must not be encrypted and must not be compressed.
Then you have to uncompress the folder that containt *.vhd files and try again.
Command line to launch emulator:
C:\Windows\system32>"C:\Program Files (x86)\Microsoft XDE\8.0\xde.exe" /vhd "C:\
Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Emulation\Images\flash.vhd
" /name WP8-SDK
According to the MS forums you might be able to get the emulator to run with the following command:
"C:\Program Files (x86)\Microsoft XDE\8.0\xde.exe" /vhd "C:\WP8\Images\Flash.vhd" /name WP8-SDK
That command might also give you more output as to why the emulator won't start.
I was able to resolve this by running up the Hyper V Manager and starting the VM manually.
I restarted the machine first, launched Hyper V Manager, then clicked Start on the VM (WVGA 4 inch 512MB). It started ok. I then closed it, and it then worked from VS2013.
It may be possible if you've enabled file compression on your disk..
Go to properties of the folder > General > Advanced
and uncheck the "Compress contents to save disk space" checkbox.
C:\ Program Files (x86)\Microsoft SDKs\Windows Phone\
I hope it will help you.
Thanks,
Suraj
http://codeblock.in
Related
This is a self-answered post documenting a problem I encountered:
When I run cuda_11.5.0_496.13_win10.exe as administrator on windows 10 and CUDA Setup extracts the installer to my computer, it leaves me the error:
CUDA Setup Package: error
Could not create folder “C:\Users[myName]\AppData\Local\Temp\CUDA\CUDADevelopment”. Access is denied.
I’ve tried various versions from CUDA 9.0-11.5 and they all fail; as does extracting to a different folder. I have drivers installed and they work properly (I’ve checked them through OpenGL, and CUDA-based python libraries with their own CUDA installations use GPU successfully).
rename the .exe file to a .7z file (e.g. cuda_11.5.0_496.13_win10.exe → cuda_11.5.0_496.13_win10.7z). I used the linux mv command.
Unzip the file with 7zip or winzip into any temporary folder.
run setup.exe (I ran as admin)
I am working through a Rails tutorial that requires creating a database in MySQL. From the command prompt, I am unable to access both Rails and MySQL within the same session. I'm having to complete steps in one program, then change the path, restart the computer, and continue in the other application.
I've found a solution that worked for others at:
Fixing 'PATH' in Environment Variables in Windows 7 for multiple applications
This has led me to try this path:
C:\Program Files\MySQL\MySQL Server 5.7\bin; C:\Ruby23-x64\bin; C:\Program Files (x86)\Microsoft VS Code\bin
For some reason, it's not working for me. My laptop seems only to recognize the first application mentioned in my PATH variable. If I put the MySQL part first, then Command Prompt doesn't recognize Rails, and vice-versa.
Thank you in advance for your help.
You cant have spaces between each path like:
C:\Program Files\MySQL\MySQL Server 5.7\bin; C:\Ruby23-x64\bin; C:\Program Files (x86)\Microsoft VS Code\bin
remove spaces
C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Ruby23-x64\bin;C:\Program Files (x86)\Microsoft VS Code\bin
I have install Windows 8.1 and after that I install Visual Studio Express 2013, which includes Update 2 RC.So when I run any application then it gives me the error
"File 'Windows.props' not found"
I don't know why it is happening. I search a lot about this error but can't find any solution.Please help me I have spend two days to find this solution.
Edit
Also there is not Emulator in the Device list.I think error is due to this once.I have download the 8.1 Emulator but cant find in the VS 2013 Emulator list.
Some basic checks you need to perform to get anywhere close to a resolution.
The Windows.props file is a build file that's used by MSBuild.exe when it builds a Windows Phone app. The normal install path is C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\Windows.props. Use Windows Explorer to check if the file is present.
Then there is a line in the main .targets file that includes it. It tries to locate the file in the $(TargetPlatformWinMDLocation) directory. You can see the value of this macro by increasing the build verbosity. Tools + Options, Projects and Solutions, Build and Run. Change the "MSBuild project build output verbosity" setting to Detailed. Use Build + Rebuild on your project. Scroll back the Output window and locate the lines that resemble this:
1>TargetPlatformSdkMetadataLocation = C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral
1>TargetPlatformSdkPath = C:\Program Files (x86)\Windows Phone Kits\8.1\
1>TargetPlatformSdkRootOverride =
1>TargetPlatformVersion = 8.1
1>TargetPlatformWinMDLocation = C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral
Tell us if you see anything different.
This path is read from the registry. Startup Regedit.exe and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.1\Install Path as well as HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1\Install Path.
Verify that you see a value listed in those keys with the name "Install Path" and that it contains the value "C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\".
Extracts from msdn discussion:
check for the existence of a SYSTEM level environment variable called windowsSDKDir and try removing it.
For this Follow these steps:
Press Windows Key + X and select System.
In the System dialog click on "Advanced system settings" then click "Environment Variables" on the advanced tab.
Then look for the environment variable I mentioned
try removing it
If this not works for you ,you must re-install, Windows Software Development Kit (SDK) for Windows 8.1 this must solve your problem.
The issue seems to be bound to the VS2013 Update4. I had no issues before, but after this, I needed to Install the Windows Software Development Kit for Windows 8.1 as Ludwo suggested.
I used function 'Repair' in control panel -> programs and functions -> Windows Software Development Kit for Windows 8.1 ->Change and solved this problem.
In my case I had to install Windows Software Development Kit (SDK) for Windows 8.1 (Not Windows Phone SDK!) to fix it. I have VS2013 update 4
have you checked for the existence of a SYSTEM level environment variable called windowsSDKDir? and try removing it?(make a note of its value first in case you need to re-instate it at some point). For some this appears to have been causing the error. It is not clear at this stage what creates this.
I am making an application and I want to make it installable on the user's desktops using chrome URL shortcut. Therefore, is there a universal path to the chrome.exe that can launch my app on all Windows versions ( XP, Seven and vista )
Chrome installs by default to the User's AppData Local folder:
XP:
C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome
Vista:
C:\Users\UserName\AppDataLocal\Google\Chrome
Windows 7:
C:\Program Files (x86)\Google\Application
Win 7/8/10/11, (either):
- C:\Program Files (x86)\Google\Chrome\Application
- C:\Program Files\Google\Chrome\Application
Best bet is to use some OS detection code, then use an environment variable to detect the User's AppData folder (i.e. %LOCALAPPDATA%) or the ProgramFiles folder, and then append the difference in OS's to the end of the variable.
You can look in the Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe
The registry option might be the best, but the one suggested in the other answer didn't exist in my computer (Windows 10 64-bit). I think the "Uninstall" key might be more robust. If it didn't exist, users would have a hard time uninstalling Chrome. The following keys give you the install location, you'll need to append "\chrome.exe" to get the full path to the executable:
Chrome:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome\InstallLocation
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome\InstallLocation
Chrome Canary:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome SxS\InstallLocation
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome SxS\InstallLocation
Win 7 32 bit:
c:\Program Files\Google\Chrome\Application\chrome.exe
Win 7 64 bit (or W10 64b):
c:\Program Files (x86)\Google\Chrome\Application\chrome.exe
(which is different from the preceding answers and comments).
Clay Nichols suggestion to look in the registry is of course recommended.
Please do not edit!
Someone "edited" this answer saying 32 bit paths are always (x86), showing a total misunderstanding of the question and the answer! The path c:\Program Files (x86)\ does not even exist on a 32 bit machine (unless you manually add it youself); both of the above are tested answers.
For Windows users chrome.exe could have been be installed in several places based on the user's Window's edition (64 or 32-bit) and when the user installed Chrome it:
Current Locations
It'll most likely be in either:
C:\Program Files (x86)\Google\Chrome\Application
For 32-bit Chrome
Or 64-bit edition if you *installed Chrome before 2020. See: Windows Chrome 64-bit prepared to install into Program Files
C:\Program Files\Google\Chrome\Application
for Chrome 64-bit edition *(the default install location since 2020)
C:\Program Files\Google\Chrome\Application
For 32 bit Chrome on Windows 32-bit (Program Files (x86) is used only on windows 64-bit to denote 32-bit applications)
*Much confusion is caused by the fact that Chrome has been 64 bit since 2014, but Google still used Program Files (x86) until 2020 as the install location. And if you installed Chrome before 2020 then it will continue to live in the Program Files (x86) directory:
Browsers installed under "C:\Program Files (x86)" remain in that
directory and will continue to be updated. They must be uninstalled
first to be reinstalled under "C:\Program Files".
Legacy Locations
Chrome used to install to the user folder for Vista and XP:
XP:
C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome
Vista:
C:\Users\UserName\AppDataLocal\Google\Chrome
I had a .mht file that I would like to open in chrome, and found that just running:
chrome.exe "path-to-file.mht"
would work just fine! No need to find the path :)
I've been using Flashdevelop (version 4.4) for some time now with zero problems. I recently reinstalled Windows 7 however, and after installing Flashdevelop it is demanding Java 1.6 and won't compile without it. Let me be more specific, here is the error I get when I try to compile a simple HelloWorld-type test:
"Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\marc\Documents\DeleteMe\DeleteMe\DeleteMe.as3proj" -ipc 01be003c-6cb5-4d0b-9c35-c59dd2ea7a19 -version "4.6.0; 3.3" -compiler "C:\Program Files (x86)\FlashDevelop\Tools\flexsdk" -library "C:\Program Files (x86)\FlashDevelop\Library" -cp "C:\Program Files (x86)\Java\jdk1.6.0_34\bin" -cp "C:\Program Files (x86)\Java\jdk1.6.0_34"
Building DeleteMe
mxmlc -load-config+=obj\DeleteMeConfig.xml -debug=true -incremental=true -swf-version=16 -o obj\DeleteMe634829909556672047
Starting java as: C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe;\bin\java.exe
Unable to start java.exe: The system cannot find the file specified
Could not compile because the fcsh process could not be started.
Build halted with errors (fcsh).
INITIALIZING: Failed, unable to run compiler
Done(1)"
The GlobalClasspath setting for the Java 1.6 JDK is set to: C:\Program Files (x86)\Java\jdk1.6.0_34\bin
I have also set my JAVA_HOME environment variable to the same location as well. Might I be neglecting to set another environment variable?
JAVA_HOME should be
C:\Program Files (x86)\Java\jdk1.6.0_34
and not
C:\Program Files (x86)\Java\jdk1.6.0_34\bin
FlashDevelop currently doesn't support that your JAVA_HOME environment var contains several paths (C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe, \bin\java.exe).
Modify it to only indicate the first path (C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe).
As someone who was dealing with this, I just found an answer that doesn't involve mucking with the PATH variables.
Go into your Flex SDK, /bin directory, look for the JVM config file conveniently named jvm.config
Inside, there is a param 'java.home' which, if left empty, will cause it to search for it's own value. Enter in the main path to the JRE - in my case,
java.home=C:\Program Files\Java\jre1.6.0_07\
I found mine by going to "Control Panel > Java > Java tab > View... button" to see all the installed versions and their paths
I prefer this method because I feel like you shouldn't have to modify settings on your whole system to get 1 program to work, if you have the option instead to just modify that program's settings.
jvm.config in C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\bin\jvm.config is much more better than path variable.
Please avoid Path variable.
In jvm.config just set jre URL directory
java.home=C:\Program Files\Java\jre1.6.0_07
May be you update the Java, last version of Java ask you to delete older version. Then go into the file
C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\bin\jvm.config
and replace
java.home=C:\Program Files\Java\jre1.6.0_07\
by the folder were is your new version
java.home=C:\Program Files (x86)\Java\jre1.8.0_25\