急:iis部署wcf后,点击浏览:http://localhost:8080/WCF/WCFtest.svc 可以打开
但是点击:http://localhost:8080/WCF/WCFtest.svc?wsdl报错:
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 <serviceDebug> 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.为什么呢??请大虾指点!!!

解决方案 »

  1.   

    http://localhost:8080/WCF/WCFtest.svc?wsdl全角问号?
      

  2.   


    不是。这个不影响我数据返回。。
    问:动态调用WCF,这个有什么好的办法??
      

  3.   

     ExecuteMethod<T>(string pUrl, string pMethodName, params object[] pParams)
    网上有方法动态调用,但是有些参数,我不知道怎么传过去
      

  4.   

    如果你是用 RESTful 架构的WCF 就可以不用引用wsdl生成本地代理调用。
    (关于 RESTful WCF 你可以看看我的blog:http://blog.csdn.net/fangxinggood/archive/2011/03/14/6247297.aspx)网上这种动态调用的方式大多数是通过codedom临时生成本地代理类然后通过反射调用的。
      

  5.   

    ms lz没搞懂wsdl是干啥用的吧。我想问你的wsdl能否正常生成。
      

  6.   

    WCF不支持函数的重载,它的参数个数必须是固定的,所以你这样写肯定会出错,没有其它好方法(你其实可以放个List对象到参数中嘛)