3

命名空间“System.Web”中不存在类型或命名空间名称“Routing”(您是否缺少程序集引用?)

我添加了网络参考 System.Web.Routing,但仍然显示错误。

在此处输入图像描述

4

2 回答 2

2

您需要具有带有 SP1 的 .NET 3.5。

于 2014-04-24T07:42:38.847 回答
1

From MSDN:

To simplify development of XML Web service client applications, Visual Studio provides Web references. Web references differ from traditional references and components; instead of referencing a component or a class library installed on the local computer, a Web reference provides access to a resource that is available using an Internet protocol such as SOAP or HTTP. In practice, a Web reference is a generated proxy class that locally represents the exposed functionality of an XML Web service.

A web reference isn't what you want - in simple terms, references allow you to call into DLLs, while web references are used to call web services.

Remove the 'web reference' you've made, and add a normal reference instead.

于 2014-04-24T08:29:25.993 回答