The proper type library could not be found in the system registry (VS2012 RC) - visual-studio-2012

I installed the 2012 RC on may 31, everything worked fine until today when I tried to install the TFS Power Tools Beta for TFS 11. Now every time I open VS2012 RC I'm greeted with this message:
"The proper type library could not be found in the system registry.
An Attempt to repair this condition failed because you do not have the permissions to write to the system registry or because the type library could not be loaded."
...
Every time I run VS2012 as a non admin user I get the warning. I uninstalled the Power Tools, repaired VS2012 and nothing.
I launched Process Monitor and found this:
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{65074F7F-63C0-304E-AF0A-D51741CB4A8D}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{65074F7F-63C0-304E-AF0A-D51741CB4A8D}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8} ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8} ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\ProxyStubClsid32 ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\ProxyStubClsid32 ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegCreateKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegCreateKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
But I'm stuck, I don't know how to fix this permanently, any ideas?
Thanks

I had to manually give "Full Control" permission to my user in the registry.
Right click HKEY_CURRENT_USER, click permissions... and add your user with the "Full Control" option selected.

Related

how resolve fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.6SUNyz': Permission denied

<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.OVntXJ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.DygYJ9': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.6SUNyz': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.pOdNNZ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.cGU75p': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.uELMoQ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.xQyTHg': Permission denied
This is a long-standing bug in Intellij's fish integration.
Deactivate it in Tools -> Terminal -> "Shell Integration".

Running Derby as a server on Linux using JDK11

I am at my wits end!
I have a minimal install of Ubuntu Server 18.04 and OpenJDK 11 (headless).
Downloaded, to a local folder are the java 9+ binaries for Derby (db-derby-10.15.2.0-bin)
Path and Environment settings are all correct!
When I start the server startNetworkServer -h 0.0.0.0, I get an error when doing a simple connect using the ij command line tool
ij> connect 'jdbc:derby://localhost:1527/dbname;create=true';
ERROR XJ041: DERBY SQL error: ERRORCODE: 40000, SQLSTATE: XJ041, SQLERRMC: Failed to create database 'dbname', see the next exception for details.::SQLSTATE: XBM01::SQLSTATE: XJ001
The derby.log file makes reference to:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.SOURCE_DATE_EPOCH")
Looking further into this error, I learned that I somehow need a security.profile. I found this website that seemed to be the answers to my problems. https://www.javacodegeeks.com/2020/04/apache-derby-database-jvm-security-policy.html
Following these pretty straight-forward instructions, I get:
java.security.AccessControlException: access denied
org.apache.derby.shared.common.security.SystemPermission( "engine", "usederbyinternals" )
For the next person who has this strange problem (it seems to happen with some regularity, here's a simple workaround, copied from this FAQ page at Chalmers Institute of Technology:
Q: When we try to create a database in Derby and the database explorer in NetBeans, we get one or more of the following error(s):
An error occurred while creating the database:
java.sql.NonTransientConnectionException: DERBY SQL error: ERRORCODE:
40000, SQLSTATE: XJ041, SQLERRMC: ...
Caused by: java.security.AccessControlException: access denied
("java.lang.RuntimePermission" "getenv.SOURCE_DATE_EPOCH")
A: This is some kind of missconfiguration in the JVM with a very aggressive security policy that doesn't allow applications to fetch the time on the system (since epoch). The solution is to edit ~/.java.policy or [java.home]/lib/security/java.policy and add the following:
grant {
permission java.lang.RuntimePermission "getenv.SOURCE_DATE_EPOCH", "read";
};
If you are on Windows you can read about where this policy file is supposed to be located here;
https://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html
Apache-Derby is a database management system prepared for a multi-user environment, therefore, when you execute the startNetworkServer -h 0.0.0.0 instruction, you are telling it by default to take certain security into account, and that is why it does not let you do an insecure connection such as ij> connect 'jdbc:derby://172.16.17.31:1527/BBDD_server;create=true';
because you are connecting without specifying username and password, so you should either connect by specifying username + password, or start the server without any security:
startNetworkServer -h 0.0.0.0 -noSecurityManager
More help:
https://db.apache.org/derby/docs/10.4/adminguide/tadminnetservopen.html
https://db.apache.org/derby/docs/10.4/adminguide/tadminnetservbasic.html

Permission error when using sparklyr with Hadoop

I am trying to get sparklyr to work on a cluster with Hadoop. When I run sc <- spark_connect(master = "yarn-client", version = "2.8.5")
I get this error message:
Error in force(code) :
Failed during initialize_connection: org.apache.hadoop.security.AccessControlException: Permission denied: user=rstudio, access=WRITE, inode="/user":hdfs:hadoop:drwxr-xr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:219)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:189)
...
The user rstudio is what I created for RStudio server. How do I fix the permissions to get it to work?
Using hadoop superuser (looks like its hdfs in your case), you need to create an HDFS home directory (/user/rstudio) for your rstudio user, and change its ownership so that rstudio is the owner. See http://www.hadooplessons.info/2017/12/creating-home-directory-for-user-in-hdfs-hdpca.html?m=1 for details.

