[Issue]: Build 201 as non-admin

When running VS.NET after installing build 201, I get an error when running
from a non-privileged account.

JetBrains.ReSharper.Util.InternalErrorException: An exception has occurred
---> System.Security.SecurityException: Requested registry access is not
allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitializationRequired(Boolean
value) in c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line 77
at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
111
at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte, AddIn
addIn) in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
at ReSharperAddIn.Startup() in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
45
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean)
in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
278 column 5
at ReSharperAddIn.Startup() in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
54 column 7
at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object, Array&)
in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148 column 3

Thinking that the problem was just a simple registration, I started VS.NET
with an admin account and tried again, receiving the same error.

--
Matt Berther
http://www.mattberther.com


6 comments
Comment actions Permalink

Hello Matt,

I'm afraid you currently have to have write access privileges to the
HKCU(or HKLM, depending on how you've installed ReSharper)\JetBrains\ReSharper
registry key in order for ReSharper to work correctly. So if you installed
ReSharper
from an admin account, and then run it from a non-admin account, you may
get this error.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When running VS.NET after installing build 201, I get an error when
running from a non-privileged account.

JetBrains.ReSharper.Util.InternalErrorException: An exception has
occurred
---> System.Security.SecurityException: Requested registry access is
not
allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable)
at
JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitializationR
equired(Boolean
value) in c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
77
at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
111
at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
AddIn
addIn) in
c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
at ReSharperAddIn.Startup() in
c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
45
--- End of inner exception stack trace ---
at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean)
in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
278 column 5
at ReSharperAddIn.Startup() in
c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
54 column 7
at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
Array&)
in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
column 3
Thinking that the problem was just a simple registration, I started
VS.NET with an admin account and tried again, receiving the same
error.

--
Matt Berther
http://www.mattberther.com



0
Comment actions Permalink

Hello Dmitry,

It's easy enough for me to add this permission, but do you think this will
be modified to use HKCU regardless of how it was installed?

--
Matt Berther
http://www.mattberther.com

Hello Matt,

I'm afraid you currently have to have write access privileges to the
HKCU(or HKLM, depending on how you've installed
ReSharper)\JetBrains\ReSharper
registry key in order for ReSharper to work correctly. So if you
installed
ReSharper
from an admin account, and then run it from a non-admin account, you
may
get this error.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> When running VS.NET after installing build 201, I get an error when
>> running from a non-privileged account.
>>
>> JetBrains.ReSharper.Util.InternalErrorException: An exception has
>> occurred
>> ---> System.Security.SecurityException: Requested registry access is
>> not
>> allowed.
>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
>> writable)
>> at
>> JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitialization
>> R
>> equired(Boolean
>> value) in
>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>> 77
>> at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>> 111
>> at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
>> AddIn
>> addIn) in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
>> at ReSharperAddIn.Startup() in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>> 45
>> --- End of inner exception stack trace ---
>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>> Boolean)
>> in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>> c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
>> 278 column 5
>> at ReSharperAddIn.Startup() in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>> 54 column 7
>> at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
>> Array&)
>> in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
>> column 3
>> Thinking that the problem was just a simple registration, I started
>> VS.NET with an admin account and tried again, receiving the same
>> error.
>> --
>> Matt Berther
>> http://www.mattberther.com


0
Comment actions Permalink

Hello Matt,

it seems you're right. I've submitted a request for this problem:

http://www.intellij.net/tracker/resharper/viewSCR?publicId=8083

Thank you.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

It's easy enough for me to add this permission, but do you think this
will be modified to use HKCU regardless of how it was installed?

--
Matt Berther
http://www.mattberther.com

>> Hello Matt,
>>
>> I'm afraid you currently have to have write access privileges to the
>> HKCU(or HKLM, depending on how you've installed
>> ReSharper)\JetBrains\ReSharper
>> registry key in order for ReSharper to work correctly. So if you
>> installed
>> ReSharper
>> from an admin account, and then run it from a non-admin account, you
>> may
>> get this error.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> When running VS.NET after installing build 201, I get an error when
>>> running from a non-privileged account.
>>>
>>> JetBrains.ReSharper.Util.InternalErrorException: An exception has
>>> occurred
>>> ---> System.Security.SecurityException: Requested registry access is
>>> not
>>> allowed.
>>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
>>> writable)
>>> at
>>> JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitializatio
>>> n
>>> R
>>> equired(Boolean
>>> value) in
>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>> 77
>>> at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>> 111
>>> at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
>>> AddIn
>>> addIn) in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
>>> at ReSharperAddIn.Startup() in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>> 45
>>> --- End of inner exception stack trace ---
>>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>>> Boolean)
>>> in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
>>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>>> c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
>>> 278 column 5
>>> at ReSharperAddIn.Startup() in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>> 54 column 7
>>> at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
>>> Array&)
>>> in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
>>> column 3
>>> Thinking that the problem was just a simple registration, I started
>>> VS.NET with an admin account and tried again, receiving the same
>>> error.
>>> --
>>> Matt Berther
>>> http://www.mattberther.com


0
Comment actions Permalink

Hello Dmitry,

Also, when running as non-admin, I cant seem to get the unit test runner
window to come up. Do I need to re-initialize? If so, how?

--
Matt Berther
http://www.mattberther.com

Hello Matt,

