Azure Mobile Service error: a more static class named was found as a loader in assemblies

The following error appeared in Azure logs after deploying a new version of the C # MobileService project with Visual Studio 2013:

In assemblies, more than one static class was found with the name "WebApiConfig" as the boot device: {{My.MobileService.Project, myMobileService}}. Provide only one class or use the "IBootstrapper" attribute to define a unique boot file.

If in fact there are several versions of the mentioned class file, how to clean it before deploying the new version?

+5
source share
1 answer

This often happens when you change the name of your assembly. If so, try deleting the files at the destination. In the published web dialog, expand "Publish file options" and select "Delete additional files at destination" when publishing.

enter image description here

+12
source

Source: https://habr.com/ru/post/1208757/


All Articles