Consultor Eletrônico



Kbase P126631: .NET error CS1518 in ProxyGen log file when generating .NET proxy
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/10/2007
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.1B

SYMPTOM(s):

error CS1518 when generating .NET proxy

StrongTypesNS\OrderDetails.cs(230,16): error CS1518: Expected class, delegate, enum, interface, or struct

Error appears in the Proxygen log file.

.NET Framework 1.1 and .NET 2.0 are installed on the machine

Using .NET Open Client

CAUSE:

The ProxyGen uses .NET 1.1 when compiling with CSC and .NET 2.0 for the XSD generator.

FIX:

Specify in the ProxyGen the .NET framework to use when generating the .NET proxy:
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)

When using .NET 2.0, for CSC, the path should be C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc
and for XSD, it should be C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\xsd