windows-7-x64

DriveInfo.GetDrives() not returning mapped drives when run as administrator

爱⌒轻易说出口 提交于 2019-12-19 03:41:27
问题 I'm creating a WPF app that among other things should check for the existence of several mapped drives. The code is straightforward: DriveInfo[] systemDrives = DriveInfo.GetDrives(); foreach (DriveInfo i in systemDrives) { if ((i.Name.Contains("V")) && (i.IsReady)) { result = true; break; } } The mapped drives are mapped fro all users. The code above works fine when run as a regular user, however is Visual Studio 2010 is run as administrator the GetDrives method only returns the Fixed drives

JRE_HOME variable missing with Tomcat (win7)

☆樱花仙子☆ 提交于 2019-12-18 19:27:31
问题 I installed tomcat and Apache http-servers like two weeks ago. I got it running and I was able to run the JSP-pages from another computers. I had a little pause and now that I'm trying to run the system it doesn't work. I can access the default index-page in the http://[my-IP-address]:8080 but cannot access the jsp folder's pages, not even .html files. It gives me 503 service temporarily unavailable. Not even the localhost seems to work.I can't recall if the Tomcat server needs to be started

Error: An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll

南笙酒味 提交于 2019-12-18 16:56:08
问题 This is the part that crashes and gives me this error is when I try to copy a file to a certain location. string startupDirectory = "C:\\Users\\Tyler\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"; File.Copy(startupDirectory, "Startup.exe"); I have read online and tried administrator rights and have created an "app.manifest" file: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <requestedExecutionLevel level="highestAvailable" uiAccess="false"

Unable to start Genymotion virtual device, incompatible CPU

时间秒杀一切 提交于 2019-12-18 12:03:41
问题 The first time I ran Genymotion virtual device, it had worked. But when I tried running it today, I got this error message What may have changed from the last time I used it? Will be grateful for any solutions that I can get. Thanks. My Device Info: Dell XPS L502X Sandy Bridge motherboard Intel Core i5-2410M @2.30 GHz Windows 7 Professional 64-bit 回答1: You need to turn virtualization on. Reboot the notebook. Instantly press F10 to enter BIOS settings (or F2 depending on your PC) Check the

Updating file permissions with git-bash on Windows 7

江枫思渺然 提交于 2019-12-17 22:45:29
问题 How do I update file permissions with git-bash on Windows 7? I've tried the following without success: $ ls -al scripts/script.sh -rw-r--r-- 1 myUid Administ 70 Sep 8 11:24 scripts/script.sh $ git update-index --chmod=+x scripts/script.sh $ ls -al scripts/script.sh -rw-r--r-- 1 myUid Administ 70 Sep 8 11:24 scripts/script.sh $ chmod +x scripts/script.sh $ ls -al scripts/script.sh -rw-r--r-- 1 myUid Administ 70 Sep 8 11:24 scripts/script.sh 回答1: You are probably using NTFS or FAT32 on Windows,

“Could not find Java SE Runtime Environment.” after installing Java

寵の児 提交于 2019-12-17 18:55:17
问题 I was trying to set up Eclipse for trying my hand at Android app dev. I downloaded Eclipse and tried to run it... discovered I needed Java JDK. Googled and found JDK 7u40 (jdk-7u40-windows-x64.exe) and installed it. The install seemed to have gone dandy but when I tried to run Eclipse I got an error as well as if I try java version in cmd. Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment.

Git credential helper - update password

ε祈祈猫儿з 提交于 2019-12-17 15:19:15
问题 I'm currently using GitHub over HTTPS and have the latest version of Git installed (1.9.0) along with the Git credential helper on Windows 7. On setting up my environment, I told git-credentials to permanently remember my username and password. I've recently updated my GitHub password via the website and I'm now no longer able to push/pull/fetch, etc. How I would go about updating my password on git-credentials helper on Windows 7? 回答1: None of these answers ended up working for my Git

How can I create a local multi-node Cassandra cluster on Windows 7 64 bit?

自作多情 提交于 2019-12-17 13:40:14
问题 I am looking for a set of instructions to create a local multi-node Cassandra 2.x cluster on a Window 7 64 bit PC. It should preferably use CCM “Cassandra Cluster Manager” and allow management using DataStax OpsCenter I followed the instructions in “Getting Started with Apache Cassandra on Windows the Easy Way” but they are for a single node cluster. EDIT: I got stuck on deploying OpsCenter agents on each node using CCM, any ideas? 回答1: Articles used for this tutorial: CCM 2.0 and Windows

Visual Studio 2013 runs project twice

喜夏-厌秋 提交于 2019-12-17 12:43:08
问题 When I press the "Local Windows Debugger" button when working on any basic C++ project in Visual Studio 2013, the console opens and the program outputs, but when the console closes, another console opens, the UI changes slightly and the program outputs again. Steps to reproduce: Create a new C++ project Inside the "Source Files" directory of the new project, create a file named "main.cpp" Put a basic hello world program into the file: #include &ltiostream&gt using namespace std; int main() {

Can't connect to MySQL server on '127.0.0.1' (10061) (2003)

怎甘沉沦 提交于 2019-12-17 08:25:08
问题 I know this question was asked a lot before but I tried some of the solutions which were given and nothing worked.. I have downloaded MySQL Workbench 6.1 on my windows 7 x64 and now as I want to start and do a simple DB I set a new MySQL Connection and let it as default the Hostname, port and the username I just set the name of the connection. In the beginning it was showing down in the action output that Could not connect.Server may not be run and in the msg part it was written Can't connect