如何知道怎么被占用

System.TypeInitializationException: “VideoOS.Platform.SDK.Environment”的类型初始值设定项引发异常。—> Autofac.Core.DependencyResolutionException:激活 VideoOS.Platform.SDK.EnvironmentService → VideoOS.Platform.SDK.SDKEnvironmentManager 时引发异常。—> Autofac.Core.DependencyResolutionException:在类型“SDKEnvironmentManager”上调用构造函数“Void .ctor()”时引发异常。—> System.IO.FileLoadException: 未能加载文件或程序集“VideoOS.IdentityServer.Common, Version=24.1.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89”或它的某一个依赖项。另一个程序正在使用此文件,进程无法访问。(异常来自 HRESULT:0x80070020)

在 VideoOS.Platform.SDK.Server.ConnectionCheck..ctor()

在 VideoOS.Platform.SDK.Config.SiteInfoManager..ctor()

在 VideoOS.Platform.SDK.Platform.SDKEnvironmentManager..ctor()

在 lambda_method(Closure , Object[] )

在 Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() 位置 C:\projects\autofac\src\Autofac\Core\Activators\Reflection\ConstructorParameterBinding.cs:行号 129

Please communicate in English in this forum.

I am guessing you see this exception. Please describe what you do, how and where you observe this.

Further guessing wildly, I found some previous answered question that might be relevant.- https://developer.milestonesys.com/s/question/0D5bH00000oec91SAA/compatibility-issue-with-milestonesystemsvideoosplatform-dll-in-niagara-framework

https://developer.milestonesys.com/s/question/0D5bH00000ZTCzdSAH/publish-component-to-exe

https://developer.milestonesys.com/s/question/0D5bH0000016h3xSAA/videoosplatformsdkenvironmentdll-library-integration-on-aveva-system-platform