Microsoft KB Archive/313363

= PRB: Visual C++ .NET Project Build Error PRJ0016 =

Article ID: 313363

Article Last Modified on 8/16/2002

-

APPLIES TO


 * Microsoft Visual C++ .NET 2002 Standard Edition

-



This article was previously published under Q313363



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you build a Visual C++ .NET project, the compiler throws the following error:

error PRJ0016: The user's security settings prevent the process from being created. These settings are required for building.



CAUSE
A value is assigned to the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun



RESOLUTION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To resolve this problem, delete the RestrictRun key or add Vcspawn.exe to the list of .exe files in the key.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
The registry key that is mentioned in the &quot;Cause&quot; section, which is required by the Application Specification for Microsoft Windows 2000 (also know as &quot;Windows 2000 Logo&quot;), enables administrators to restrict the processes that run on users' computers. Development tools, however, are exempt from this requirement.

Steps to Reproduce Behavior
 In Registry Editor (Regedit.exe), open the registry key

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

 Right-click in the Explorer window in Registry Editor. On the shortcut menu, point to New, and then click String Value. Rename the new string value as RestrictRun . Build the Visual C++ .NET project. Error PRJ0016 occurs.</ol>

<div class="references_section">