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

后端 未结 6 861
孤独总比滥情好
孤独总比滥情好 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:43

    I had the same issue when deploying application on Local IIS. My publish directory and IIS hosting directory are same. I tried with following steps, it worked for me:

    1. Click on Solution >> publish
    2. Delete existing file>> settings>> expand file publish options
    3. check checkbox Delete all existing files prior to publish is true;
    4. check checkbox Precompile during publishing is true.

提交回复
热议问题