开发者

Problem with C# References

开发者 https://www.devze.com 2023-02-15 10:34 出处:网络
Hullo, I\'m having trou开发者_Python百科ble 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:

Hullo,

I'm having trou开发者_Python百科ble 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消