views:

33

answers:

1

I installed a MVC app on one of the machines and it works great. With the same code base, when I install it on a different machine, I get the following error:

A route named "myroute" is already in the route collection. 
Route names must be unique

This makes me want to say something is not correctly installed on the the second machine. Any clues on what may be installed incorrectly?

A: 

This doesn't sound like a installation problem, this sounds like a code problem, most likely with Routes in your Areas conflicting with other routes.

How/when did you get that error? Which URL? Did you request the same URL on both machines?

Do a search in your code-base for "myroute" to be doubly safe.

RPM1984
I get the error on the home page. Yes, same URL from both machines. I thought it could be the code problem, but I thought I would have had the problem from the other machine as well if it was a code problem.
DotnetDude
@DotnetDude - first time you have installed on that second machine? How did you install? Web Deploy? Manual publish? What are you running, IIS7? Could be old stuff lying around in bin directory.
RPM1984
MSDeploy. Running IIS 7. No, verified that old stuff is not lying around in the bin. Dont you think its a non code issue?
DotnetDude
If your saying the URL is the same on both machines, then yes - it sounds like a non-code issue. Is this the first time you've deployed on that machine? Maybe run the asp.net iis reg tool again?
RPM1984