简体   繁体   中英

The type or namespace name 'routing' does not exist in the namespace 'system.web' visual studio

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I added web reference System.Web.Routing, but still it showing error.

在此输入图像描述

你需要有.NET 3.5 SP1。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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