简体   繁体   中英

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

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?

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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM