我正在开发一个Windows服务公开了一个WCF服务旨在通过Silverlight应用程序消耗,如本博客文章解释说:mtaulty/CommunityServer/blogs/mike_taultys_blog/archive/2008/03/27/10291.aspx
I am developing a Windows service that exposes a WCF service intended to be consumed by a Silverlight application, as explained in this blog post: mtaulty/CommunityServer/blogs/mike_taultys_blog/archive/2008/03/27/10291.aspx
我现在面临的问题是,我需要使用WebInvoke属性,这是在 System.ServiceModel.Web.dll 组装定义,但是当我尝试添加一个参考项目的组件(使用Visual Studio的添加引用对话框 - .NET选项卡上),没有与该名称的程序集
The problem I am facing is that I need to use the WebInvoke attribute, which is defined in the System.ServiceModel.Web.dll assembly, but when I try to add a reference to that assembly in the project (by using Visual Studio's Add Reference dialog - .NET tab), there is no assembly with that name.
所以,我做错了什么,该组件是不是标准的.NET Framework的一部分,或者是在Visual Studio中的错误?顺便说一句,我使用VS2010 Beta 2和项目面向.NET Framework 4中。
So, am I doing something wrong, this assembly is not part of the standard .NET Framework, or it is a bug in Visual Studio? By the way I'm using VS2010 beta 2 and the project targets .NET Framework 4.
推荐答案您打靶.NET4全部或客户端配置文件?后者不包括System.ServiceModel.Web装配
Are you targetting .NET4 Full or Client Profile? The latter does not include the System.ServiceModel.Web assembly.
更多推荐
哪里是System.ServiceModel.Web.dll?
发布评论