3

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.

enter image description here

leppie
  • 115,091
  • 17
  • 196
  • 297
Firoz Khan
  • 623
  • 1
  • 9
  • 23

2 Answers2

2

You need to have .NET 3.5 with SP1.

leskovar
  • 661
  • 3
  • 8
2

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.

Chris
  • 4,661
  • 1
  • 23
  • 25