lundi 5 février 2018

Error copying file to Sharepoint site

Apparently i am receiving .net exception error when uploading files to Sharepoint site, Files include CSS, Images, Javascripts. I m using Sharepoint client DLL to connect and upload my files to the server. My code is also design to retry uploading if at some point the connection was disconnected.

I can see on my logs that some are failing but also succeed at some point when im retrying. However there is a file that reach my limit on retries and just failed.

I have the exception error seen below. The network is running on a DUAL tier firewall, Im not sure if this cause the issue.

----CODE ERROR EXCEPTION----

*** Error copying file 'plugin.min.js'... RETRY!, Exception type: 'System.Net.WebException' Exception message: '', Inner exception: 'System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. - --> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

--- End of inner exception stack trace ---

at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)

at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead).

It's really weird as it only fails on this file. It was a plugin minified file from a tinymce library : TinyMCE

Network team is suspecting that this could be a malware, but i cant debug it as it was already a minified file.

Hope you can help me on this THANKS.




Aucun commentaire:

Enregistrer un commentaire