views:

46

answers:

2

I copied my app and put it somewhere else. Then I changed IIS to look at the new place and ran it. Debugging it - it runs through my Controllers in the new location fine. But when it nips off to get the view it goes to the old location of my app?!?

A: 

Have you changed anything in your Routes? The Routing engine is what grabs your views when the controller requests them. Perhaps your issue is in your global.asax file? I'm afraid that's all I can offer, without more information.

Gallen
A: 

I used .NET Reflector to work out how the route engine works. Turns out it kind of caches the route. It wouldn't listen to me until I restarted IIS, renamed the old directory so it didn't exist anymore and stopped my devenv.exe process. Then finally it was sorted

BritishDeveloper