Consultor Eletrônico



Kbase P115008: An error occurs when trying to add a .NET Open Client proxy as a reference in Visual Studio 2003
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/10/2006
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0B
Windows

SYMPTOM(s):

An error occurs when trying to add a .NET Open Client proxy as a reference in Visual Studio 2003

Unable to add a .NET Open Client assembly generated by the Proxy Generator / ProxyGen

A reference to 'assemblyname.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

The machine has both version 1.1 and 2.0 of the .NET Framework

CAUSE:

Bug# 20050829-015

CAUSE:

ProxyGen is using the latest version of the .NET Framework which is installed on the machine. In this case, the 2.0 version of the .NET Framework is not supported by the current version of OpenEdge.

FIX:

Upgrade to OpenEdge 10.1A and later. Beginning with OpenEdge 10.1A, only version 1.1 of the .NET Framework is used.

If upgrading is not an option, manually specify the 1.1 version of the .NET Framework for the .NET compiler (csc.exe) and the XSD Generator (xsd.exe):
1- When generating the .NET proxy, select the .NET tab
2- Select Custom in the Compiler field.
3- In the Compiler Command field, specify the full path or a path that is relative to the system path for the compiler executable (csc.exe)
4- In the XSD Generator field, specify the full path or a path that is relative to the system path for the XSD Generator executable (xsd.exe)