Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net web api 什么可能导致OWIN间歇性无法加载?_Asp.net Web Api_Owin - Fatal编程技术网

Asp.net web api 什么可能导致OWIN间歇性无法加载?

Asp.net web api 什么可能导致OWIN间歇性无法加载?,asp.net-web-api,owin,Asp.net Web Api,Owin,最近,我们的开发服务器上开始出现一些不寻常的错误。我们正在使用Jenkins构建和部署一个ASP.NET Web API,该API使用OWIN,到目前为止,一切都正常工作。但是,最近我们开始间歇性地看到错误,如以下从Windows事件日志中轻微编辑的错误: Exception information: Exception type: EntryPointNotFoundException Exception message: The following errors occu

最近,我们的开发服务器上开始出现一些不寻常的错误。我们正在使用Jenkins构建和部署一个ASP.NET Web API,该API使用OWIN,到目前为止,一切都正常工作。但是,最近我们开始间歇性地看到错误,如以下从Windows事件日志中轻微编辑的错误:

Exception information: 
    Exception type: EntryPointNotFoundException 
    Exception message: The following errors occurred while attempting to load the app.
 - No assembly found containing an OwinStartupAttribute.
 - The given type or method 'Api.Startup' was not found. Try specifying the Assembly.
To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
   at Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup()
   at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context)
   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)

回收IIS应用程序池通常可以解决此问题,但实际情况令人担忧。你知道是什么导致了这种情况吗?

你的创业课程是什么样子的?它是否具有
OwinStartup
属性?您的Web.config的appSettings中有任何
owin:
键吗?@CrazyPyro感谢您的回复,但请注意时间戳。这是近一年前的一个问题,因此在这段时间内,对源代码的访问已经丢失。