Harold
Harold

Reputation: 1166

Problem with C# References

Hullo,

I'm having trouble with the type RedirectToRouteResult in my code, and when I open up the immediate window and put RedirectToRouteResult into it then I get the error message:

The type 'System.Web.Mvc.RedirectToRouteResult' exists in both 'System.Web.Mvc.dll' and 'System.Web.Mvc.dll'

I have tried removing the System.Web.Mvc.dll reference and then it just couldn't find RedirectToRouteResult at all.

Anyone have any ideas that could help?

Thanks, Harry

Upvotes: 2

Views: 357

Answers (1)

Harold
Harold

Reputation: 1166

Turns out it was referencing a project that was referencing the System.Web.Mvc.dll from another location. I changed it to point at the same file and it sorted out the problem

Upvotes: 3

Related Questions