PRB: Visual C++ .NET Project Build Error PRJ0016 (313363)



The information in this article applies to:

  • Microsoft Visual C++ .NET (2002)

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 "Cause" section, which is required by the Application Specification for Microsoft Windows 2000 (also know as "Windows 2000 Logo"), enables administrators to restrict the processes that run on users' computers. Development tools, however, are exempt from this requirement.

Steps to Reproduce Behavior

  1. In Registry Editor (Regedit.exe), open the registry key

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

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

REFERENCES

For other top-hit Visual C++ .NET Microsoft Knowledge Base articles, visit the following Microsoft Web site: For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

151176 Policy Registry Entries (Default User)


Modification Type:MajorLast Reviewed:8/16/2002
Keywords:kbBuilder kbDSupport kbprb KB313363