Erro on Ninject: Sequence contains no elements

末鹿安然 提交于 2019-12-06 08:23:04
Marcus Braga

I found the problem, on Azure when I published I didn't select the option "Remove additional files at destination" on publish screen's Settings tab.

Consequently the publish didn't remove old DLLs that I didn't use anymore. I cleared all files on Azure and published again and it worked.

After that, I selected the option "Remove additional files at destination" when publishing and it didn't happen again.

In my case this issue was happening in UAT but not on my machine.

The reason for that is I changed namespace and as result in release folder there were two libraries with the same class.

I had to clean up release folder and publish it again. All good now

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!