I'm afraid you currently have to have write access privileges to the
HKCU(or HKLM, depending on how you've installed
ReSharper)\JetBrains\ReSharper
registry key in order for ReSharper to work correctly. So if you
installed
ReSharper
from an admin account, and then run it from a non-admin account, you
may
get this error.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> When running VS.NET after installing build 201, I get an error when
>> running from a non-privileged account.
>>
>> JetBrains.ReSharper.Util.InternalErrorException: An exception has
>> occurred
>> ---> System.Security.SecurityException: Requested registry access is
>> not
>> allowed.
>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
>> writable)
>> at
>> JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitialization
>> R
>> equired(Boolean
>> value) in
>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>> 77
>> at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>> 111
>> at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
>> AddIn
>> addIn) in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
>> at ReSharperAddIn.Startup() in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>> 45
>> --- End of inner exception stack trace ---
>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>> Boolean)
>> in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>> c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
>> 278 column 5
>> at ReSharperAddIn.Startup() in
>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>> 54 column 7
>> at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
>> Array&)
>> in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
>> column 3
>> Thinking that the problem was just a simple registration, I started
>> VS.NET with an admin account and tried again, receiving the same
>> error.
>> --
>> Matt Berther
>> http://www.mattberther.com


0
Comment actions Permalink

Hello Matt,

what does happen if you attempt to run unit tests from menu?

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

Also, when running as non-admin, I cant seem to get the unit test
runner window to come up. Do I need to re-initialize? If so, how?

--
Matt Berther
http://www.mattberther.com

>> Hello Matt,
>>
>> I'm afraid you currently have to have write access privileges to the
>> HKCU(or HKLM, depending on how you've installed
>> ReSharper)\JetBrains\ReSharper
>> registry key in order for ReSharper to work correctly. So if you
>> installed
>> ReSharper
>> from an admin account, and then run it from a non-admin account, you
>> may
>> get this error.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> When running VS.NET after installing build 201, I get an error when
>>> running from a non-privileged account.
>>>
>>> JetBrains.ReSharper.Util.InternalErrorException: An exception has
>>> occurred
>>> ---> System.Security.SecurityException: Requested registry access is
>>> not
>>> allowed.
>>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
>>> writable)
>>> at
>>> JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitializatio
>>> n
>>> R
>>> equired(Boolean
>>> value) in
>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>> 77
>>> at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>> 111
>>> at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
>>> AddIn
>>> addIn) in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
>>> at ReSharperAddIn.Startup() in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>> 45
>>> --- End of inner exception stack trace ---
>>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>>> Boolean)
>>> in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
>>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>>> c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
>>> 278 column 5
>>> at ReSharperAddIn.Startup() in
>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>> 54 column 7
>>> at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
>>> Array&)
>>> in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
>>> column 3
>>> Thinking that the problem was just a simple registration, I started
>>> VS.NET with an admin account and tried again, receiving the same
>>> error.
>>> --
>>> Matt Berther
>>> http://www.mattberther.com


0
Comment actions Permalink

Hello Dmitry,

With build 201, nothing would happen. However, I just installed build 202
and this build seems to be much more stable (and the unit test and file structure
windows display). :)

--
Matt Berther
http://www.mattberther.com

Hello Matt,

what does happen if you attempt to run unit tests from menu?

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Hello Dmitry,
>>
>> Also, when running as non-admin, I cant seem to get the unit test
>> runner window to come up. Do I need to re-initialize? If so, how?
>>
>> --
>> Matt Berther
>> http://www.mattberther.com
>>> Hello Matt,
>>>
>>> I'm afraid you currently have to have write access privileges to the
>>> HKCU(or HKLM, depending on how you've installed
>>> ReSharper)\JetBrains\ReSharper
>>> registry key in order for ReSharper to work correctly. So if you
>>> installed
>>> ReSharper
>>> from an admin account, and then run it from a non-admin account, you
>>> may
>>> get this error.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> When running VS.NET after installing build 201, I get an error when
>>>> running from a non-privileged account.
>>>>
>>>> JetBrains.ReSharper.Util.InternalErrorException: An exception has
>>>> occurred
>>>> ---> System.Security.SecurityException: Requested registry access
>>>> is
>>>> not
>>>> allowed.
>>>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
>>>> writable)
>>>> at
>>>> JetBrains.ReSharper.Shell.UIApplicationShell.SetOneTimeInitializati
>>>> o
>>>> n
>>>> R
>>>> equired(Boolean
>>>> value) in
>>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>>> 77
>>>> at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in
>>>> c:\TEMP\tmp8291.tmp\src\Shell\src\UIApplicationShell.cs:line
>>>> 111
>>>> at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE dte,
>>>> AddIn
>>>> addIn) in
>>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\shell\VSShell.cs:line 193
>>>> at ReSharperAddIn.Startup() in
>>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>>> 45
>>>> --- End of inner exception stack trace ---
>>>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception,
>>>> String,
>>>> Boolean)
>>>> in c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line 266 column 9
>>>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>>>> c:\TEMP\tmp8291.tmp\src\Util\src\Logger.cs:line
>>>> 278 column 5
>>>> at ReSharperAddIn.Startup() in
>>>> c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line
>>>> 54 column 7
>>>> at ReSharperAddIn.OnConnection(Object, ext_ConnectMode, Object,
>>>> Array&)
>>>> in c:\TEMP\tmp8291.tmp\src\VSIntegration\src\Connect.cs:line 148
>>>> column 3
>>>> Thinking that the problem was just a simple registration, I started
>>>> VS.NET with an admin account and tried again, receiving the same
>>>> error.
>>>> --
>>>> Matt Berther
>>>> http://www.mattberther.com


0

Please sign in to leave a comment.