System.Web.Routing problem

Hey guys

Just a quick problem im having and need help with. I have googled the issue, but nothing yet.

I have an existing website. I decided to add to it the System.Web.Routing capabilities of MVC for nice URLS on specific pages.

We have a local dev server here that we test our sites on b4 deploying it to our production server.

On devserver all works well with no issues.

But as soon as I deploy it to the production server… it does not work. It gives the following error:

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

on Line 7: using System.Web.Routing;

I really do not understand what the problem is. The same version of Framework 3.5 SP1 is installed on both servers. I downloaded it and FTPed it to both servers and installed on both.

If I go to my Websites property pages, it says its in the GAC, which it is indeed. The live server also has it in the GAC, but it still doesnt find it.

Has any1 come across this b4? Or know now to rectify it?

Thanks for any feedback.

Have you tried uploading the assembly to the /bin directory? I’m not a massive fan of using GAC’d assemblies and anything out side the core FX I copy local

I have thought of that, but im not sure how to do that? I know with a Web App project, I can just set it to copy local, but I am using a website project. I could just try uploading it, but also not sure where it is located

Should be able to find it at: C:\program files\reference assemblies\microsoft\framework\v3.5

Perfect. Thanks, that worked. Weird tho that it doesnt get it from the GAC. Oh well

One possibility is the web.config might need a reference to it and is more likely not to have said reference if you switched a 2.0 site to 3.5.

I do have the reference in the web.config. As I did not switch from 2.0 to 3.5. And it worked on my localhost