简体   繁体   English

在IIS 7.0和Silverlight 5.0下发布WCF RIA域服务

[英]Publishing WCF RIA Domain Services under IIS 7.0 and Silverlight 5.0

I have some simple questions regarding the publishing of WCF RIA domain services under IIS 7.0: 关于在IIS 7.0下发布WCF RIA域服务,我有一些简单的问题:

1.) Do I need a *.svc file to publish a WCF RIA domain service under IIS 7.0? 1.)我是否需要* .svc文件才能在IIS 7.0下发布WCF RIA域服务? Yes/No? 是/否?

2.) If 1.) is yes, is there any way to generate this *.svc file automatically or do I have to do it on my own manually? 2.)如果1.)是,是否有任何方法可以自动生成此* .svc文件,还是我必须自己手动执行此操作? Automatically/Manually? 自动/手动?

3.) My domain services are simple classes in *.cs files. 3.)我的域服务是* .cs文件中的简单类。 Do I need to configure them "Always Copy into publishing folder" OR do the domain services "live" in the build "Web.dll"? 我是否需要配置它们“始终复制到发布文件夹”或在构建“Web.dll”中“实时”域服务? Always Copy/Live in the Web.dll? 总是在Web.dll中复制/直播?

My questions seem simple, but I am having a real hard time to get this working under IIS 7.0. 我的问题看似简单,但我真的很难在IIS 7.0下工作。 Debugging and testing in the internal VS 2010 development server is no problem. 在内部VS 2010开发服务器中进行调试和测试是没有问题的。

I never had a problem to publish a "normal" WCF Service, because there are plenty of good advises out there, but for WCF RIA Services it's a pain in the ass to me. 我从来没有遇到过发布“正常”WCF服务的问题,因为那里有很多好的建议,但是对于WCF RIA服务来说,这对我来说是一件痛苦的事。

Thanks in advance for your short answers. 提前感谢您的简短回答。 If you have any good link to a tutorial on publishing WCF RIA Services with Silverlight 5.0, pleaaase post it. 如果您有关于使用Silverlight 5.0发布WCF RIA服务的教程的任何良好链接,请发布它。 I am working on this for days now and have googled my brain to death. 我现在正在研究这几天,并用谷歌搜索我的大脑。 I really don't understand that this is so hard. 我真的不明白这太难了。 I have found some links here on SO, but some of them are already not existing anymore, some of them seem be useless, because the WCF RIA Services changed over the time. 我在SO上找到了一些链接,但其中一些已经不存在了,其中一些似乎没用,因为WCF RIA服务随着时间的推移而改变。

Thank you and I really appreciate any help. 谢谢,我真的很感激任何帮助。

EDIT: I already can debug the WCF RIA Service code on IIS in VS 2010, but only if the service is called from a ASP.NET code behind file. 编辑:我已经可以在VS 2010中调试IIS上的WCF RIA服务代码,但前提是从ASP.NET代码后面的文件中调用该服务。 That tells me, that the WCF RIA services are working and running on IIS. 这告诉我,WCF RIA服务正在IIS上运行和运行。 This question is all about publishing the services to outer world. 这个问题就是将服务发布到外部世界。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM