We ran into an error.

Unexpected response status: 500 with body: Cannot create/shadow copy 'Microsoft.Owin' when that file already exists.

Server Error in '/' Application.

Cannot create/shadow copy 'Microsoft.Owin' when that file already exists.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Cannot create/shadow copy 'Microsoft.Owin' when that file already exists.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Owin' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:


[FileLoadException: Cannot create/shadow copy 'Microsoft.Owin' when that file already exists.]

[FileLoadException: Cannot create/shadow copy 'Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' when that file already exists.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +484
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +253
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +130

[ConfigurationErrorsException: Cannot create/shadow copy 'Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' when that file already exists.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1217
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +318
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +76
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +318
   System.Web.Http.WebHost.WebHostAssembliesResolver.System.Web.Http.Dispatcher.IAssembliesResolver.GetAssemblies() +42
   System.Web.Http.Dispatcher.DefaultHttpControllerTypeResolver.GetControllerTypes(IAssembliesResolver assembliesResolver) +100
   System.Web.Http.WebHost.WebHostHttpControllerTypeResolver.GetControllerTypes(IAssembliesResolver assembliesResolver) +93
   System.Web.Http.Dispatcher.HttpControllerTypeCache.InitializeCache() +75
   System.Lazy`1.CreateValue() +853
   System.Lazy`1.LazyInitValue() +500
   System.Web.Http.Dispatcher.DefaultHttpControllerSelector.InitializeControllerInfoCache() +330
   System.Lazy`1.CreateValue() +853
   System.Lazy`1.LazyInitValue() +500
   System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetControllerMapping() +63
   System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver constraintResolver, IDirectRouteProvider directRouteProvider) +84
   System.Web.Http.Routing.<>c__DisplayClass4.<MapAttributeRoutes>b__1() +182
   System.Web.Http.Routing.RouteCollectionRoute.EnsureInitialized(Func`1 initializer) +63
   System.Web.Http.Routing.<>c__DisplayClass2.<MapAttributeRoutes>b__0(HttpConfiguration config) +111
   System.Web.Http.<>c__DisplayClass3.<AddCorsMessageHandler>b__0(HttpConfiguration config) +366
   SitewrenchAPI.WebApiApplication.Application_Start() in C:\Program Files (x86)\Jenkins\workspace\api-sitewrench-master-webdeploy\SitewrenchAPI\Global.asax.cs:22

[HttpException (0x80004005): Cannot create/shadow copy 'Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' when that file already exists.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +555
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +181
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +266

[HttpException (0x80004005): Cannot create/shadow copy 'Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' when that file already exists.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +694
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +165
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +739


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274

You can go back and try again.