2016-11-25 21 views
0

我创建了一个非常简单的WCF serivce,我试图在Agilepoint NX使用它的一个错误,但它给我这个错误:有编制的代理代码

Exception: AgilePoint.Workflow.DataSources.DynamicProxyException: There was an error in compiling the proxy code. 
    at AgilePoint.Workflow.DataSources.DataSourceDescriptorWCF.OpenWsdl(String urlStr, String domainName, String userName, String userPassword, Boolean isGenerateMessageContract, DynamicProxyFactory& _factory) 
    at AgilePoint.Workflow.DataSources.DataSourceDescriptorWCF.GetWCFBindingsAndEndpoints(String URL, Boolean generateMessageContract, String CustomDomainName, String CustomUserName, String CustomUserPassword) 
    at r.GetWCFBindingsAndEndpoints(String wcfServiceUrl, Boolean generateMsgContract, String credentials) 
Compilation Errors: 
error CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ' 

任何人任何想法可能会导致此错误?

我已将应用程序池中的标识更改为:Localsystem,但它不起作用。

回答

0

使用wcftestclient或SoapUI测试您的Web服务。 看起来应该在应用程序池设置中启用32位应用程序(如果您在IIS中托管服务)。

+0

我已经在wcftestclient中测试过该服务,并创建了一个控制台应用程序,它运行良好。我也在应用程序池中启用了32位应用程序,但问题是游泳池始终停止运行,并且服务不可用。 –

+0

如果它停止 - 那么你会得到另一个错误(上面没有提到)? – SalientBrain