Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
A TARGET definition is required in proxy file 'filename.' Found 'tag' instead.
Collapse the table of content
Expand the table of content

A TARGET definition is required in proxy file 'filename.' Found 'tag' instead.

Visual Studio .NET 2003

The proxy file named does not have a valid TARGET defined. A proxy file should include an XML header and a TARGET statement whose value is the path to a Visual Studio project. For example:

<?xml version="1.0" encoding="utf-8" ?>
<TARGET>..\Projects\Enterprise Template Project\Default_Policy_Project.etp</TARGET>

This example shows the complete text of a proxy file named "Enterprise Template Projects.etpproxy." Its TARGET is an Enterprise Template project named "Default_Policy_Project.etp." This proxy file would appear in the Visual Studio Add Project dialog box as a project icon named "Default_Policy_Project.etp."

To solve this problem

  1. Note the name of the proxy file mentioned in the error message.
  2. Close your project and open the proxy file in a text editor.
  3. Verify that the TARGET statement in the proxy file has a valid path to your project.

    If there is a TARGET statement:

    • Confirm that the TARGET project named exists at the TARGET location.
    • If the project exists but has a different name, either change the TARGET filename in the proxy file or change the project name back to the TARGET filename.
    • If the project exists but is at another location, either edit the TARGET path in the proxy file to the new location or move the project to the TARGET location.
    • If the TARGET project no longer exists, you cannot use this proxy file.

    If there is not a TARGET statement:

    • Add a TARGET statement with a valid path to the desired Enterprise Template project.
  4. Save and close the proxy file.
    Note   Make sure the proxy file retains the .etpproxy file extension.
  5. Reopen your project.

See Also

Making Custom Enterprise Templates a Default Option for New Project Creation

Show:
© 2015 Microsoft