繁体   English   中英

ELMA BPM 服务重启时出现错误“System.IO.IOException: The process can not access the file...”

[英]Error "System.IO.IOException: The process can not access the file..." at ELMA BPM service restart

有没有人可以帮我解决这个错误? 我在 ELMA BPM 设计器中工作以创建新的文档类型。 要应用更改,我必须从设计器的发布页面重新启动服务器。 但重启失败并出现此错误:

*EleWise.ELMA.Runtime.Exceptions.ConfigurationInitializeException: Could not initialize provider (EleWise.ELMA.Extensions.MSSQL.MSSQLProvider) ---> System.IO.IOException: The process can not access the file "C:\ELMA3-Standart\Web\App_Data\CompiledModel\EleWise.ELMA.ConfigurationModel.dll", because this file is used by another process. 
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 
в System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) 
в EleWise.ELMA.Extensions.IOExtensions.<>c__DisplayClass2.ojGdPYsZsVXSCIcncMJy(Object , Object ) 
в EleWise.ELMA.Extensions.IOExtensions.<>c__DisplayClass2.<WriteAllBytesWithAttempts>b__0() 
в EleWise.ELMA.Extensions.ActionExtensions.ExecuteWithAttempts(Action action, TimeSpan interval, Int32 attemptCount, Func`2 canRetry) 
в EleWise.ELMA.Extensions.ActionExtensions.ExecuteWithAttempts(Action action, TimeSpan interval, Int32 attemptCount) 
в EleWise.ELMA.Extensions.IOExtensions.V8SiNHPWKWSx55xVAVO(Object , TimeSpan interval, Int32 attemptCount) 
в EleWise.ELMA.Extensions.IOExtensions.WriteAllBytesWithAttempts(String fileName, Byte[] bytes, TimeSpan interval, Int32 attemptCount) 
в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.gtNM326hspFGnkwJWMer(Object , Object , TimeSpan interval, Int32 attemptCount) 
в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.Register(ModelRegistrar r, NHManagerRegisterParams parameters) 
в EleWise.ELMA.Model.Managers.ModelRegistrar.UfaKdxswFE3lDcr0dnAE(Object , Object , Object ) 
в EleWise.ELMA.Model.Managers.ModelRegistrar.Register(NHManagerRegisterParams parameters) 
в EleWise.ELMA.Runtime.Providers.NHProvider.sNUTU0slYESilTqkrdpp(Object , Object ) 
в EleWise.ELMA.Runtime.Providers.NHProvider.Init() 
в EleWise.ELMA.Runtime.RuntimeApplication.hoDmZpsRD8169HIgClCG(Object ) 
в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider) 
--- End of inner exception stack trace --- 
в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider) 
в EleWise.ELMA.Runtime.RuntimeApplication.vV6Ci8sREl65cvg3g8j0(Object , Object ) 
в EleWise.ELMA.Runtime.RuntimeApplication.Init() 
в EleWise.ELMA.ComponentModel.ComponentManager.S3XEv7YWCC6moQn6U26O(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.<RegisterComponents>b__c(Object h) 
в EleWise.ELMA.ComponentModel.ComponentManager.InvokeInitHandlers(Action`1 action) 
в EleWise.ELMA.ComponentModel.ComponentManager.RegisterComponents() 
в EleWise.ELMA.ComponentModel.ComponentManager.iOqsdcYuK9kGiI5HFBNd(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.Init() 
в EleWise.ELMA.ComponentModel.ComponentManager.mULmXFYu3IXZsc8MnIcS(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workDirectory) 
в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.RqpX6RqgtspSri31B0(Object , Object , Object ) 
в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.StartApplicationInThread() 
Could not initialize provider (EleWise.ELMA.Extensions.MSSQL.MSSQLProvider) 
EleWise.ELMA.SDK 
в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider) 
в EleWise.ELMA.Runtime.RuntimeApplication.vV6Ci8sREl65cvg3g8j0(Object , Object ) 
в EleWise.ELMA.Runtime.RuntimeApplication.Init() 
в EleWise.ELMA.ComponentModel.ComponentManager.S3XEv7YWCC6moQn6U26O(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.<RegisterComponents>b__c(Object h) 
в EleWise.ELMA.ComponentModel.ComponentManager.InvokeInitHandlers(Action`1 action) 
в EleWise.ELMA.ComponentModel.ComponentManager.RegisterComponents() 
в EleWise.ELMA.ComponentModel.ComponentManager.iOqsdcYuK9kGiI5HFBNd(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.Init() 
в EleWise.ELMA.ComponentModel.ComponentManager.mULmXFYu3IXZsc8MnIcS(Object ) 
в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workDirectory) 
в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.RqpX6RqgtspSri31B0(Object , Object , Object ) 
в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.StartApplicationInThread()*

尝试停止应用程序池并稍后重新启动它。 即时重启有时会失败,因为之前的实例仍在工作。 这不是错误,只是一个功能。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM