Asp.net web api exception only after deploying at IIS : A route named 'HelpPage_Default' is already in the route collection

后端 未结 6 860
孤独总比滥情好
孤独总比滥情好 2021-01-01 09:01

I\'ve read this question and tried the solutions mentioned there but I\'m getting this exception only after i published the application to IIS of a remote server. In my loca

6条回答
  •  心在旅途
    2021-01-01 09:31

    I just ran into the same issue. I think the error was caused because I had pushed another solution to my site previously and there were leftover files that were somehow getting in the way.

    To fix this I checked the box that says "Remove additional files at destination" while publishing through Visual Studio to my Azure site. I would assume you could just manually delete any old files that were on the server before publishing as well. After this the site ran fine with no errors.

提交回复
热议问题