When configuring live integration I get the following exception
500
https://localhost:6001/Admin/Api/Shadow/bcc454d0c1994096a9a0f432a28ee2de System.IO.IOException: The process cannot access the file 'D:\Repos\New\TestStuff\dw10\wwwroot\Files\System\ShadowEdit\bcc454d0c1994096a9a0f432a28ee2de.json' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.File.WriteAllText(String path, String contents) at Dynamicweb.CoreUI.Data.ShadowEditing.ShadowEditFileSystemRepository.SaveShadowEdit(ShadowEdit shadowEdit) at Dynamicweb.CoreUI.Data.ShadowEditing.ShadowEditService.SaveShadowEdit(ShadowEdit shadowEdit) at Dynamicweb.Management.Api.Controllers.Api.DataController.PersistShadowEdit(String id, Dictionary`2 values) at lambda_method319(Closure , Object , Object[] )
Steps to reproduce
- Click Integration
- Under Live, click the Plus icon
- In the drop-down, choose ERP Live integration
Actual results
The error message from above appears
Expected results:
I can configure LI correctly
The error doesn’t happen all the time; it seems to be a timing issue because sometimes it works and sometimes it doesn’t.