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

问题:

  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)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-10-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-06-15
  • 2021-07-05
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案