CompuMasterGmbH / cammIntegrationPortal

camm Integration Portal (based on camm Web-Manager)
MIT License
2 stars 1 forks source link

CWX & DownloadHandler: Providing file initially fails (2nd attempt with success) #16

Closed jochenwezel closed 8 years ago

jochenwezel commented 8 years ago

Reported error:

System.Exception: Win32 Fehlermeldung: 'System.ComponentModel.Win32Exception (0x80004005): Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist'
Hardlink-Sourcefile: 'C:\src\cwx\fte\vw\123rf Bilder.zip'
Hardlink-Targetfile: 'C:\inetpub\www\system\downloads\3Z_l2vCEPxYKt4NteaxQqQtt\cache\cwx\aS5ISs4w_WfwwCWWZqKSYQtt\123rf Bilder.zip'
bei CompuMaster.camm.WebManager.Tools.IO.Junctions.Create(String ExistingFileSystemObject, String NewLinkingFileSystemObject, LinkTypeDirectives LinkType) in G:\svn\products\cwm\libraries\base\cammWM\CompuMaster.camm.WebManager.Tools.IO.Junctions.vb:Zeile 142.
bei CompuMaster.camm.WebManager.DownloadHandler.GetDataToRecordAndProcess(DownloadLocations downloadLocation, String pathInDownloadLocation, Boolean overwrite, Boolean zipFilesFirst, String zipArchiveName, Boolean enforceDownload) in G:\svn\products\cwm\libraries\base\cammWM\DownloadHandler.vb:Zeile 1505
JochenHWezel commented 8 years ago

maybe a call to the garbage collector does the trick if thread.sleep doesn't help for the win32 api to cleanup/release file handles on time

jochenwezel commented 8 years ago

possibly, the error is not related to (workaround in) our code - but to .NET framework patch status. Latest Windows updates might already solve this problem.