Craig
Craig

Reputation: 7076

Unit Testing & System.Web.Routing

I have a test project and am trying to reference System.Web.Routing. I've added the reference to the project but I am getting the error:

The type 'System.Web.Routing.RouteValueDictionary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

I'm sure there is a logical reason for this but I do not know what that is.

Upvotes: 1

Views: 1154

Answers (2)

matiasnj
matiasnj

Reputation: 604

You need to add this reference too

You need to add this reference too

Upvotes: 4

Craig
Craig

Reputation: 7076

Needed a reference to System.Web. Thought I had that already referenced...oops!

Upvotes: 2

Related Questions