zoukankan      html  css  js  c++  java
  • [已解决][WCF]provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.

    仅仅是解决这个问题而已,其他情况不知,详见下:

    问题:

      WCF建立svc文件,然后访问出现下面错误:

      The type 'MyProject.MyNamespace', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

    解决方法:

      网上有一堆的方法,结果不适用我的这个错误,原因是项目[MyProject]的属性页上设定了输出文件目录为其他地方,不是默认的bin\,所以将其改回来就好了。

    *仅仅是一种情况,是成功的必要条件非充分条件。

    (2013/06/14)

  • 相关阅读:
    PHP自动加载(__autoload和spl_autoload_register)
    抽象工厂模式
    工厂方法模式
    简单工厂模式
    组合
    二叉树的层次遍历 II
    umask命令
    二叉树的所有路径
    CDN缓存的理解
    Js中RegExp对象
  • 原文地址:https://www.cnblogs.com/fiteg/p/3135586.html
Copyright © 2011-2022 走看看