Error PRJ0050 - Failed to register output - Ensure you have permissions to modify the registry
2011-04-25 14:29
344 查看
This nasty looking error, you might get under VS 2005, often maybe more annoying than harmful. The scenario I describe below may not account for all occurrences of this error, but it might be rather frequent. When you start a project in most cases you rely on the wizard, and when building a COM component, the wizard will create and add an idl file to your project, and generate internal command to invoke MIDL compiler to produce a type library. Some developers don't always need the type library, or even the idl, because their component is specialized and don't need to be advertised to the general COM public. Thus, they may remove those. However, the wizard generated DllRegisterServer() function calls the module's DllRegisterServer() without specifying an argument for the optional BOOL bRegTypeLib, which then assumes its default value of TRUE. As a consequence, when RegSvr32.exe is invoked by the VS build tool, it tries to register also the type library, after registering the module's COM objects. The ATL code tries to locate the type library first inside the dll, and if that fails by locating the tlb file with the root name identical to the binary module. I have read some developers complain that the error may popup sometime and sometime not. It maybe that the tlb file might have been lingering in the folder from the previous compilations and thus was found. In any case to fix the problem provide explicitly FALSE as the argument to both DllRegisterServer(FALSE) and DllUnregisterServer(FALSE), if you don't have the type library.
相关文章推荐
- error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to (转载)
- Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permissio
- ATL项目编译注册dll的时候报权限错误:error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
- OUI-10038:You do not have the necessary permissions to write to the inventory at /oracle/product/ora
- Github Desktop 克隆新项目 Authentication failed. You may not have permission to access the repository or the repository may ha
- you have to first modify the default Eclipse configuration to avoid XML cosmetic errors:
- 关于“Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.”问题的解决
- Fckeditor you have no permissions to create the folder问题及解决办法
- runInstaller-- you do not have sufficient permissions to access the inventory
- You don't appear to have the necessary permissions to install packages
- error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the c
- [magento]Warning: Your Magento folder does not have sufficient write permissions. If you wish to pro
- 解决The'InnoDB'feature is disabled;you need MySQL built with 'InnoDB' to have it的问题
- This task rrequires the application to have elevated permissions
- How to solve the problem : "You have been logged on with a temporary profile"
- *You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
- failed to sync branch You might need to open a shell and debug the state of this repo
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- 【PHP】Codeigniter : Unable to locate the model you have specified
- the file "xxx.app" couldn't be opened because you don't have permission to view it.