Close

ERROR: ConditionsResources.en-us.xml

lorenz
9 years ago
#8599 Quote
Avatar
  • 1
Hi,

Our Nop v3.50 instance hosted on Azure received the following errors:

The process cannot access the file 'D:\home\site\wwwroot\Plugins\SevenSpikes.Core\Resources\ConditionsResources.en-us.xml' because it is being used by another process.

Would you have any idea why that is?  Thanks,

Lorenz
hristian.dimov
9 years ago
#8609 Quote
Avatar
  • Moderator
  • 386
lorenz wrote:
Hi,

Our Nop v3.50 instance hosted on Azure received the following errors:

The process cannot access the file 'D:\home\site\wwwroot\Plugins\SevenSpikes.Core\Resources\ConditionsResources.en-us.xml' because it is being used by another process.

Would you have any idea why that is?  Thanks,

Lorenz


Hi lorenz,

it seems that the file is locked by some other process. Could you please restart your website and see if the problem will disappear.
Regards,
Hristian Dimov
Nop-Templates.com
keremdemirer
8 years ago
#10657 Quote
Avatar
  • 8
Hello,

We get this error after every deployment,  Do you have a workaround to prevent this?

Thanks,


Log:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/30/2016 9:35:57 PM
Event time (UTC): 1/30/2016 9:35:57 PM
Event ID: a05af13043aa4bc38c9f0454e907f424
Event sequence: 4
Event occurrence: 1
Event detail code: 0




Application information:
Application domain: /LM/W3SVC/525259833/ROOT-3-130986633171473573
Trust level: Full
Application Virtual Path: /
Application Path: D:\home\site\wwwroot\
Machine name: RD000D3A216FAD




Process information:
Process ID: 4928
Process name: w3wp.exe
Account name: IIS APPPOOL\pluscanvas-web-euwest__ebee




Exception information:
Exception type: HttpException
Exception message: The process cannot access the file 'D:\home\site\wwwroot\Plugins\SevenSpikes.Core\Resources\ConditionsResources.en-us.xml' because it is being used by another process. at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) 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)
The process cannot access the file 'D:\home\site\wwwroot\Plugins\SevenSpikes.Core\Resources\ConditionsResources.en-us.xml' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at 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) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at SevenSpikes.Nop.Framework.InstallHelper.Mv4DQIYrba(Object , Object , Object , Boolean ) at SevenSpikes.Nop.Framework.InstallHelper.Cu7vDNsqrwWGsapGMcj(Object , Object , Object , Boolean ) at SevenSpikes.Nop.Framework.InstallHelper.InstallLocaleResources(String pluginFolderName, String fileNameWithoutCultureAndExtension, Boolean updateExistingResources) at SevenSpikes.Nop.Plugins.Core.RouteProvider.InkJaeGCBVJBhmemefM(Object , Object , Object , Boolean ) at SevenSpikes.Nop.Plugins.Core.RouteProvider.InstallMissingResources() at SevenSpikes.Nop.Framework.Routing.BaseRouteProvider.D6vvRF7hHmZ4stfCKFi(Object ) at SevenSpikes.Nop.Framework.Routing.BaseRouteProvider.RegisterRoutes(RouteCollection routes) at Nop.Web.Framework.Mvc.Routes.RoutePublisher.<>c__DisplayClass3.b__1(IRouteProvider rp) at System.Collections.Generic.List`1.ForEach(Action`1 action) at Nop.Web.Framework.Mvc.Routes.RoutePublisher.RegisterRoutes(RouteCollection routes) at Nop.Web.MvcApplication.RegisterRoutes(RouteCollection routes) at Parabol.Web.MvcApplication.Application_Start()








Request information:
Request URL: http://pluscanvas-web-euwest-develop.azurewebsites.net/
Request path: /
User host address: 85.96.47.121
User: 
Is authenticated: False
Authentication Type: 
Thread account name: IIS APPPOOL\pluscanvas-web-euwest__ebee




Thread information:
Thread ID: 28
Thread account name: IIS APPPOOL\pluscanvas-web-euwest__ebee
Is impersonating: False
Stack trace: at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at
hristian.dimov
8 years ago
#10660 Quote
Avatar
  • Moderator
  • 386
keremdemirer wrote:
Hello,

We get this error after every deployment,  Do you have a workaround to prevent this?

Thanks,


Hi,

it seems that the file is locked for some reason. Have you tried the solution from the post above with the restarting of the application?
Regards,
Hristian Dimov
Nop-Templates.com
keremdemirer
8 years ago
#10661 Quote
Avatar
  • 8
It only happens after deployment and disappears after a while. But this issue causing big problems for our continious integration. It delays our applications warm up times about 2-3 minutes.

We got to ressolve this problem.
hristian.dimov
8 years ago
#10663 Quote
Avatar
  • Moderator
  • 386
keremdemirer wrote:
It only happens after deployment and disappears after a while. But this issue causing big problems for our continious integration. It delays our applications warm up times about 2-3 minutes.

We got to ressolve this problem.


Hi,

could you please tell us what are the steps of the deployment? Do you stop your site before the deploy? And do you deploy only the changed files or the whole site? Please provide as much information as you can, so that we can resolve this problem faster.

Looking forward to your reply!
Regards,
Hristian Dimov
Nop-Templates.com
keremdemirer
8 years ago
#10668 Quote
Avatar
  • 8
Hello again,

We deploy the app with ms web deploy, with changed files only. We take app offline before deployment app_offline file, but not stop the IIS which is not possible in our setup.

Thanks
Kerem
hristian.dimov
8 years ago
#10672 Quote
Avatar
  • Moderator
  • 386
keremdemirer wrote:
Hello again,

We deploy the app with ms web deploy, with changed files only. We take app offline before deployment app_offline file, but not stop the IIS which is not possible in our setup.

Thanks
Kerem


Hi,

We use the same approach when uploading files on our demo sites and we never had such an issue.

We use the "ConditionsResources.en-us.xml" file to read the resources from it and upload it to the database. Right after we finish with the file, we dispose it so it should not be open after the operation is done. Actually, we do this for a lot of .xml files, there is no reason that the problem will be with this file only. Can you check if the files has the correct permissions ?

Is there a way to find out which process is locking the file? This may be helpful to identify the problem.

Looking forward to your reply!
Regards,
Hristian Dimov
Nop-Templates.com
keremdemirer
8 years ago
#10674 Quote
Avatar
  • 8
So, is it ok if I remove them completely?
hristian.dimov
8 years ago
#10675 Quote
Avatar
  • Moderator
  • 386
keremdemirer wrote:
So, is it ok if I remove them completely?


Hi,

Once the resources are inserted into the database, the files are no longer needed. It is safe to delete them.
Regards,
Hristian Dimov
Nop-Templates.com