none
在server端没有web.config的svc如何调试? RRS feed

  • 问题

  • 现在遇到的问题环境是:server端的服务是别人写的,我现在需要从client调用service的服务(使用的wsdl是从另外一个地方拿的),但是从IIS中发现没有service的web.config.client端的app.config使用的配置如下:

    <basicHttpBinding>
                    <binding name="CustomBinding_BusinessDataCatalogSharedService"
                        closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
                        sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false"
                        hostNameComparisonMode="StrongWildcard" maxBufferSize="65536"
                        maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="MOTM" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="">
                                <extendedProtectionPolicy policyEnforcement="Never" />
                            </transport>
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                </basicHttpBinding>
    
    
    
    
        <endpoint address="http://bdcr.fareast.corp.microsoft.com:6840/_vti_bin/BdcAdminService.svc"
              binding="basicHttpBinding" bindingConfiguration="CustomBinding_BusinessDataCatalogSharedService"
              contract="BusinessDataCatalogSharedService" name="BusinessDataCatalogSharedService" />

    但是当发送request的时候显示异常:


    "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n  <s:Header />\r\n  <s:Body>\r\n    <s:Fault>\r\n      <faultcode xmlns:a=\"http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher\">a:InternalServiceFault</faultcode>\r\n      <faultstring xml:lang=\"en-US\">The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</faultstring>\r\n    </s:Fault>\r\n  </s:Body>\r\n</s:Envelope>"

     

    我的问题是:

    1,servcie没有webconfig的情况是正常的吗?(可以没有吗?)

    2,WCF Service没有webconfig的情况下如何调试配置service(我希望打开IncludeExceptionDetailInFaults )?

     

    那位朋友遇到过这个问题~~谢谢

     

    2010年4月8日 3:21

答案

全部回复