Deploying WCF Tutorial App on IIS7: “The type could not be found”

后端 未结 4 1380
北荒
北荒 2020-12-31 09:37

I\'ve been trying to follow this tutorial for deploying a WCF sample to IIS . I can\'t get it to work. This is a hosted site, but I do have IIS Manager access to the server.

4条回答
  •  借酒劲吻你
    2020-12-31 10:08

    I had the same error and for me the problem was just that I was missing assemblies on the server that were needed by the service to compile.

    All that is described here was not necessary to me.

    To find out what your error is, you can try to move your service.svc and service.svc.cs files to the App_Code directory. That way you will get an error message better related to the real error you have.

    In my case, the namespace that was missing because I forgot to deploy some assemblies. I uploaded the missing assemblies, run the service correctly then moved back the services files were they belonged.

提交回复
热议问题