错误" System.IO.IOException:进程无法访问文件..."在ELMA BPM服务重启

时间:2016-04-22 07:40:39

标签: c# asp.net iis

有人可以帮我解决这个错误吗?我在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()*

1 个答案:

答案 0 :(得分:0)

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