Product:
Search Type:

[FIX]Visual Studio 2005 on Windows Vista - proxy generation error

Article ID: 2269 
Last Review: Oct,18 2007
APPLIES TO:
  • Virtuozzo for Windows 3.5.1 SP1

SYMPTOMS

Visual Studio 2005 on Windows Vista when compiled Virtuozzo 3.0.3 web reference wsdl compiller gets errors:

Error 1 Custom tool error: Unable to import WebService/Schema. Unable to import binding 'backmBinding' from namespace

'http://www.swsoft.com/webservices/vza/WSDL/3.0.3/backm'.

Unable to import operation 'backup_ve'. The XML element named 'operator_periodic' from namespace

'http://www.swsoft.com/webservices/vza/3.0.3/protocol' is already present in the current scope.

C:\AppDev\TestVZA\Properties\Settings.settings 1 1 TestVZA

CAUSE

Duplicate records in Reference.map file.

RESOLUTION

Please open file %YOUR_PROJECT%\Web References\VZA\Reference.map. There are two includes of http://www.swsoft.com/webservices/vza/3.0.3/VZAProtocol.xsd in this file. Remove one of them and try to find the line with “filename="VZAProtocol0.xsd” - remove or comment it as well.

E.g.

<DiscoveryClientResult referenceType="System.Web.Services.Discovery.SchemaReference"

url="http://www.swsoft.com/webservices/vza/3.0.3/VZAProtocol.xsd" filename="VZAProtocol0.xsd" />


After that, please add Reference.cs to project (if it was not added automatically) and try to compile it again. WSDL compiler gets some number of warnings, BUT generates Reference.cs file.

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields