我已经使用webapi2.2构建了一个API。Azure - 此服务不健康.NET后端
当我部署API天青我得到的服务不健康的消息......当我检查我的API的日志,该日志提供错误消息
“自举失败:执行“WebApiConfig.Register “导致了 异常: '参数计数不匹配'
启动应用程序的功能是低于
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
和我WebApiConfig.cs有以下几点:
public static void Register(HttpConfiguration config)
{
config.EnableCors();
config.Formatters.JsonFormatter.
SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));.......
另一个问题在这里:该API实现自己的安全机制(我用下面作为参考http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/)。此实现是否可以在Azure中使用,或者您是否必须使用x-zumo标头授权机制?