Azure App Service:程序集中的方法没有实现

时间:2018-10-11 13:04:50

标签: asp.net asp.net-web-api2 azure-web-app-service

我们有一个WebAPI,该WebAPI在IIS下本地运行,但是在部署到Azure应用服务时会出错。此API一直有效,直到我们从StackExchange.Redis 1.2升级到2+。我从App Service复制了代码,并在本地IIS下运行了该代码,该代码按预期运行。任何想法可能是什么原因造成的?

Method 'ExecuteAuthorizationFilterAsync' in type 
'ProjectAlpha.Api.Filters.TokenAuthorizationFilterAttribute' from assembly 
'ProjectAlpha.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' 
does not have an implementation.at System.Web.HttpApplicationFactory.
EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication 
app)at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr 
appContext, HttpContext context, MethodInfo[] handlers)at 
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, 
MethodInfo[] handlers, IntPtr appContext, HttpContext context)at 
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr 
appContext, HttpContext context)at 
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) 
Method 'ExecuteAuthorizationFilterAsync' in type 
'ProjectAlpha.Api.Filters.TokenAuthorizationFilterAttribute' from assembly 
'ProjectAlpha.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' 
does not have an implementation.at 
ProjectAlpha.Api.WebApiApplication.Application_Start()

0 个答案:

没有答案