Azure Mobile Service error: more than one static class with name was found as bootstrapper in assemblies

隐身守侯 提交于 2019-12-23 12:16:59

问题


The following error was reported in Azure logs after deploying a new version of C# MobileService project from Visual Studio 2013:

More than one static class with name 'WebApiConfig' was found as bootstrapper in assemblies: {{My.MobileService.Project, myMobileService}}. Please provide only one class or use the 'IBootstrapper' attribute to define a unique bootstrapper.

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


回答1:


This often happens when you change the name of your assembly. If this is the case, try removing the files in the destination. In the publish web dialog, expand the "File Publish Options", and select the "Remove additional files at destination" option when publishing.



来源:https://stackoverflow.com/questions/27409000/azure-mobile-service-error-more-than-one-static-class-with-name-was-found-as-bo

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