Power Productivity Tool的“Searchable Add Reference”对话框导致VS2010在某些情况下崩溃 [英] Power Productivity Tool's "Searchable Add Reference" dialog caused VS2010 to crash under certain circumstances

查看:48
本文介绍了Power Productivity Tool的“Searchable Add Reference”对话框导致VS2010在某些情况下崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这将是一个很长的帖子;请耐心等待...(我尝试在PPT的Q& A标签下添加它,但它只允许2000个字符)

This is going to be a long post; please bear with it... ( I tried to add it under PPT's Q & A tab but it only allows 2000 characters)

点击"添加参考"时与Power Productivity Tool的"Searchable Add Reference"相关联对话框启用导致VS2010在某些情况下崩溃

When clicking on "Add Reference" with Power Productivity Tool's "Searchable Add Reference" dialog enabled causes VS2010 to crash under certain circumstances

运行Win7 Pro / x64 w /所有当前更新; VS2010 Pro w /当前版本的Productivity Power Tools


(10.0.20626.18)以及其他扩展程序。

Running Win7 Pro/x64 w/all current updates; VS2010 Pro w/current version of Productivity Power Tools
(10.0.20626.18) amongst other extensions.

我最近重建了我的系统。在重建之前,我只有一个管理员级帐户,并且从这个帐户中做了所有的事情,因为这是危险的。这次我决定设置多个帐户。


我有两个帐户作为Administrators&的成员。用户(SUAdmin和PMBAdmin),用户(PMBottas)的会员资格为


。我现在从用户帐户中做了大部分事情,因为保持这个对话框提供管理员帐户凭据是很痛苦的。

I recently rebuilt my system. Before rebuilding I just had an admin level account and did everything
out of this account as dangerous as this is. This time I decided to have multiple accounts setup.
I have two accounts as a member of Administrators & Users (SUAdmin & PMBAdmin), one with just membership
in Users (PMBottas). I now do most things out of the User account, as much as it is a pain to keep
getting the dialog to provide an admin account credentials.

问题首先在非管理员帐户中被注意到并且在重建系统之前创建的旧应用程序是


。去添加ref和VS崩溃。

Problem was first noticed while in the non-admin account and working on a old app the was created back
before I rebuilt the system. Went to add a ref and VS crash.

创建一个新的空控制台应用程序 - 同样的问题。

Created a new empty console app - same problem.

切换到PMBAdmin,创建一个新的控制台应用程序在这个用户的Projects文件夹中并没有得到崩溃。

Switched to PMBAdmin, created a new console app in this user's Projects folder and didn't get the crash.

切换回PMBottas帐户并以管理员身份运行VS(使用PMBAdmin creds- 这给了我PMBAdmin的


项目文件夹,即使我已登录PMBottas - 不明白这种行为,但这是


a不同的问题)在PMBAdmin项目文件夹中打开控制台应用程序,试图添加一个参考号,这次它没有崩溃。

Switched back to PMBottas account and ran VS as an admin (using PMBAdmin creds-  which give me PMBAdmin's
Projects folder even though I am logged into PMBottas - don't understand this behavior but that's
a different question) opened the console app in PMBAdmin project folder,tried to add a ref and this time it did NOT crash.

切换到SUAdmin帐户,创建一个新的控制台应用程序,这个CRASHES VS2010。是吧?


为什么它在一个管理员级帐户中工作而不在另一个管理级帐户?

Switch to SUAdmin account, created a new console app and this one CRASHES VS2010. huh?
Why does it work in one admin level account and not the other?

嗯,也许这就是我在创建应用程序的地方...

hmmm maybe it's where I'm creating the app...

作为PMBAdmin,在数据驱动器上创建了一个文件夹'\ VSSCommon';在属性 - >文件夹的安全性,


添加用户&每个人都给了两个组织"完全控制"。通过这种方式,无论我登录的是谁,我都可以使用相同的应用程序。$ / b $ b。

As PMBAdmin, created a folder '\VSCommon' on the Data drive; in Properties->Security for the folder,
added Users & Everyone, gave both groups 'Full Control'. This way I can be working with the same app
no matter who I am logged in as.

作为PMBAdmin,在VSCommon文件夹中创建了一个新的控制台应用程序。试图添加一个参考,没有崩溃

As PMBAdmin, created a new console app in the VSCommon folder. tried to add a ref, no crash

从这里开始,当我切换帐户然后运行VS作为该用户,然后作为管理员,所有测试将是


与VSCommon文件夹中的控制台应用程序一起使用

From here on, as I switch accounts and then run VS as that user and then as Admin, all testing will
be with the console app in the VSCommon folder

LoggedInAs PMBottas,崩溃

LoggedInAs PMBottas,在PMBAdmin下以管理员身份运行,不会崩溃。

LoggedInAs SUAdmin, 崩溃(嗯? - 真的没有得到这个)
$
LoggedInAs SUAdmin,作为管理员(不需要成为管理员的成员)没有崩溃。

LoggedInAs PMBottas, crash
LoggedInAs PMBottas, run as admin under PMBAdmin, no crash.
LoggedInAs SUAdmin,  crash (huh? -really don't get this one)
LoggedInAs SUAdmin, as admin (no creds required being a member of Administrators) No Crash.

使PMBottas成为管理员的成员。
$
LoggedInAs PMBottas,崩溃(再次,为什么它在一个管理员级别帐户(PMBAdmin)下工作但没有其他)

LoggedInAs PMBottas,运行作为管理员(现在没有要求成为管理员的成员)没有崩溃!?!?!

Made PMBottas a member of Administrators.
LoggedInAs PMBottas, crash (again, why does it work under one Admin level account (PMBAdmin) but no other)
LoggedInAs PMBottas, run as admin (now no creds required being a member of Administrators) NO CRASH!?!?!

创建新用户帐户TestUser。

LoggedInAs TestUser,崩溃,

LoggedInAs TestUser,作为PMBAdmin的管理员,没有崩溃。

LoggedInAs TestUser,作为管理员在SUAdmin下没有崩溃。

LoggedInAs TestUser,作为管理员在PMBottas下没有崩溃。

created new user account TestUser.
LoggedInAs TestUser, crash,
LoggedInAs TestUser, as admin under PMBAdmin, no crash.
LoggedInAs TestUser, as admin under SUAdmin no crash.
LoggedInAs TestUser, as admin under PMBottas no crash.

我得到的具体错误来自VS的"VS遇到问题,需要关闭"。对话框

从"查看问题签名"窗口分机:

问题签名:

 问题事件名称:  CLR20r3

 问题签名01:  devenv.exe

 问题签名02:  10.0.40219.1

 问题签名03:  4d5f2a73

 问题签名04:  mscorlib

 问题签名05:  4.0.0.0

 问题签名06:  4ee9af8e

 问题签名07:  22d

 问题签名08:  10

 问题签名09:  System.Security.Security

 操作系统版本:  6.1.7601.2.1.0.256.48

 区域设置ID:  1033

The specific error I get is taken from VS's "VS has encounter a problem and needs to close" dialog
From the 'View Problem signature' window extension:
Problem signature:
  Problem Event Name: CLR20r3
  Problem Signature 01: devenv.exe
  Problem Signature 02: 10.0.40219.1
  Problem Signature 03: 4d5f2a73
  Problem Signature 04: mscorlib
  Problem Signature 05: 4.0.0.0
  Problem Signature 06: 4ee9af8e
  Problem Signature 07: 22d
  Problem Signature 08: 10
  Problem Signature 09: System.Security.Security
  OS Version: 6.1.7601.2.1.0.256.48
  Locale ID: 1033

有关此问题的其他信息:

  LCID:  1033

Additional information about the problem:
  LCID: 1033

在线阅读我们的隐私声明:

  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

如果没有在线隐私声明,请离线阅读我们的隐私声明:

  C:\ Windows \system32 \\\-US\erofflps.txt

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

如果我然后选择"调试应用程序"和"启动VS的新实例"我可以通过实际的例外信息获取此信息:

  EXCEPTION INFO

If I then select "Debug the application" and "start an new instance of VS" I can get this for the actual exception info:
  EXCEPTION INFO

System.Security.SecurityException未处理

 消息=不允许请求的注册表访问。

 来源= mscorlib

  StackTrace:

       at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)

       at Microsoft.Win32.RegistryKey.OpenSubKey(String name,Boolean writable)

       at Microsoft.Win32.RegistryKey.OpenSubKey(String name)

      在Microsoft.VSProjectPlus.TypeLibraryReferenceProvider.PopulateTypeLibraries(对象数据)

       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

      在System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode代码,CleanupCode backoutCode,Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean ignoreSyncCtx)

       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

      在System.Threading.ThreadPoolWorkQueue.Dispatch()

      在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

  InnerException:

System.Security.SecurityException was unhandled
  Message=Requested registry access is not allowed.
  Source=mscorlib
  StackTrace:
       at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
       at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
       at Microsoft.Win32.RegistryKey.OpenSubKey(String name)
       at Microsoft.VSProjectPlus.TypeLibraryReferenceProvider.PopulateTypeLibraries(Object data)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
  InnerException:

如果在VS中我转到Tools-> Options-> Power Productivity Tools-> All Extensions并关闭


'可搜索的参考对话'无论我登录的是谁还是以管理员身份运行,我都不会崩溃。

If in VS I go to Tools->Options->Power Productivity Tools->All Extensions and turn off the
'Searchable Reference Dialog' I don't crash no matter who I am logged in under nor if I run as admin.

 

这里发生了什么?

 
WHAT IS GOING ON HERE?

任何关于这里发生了什么的见解(特别是为什么它会直接运行(即没有'作为管理员运行')在PMBAdmin下,而不是任何其他管理员帐户)将不胜感激。

Any insight as to what is going on here (especially as to why it run directly (ie w/o 'Run as Admin') under PMBAdmin and not any other Administrators account) would be greatly appreciated.

提前致谢 - 保罗

Edit_1:刚想了一下..我很确定我在登录PMBAdmin时安装了VS

Edit_1: Just had a thought... I'm fairly sure I installed VS while logged into as PMBAdmin

推荐答案

尝试使用'Productivity Power Tools'添加新引用时,我也遇到错误,但堆栈跟踪不同:

I too was getting an error when trying to add a new reference with the 'Productivity Power Tools', but the stack trace was different:




我禁用了'Productivity Power Tools'扩展,然后重新启动Visual Studio e重新启用了扩展程序,"Add Referece"对话框恢复正常工作。

无管理员权限运行


这篇关于Power Productivity Tool的“Searchable Add Reference”对话框导致VS2010在某些情况下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