Windows Subsystem for Linux Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion

After a Windows 10 update, I'm getting this error while starting WSL Ubuntu 18.
I have tried to restart a couple of times, but the error is still there
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800703fa
Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion.
Press any key to continue...
The solution has been provided by Github's user #friedwm on this issue comment:
https://github.com/Microsoft/WSL/issues/2576#issuecomment-380823857
The solution is to restart LxssManager from services.msc, or start it if it is not running.
Settings > Apps&Features > select Ubuntu > Advanced options > Repair

Visual Studio Locks Up with High CPU Usage

I am struggling with an issue with Visual Studio 2012 Ultimate. It periodically becomes unstable and consumes high CPU usage.
It installed sysinternals and discovered that it is hitting the same windows registry keys, over and over and over again.
1:47:35.7102365 AM devenv.exe 2560 RegOpenKey HKLM\Hardware\DeviceMap\Video SUCCESS Desired Access: Read
1:47:35.7102519 AM devenv.exe 2560 RegQueryValue HKLM\HARDWARE\DEVICEMAP\VIDEO\\Device\Video0 SUCCESS Type: REG_SZ, Length: 202, Data: \Registry\Machine\System\CurrentControlSet\Control\Video\{EC5CE5A2-F3F0-4FBA-B911-D6E9CEE6A3B4}\0000
1:47:35.7102789 AM devenv.exe 2560 RegCloseKey HKLM\HARDWARE\DEVICEMAP\VIDEO SUCCESS
1:47:35.7102990 AM devenv.exe 2560 RegOpenKey HKLM\Hardware\DeviceMap\VIDEO SUCCESS Desired Access: Read, Maximum Allowed
1:47:35.7103122 AM devenv.exe 2560 RegQueryValue HKLM\HARDWARE\DEVICEMAP\VIDEO\MaxObjectNumber SUCCESS Type: REG_DWORD, Length: 4, Data: 4
1:47:35.7103297 AM devenv.exe 2560 RegCloseKey HKLM\HARDWARE\DEVICEMAP\VIDEO SUCCESS
1:47:35.7103477 AM devenv.exe 2560 RegOpenKey HKLM\Hardware\DeviceMap\Video SUCCESS Desired Access: Read
1:47:35.7103601 AM devenv.exe 2560 RegQueryValue HKLM\HARDWARE\DEVICEMAP\VIDEO\\Device\Video1 SUCCESS Type: REG_SZ, Length: 202, Data: \Registry\Machine\System\CurrentControlSet\Control\Video\{EC5CE5A2-F3F0-4FBA-B911-D6E9CEE6A3B4}\0001
1:47:35.7103845 AM devenv.exe 2560 RegOpenKey HKLM\System\CurrentControlSet\CONTROL\VIDEO\{EC5CE5A2-F3F0-4FBA-B911-D6E9CEE6A3B4}\0001 REPARSE Desired Access: Read
1:47:35.7104033 AM devenv.exe 2560 RegOpenKey HKLM\System\CurrentControlSet\CONTROL\VIDEO\{EC5CE5A2-F3F0-4FBA-B911-D6E9CEE6A3B4}\0001 SUCCESS Desired Access: Read
1:47:35.7104178 AM devenv.exe 2560 RegCloseKey HKLM\HARDWARE\DEVICEMAP\VIDEO SUCCESS
1:47:35.7104290 AM devenv.exe 2560 RegQueryValue HKLM\System\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000\PruningMode NAME NOT FOUND Length: 52
1:47:35.7104422 AM devenv.exe 2560 RegCloseKey HKLM\System\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000 SUCCESS
1:47:35.7104580 AM devenv.exe 2560 RegOpenKey HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10 SUCCESS Desired Access: Query Value, Maximum Allowed
1:47:35.7104824 AM devenv.exe 2560 RegQueryValue HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10\HardwareID BUFFER OVERFLOW Length: 271
1:47:35.7104965 AM devenv.exe 2560 RegCloseKey HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10 SUCCESS
1:47:35.7105128 AM devenv.exe 2560 RegOpenKey HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10 SUCCESS Desired Access: Query Value, Maximum Allowed
1:47:35.7105346 AM devenv.exe 2560 RegQueryValue HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10\HardwareID SUCCESS Type: REG_MULTI_SZ, Length: 292, Data: PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09, PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D, PCI\VEN_8086&DEV_0A16&CC_030000, PCI\VEN_8086&DEV_0A16&CC_0300
1:47:35.7105526 AM devenv.exe 2560 RegCloseKey HKLM\System\CurrentControlSet\Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_90C3104D&REV_09\3&11583659&0&10 SUCCESS
This loops, hundreds, if not thousands of times and doesn't appear to end until I END TASK on Visual Studio. Any ideas why this is happening?
My machine is a core i7 with 8GB RAM. I'm not currently running many other applications. Memory Usage is 5.6 GB / 7.9 GB. Disk usage is low and stable. Just CPU is going nuts!

Resources