在IIS中托管WCF服务 [英] Hosting WCF Service in IIS Issue

查看:81
本文介绍了在IIS中托管WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在IIS中托管我的wcf服务.

我的wcf Web项目中有一个.svc文件,在我的App_code中,有我的服务.

当我转到editWcf配置工具并尝试创建新服务时,无法从类型浏览器中选择我的类型,因为在选择app_code时未看到文件.

有帮助吗?

Hi guys

I am hosting my wcf service in IIS.

I have a .svc file in my wcf webproject and in my App_code I have my service.

When I go to editWcf configuration tool and try to create a new service I cannot pick my type from the type browser because upon selection of app_code no file is seen.

Any help?

regards.

推荐答案

不要将您的服务放在App_code中. App_code中的文件不是通过Http提供的,因此,如果它们位于其中,则无法调用任何类型的Web服务.将其放在您的Web项目的根目录中,看看是否有帮助.

另外:

[有关App_code的论坛讨论]
Don''t put your service in App_code. files in App_code aren''t served via Http, so you can''t call Webservices of any kind if they''re in there. put it in the root of your webproject and see if that helps.

Also:

[Forum discussion of App_code]


谢谢,我已将我的iservice.cs和service.cs文件移至项目的根目录,但仍无法在wcfconfiguration工具的类型浏览器下看到.
问候.
thanks, i have moved my iservice.cs and service.cs files to root of project but still it cant be seen under type browser in wcfconfiguration tool.
regards.


这篇关于在IIS中托管WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