English 中文(简体)
与SVCUTIL的生成数据合同代码
原标题:Problem generating data contract code with SVCUTIL

视力演播室指挥中一派指挥员时:

D:DocumentsDEVSARPilotDocseoschemaschemaOrderSchema>svcutil /t:code /language=C# *.wsdl *.xsd ..ws-addressing*.xsd ..gml3.1.1ase*.xsd ..ows1.0.0*.xsd ..xlink1.0.0*.xsd ..swesweCommon.0.0*.xsd /out:MyServiceProxy.cs /config:MyServiceProxy.config

我有以下错误:

Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation.  All rights reserved.

Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation.  All rights reserved.

Error: Cannot read ..ws-addressing*.xsd.

    Cannot load file D:DocumentsDEVSARPilotDocseoschemaschemaws-addressingws-addr.xsd as an Assembly. Check the FusionLogs
 for more Information.

    Could not load file or assembly  file:///D:DocumentsDEVSARPilotDocseoschemaschemaws-addressingws-addr.xsd  or one of i
ts dependencies. The module was expected to contain an assembly manifest.

If you would like more help, type "svcutil /?"

I m using the following schema files: http://wiki.services.eoportal.org/tiki-download_wiki_attachment.php?attId=637&page=HMA-FO%20Deliverables

怎样才能克服这一错误?

最佳回答

Okay, 因此,一夫一妻就 past过这一错误。 (现在更多,但问题是另一个问题)。

我在VS2010年打开了 w子,并查看了警告清单。 她说:

Warning 105 The XML editor tried to convert this DTD to XSD so it can provide validation and intellisense while you type, but it could not create a valid XSD schema. Perhaps this DTD uses constructs that do not map to XSD. You may be able to get more information about the problem by using the Create Schema command. D:DocumentsDEVSARPilotDocseoschemaschemaws-addressingws-addr.xsd 3 11 D:...schema

因此,I人去了“http://www.w3.org/2005/08/addressing/ws-addr.xsd”并下载了正确的版本,取而代之。

我不再发出警告105,不再收到“可能不装载档案”的错误,而使用无用弹。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签