Permission Error When Building C++ in VS2010
2012-11-30 19:03
381 查看
Warning 1 warning MSB3075: The command "regsvr32 /s "D:\Debug\CBho.dll"" exited with code 5. Please verify that you have sufficient rights to run this command. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 677 6 CBho
Error 2 error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 689 6 CBho
warning MSB3075: 命令“regsvr32 /s "D:\NativeAddIn\Release\NativeAddIn.dll"”已退出,代码为 5。请验证您是否有足够的权限来运行此命令。
error MSB8011: 未能注册输出。请尝试启用“逐用户重定向”,或者使用提升的权限从命令提示符处注册该组件。
实际我要注册的文件是我自己做的插件,但它总会提示需要确认权限,之前搜了很多次都没找到解决办法,而且好像是一个很常见的问题,今天搜了一下英文,找到了
解决办法:
Solution Explorer ->项目节点->鼠标右键->Properties->Linker ->General->Pre-user Redirection 设为TRUE 就好了。
对应的中文版是:
Solution Explorer ->项目节点->鼠标右键->属性->链接器->常规->逐用户重定向
Error 2 error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 689 6 CBho
warning MSB3075: 命令“regsvr32 /s "D:\NativeAddIn\Release\NativeAddIn.dll"”已退出,代码为 5。请验证您是否有足够的权限来运行此命令。
error MSB8011: 未能注册输出。请尝试启用“逐用户重定向”,或者使用提升的权限从命令提示符处注册该组件。
实际我要注册的文件是我自己做的插件,但它总会提示需要确认权限,之前搜了很多次都没找到解决办法,而且好像是一个很常见的问题,今天搜了一下英文,找到了
解决办法:
Solution Explorer ->项目节点->鼠标右键->Properties->Linker ->General->Pre-user Redirection 设为TRUE 就好了。
对应的中文版是:
Solution Explorer ->项目节点->鼠标右键->属性->链接器->常规->逐用户重定向
相关文章推荐
- Permission Error When Building C++ in VS2010
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- error when building an virtual path in iis
- zz : A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ ---- nafxcw.lib(a
- You receive a C4226 or a C4236 error message when you compile code to contain the keyword in 32-bit Visual C++(ZZ)
- Error building results for action sayHello in namespace /inteceptor -
- some usual error when configre glut, glui in windows(http://accad.osu.edu/~ywei/Help/HowTos.html)
- When do we use Initializer List in C++?
- python error when compile file in windows
- why it doesn't popup multi definitions error for method in .h class for C++?
- When should we write our own assignment operator in C++?
- Unhandled Error in Silverlight Application, code 2103 when changing the namespace
- lua教程十一----C/C++与Lua之间进行数据函数交互以及解决“PANIC: unprotected error in call to Lua API (attempt t
- C/C++与Lua之间进行数据函数交互以及解决“PANIC: unprotected error in call to Lua API
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- Error in '/usr/bin/c++': double free or corruption (top)问题解决
- What happens when more restrictive access is given to a derived class method in C++?
- Gerrit error when Change-Id in commit messages are missing
- [Docker] Error when starting docker in CentOS 7