bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
136 stars 47 forks source link

Error while posting attachment #6

Closed chmsajid7 closed 2 years ago

chmsajid7 commented 2 years ago

Hello guys, I am continuously getting an error, so any kind of help will be highly appreciated. I am sending file to PostAttachmentAsync end point but I receive an exception; -- error code 404 -- error message Could not process request (Create File Error: C:\tmp) (Call failed. Error while copying content to a stream: POST https://xxxxxxxxxxxxxxxx:xxxx/b1s/v1/Attachments2)

Thanks You.

bgmulinari commented 2 years ago

Hi. Could you please provide more details? If you could share the part of your code where the error occurs, that would be helpful. Also are you on SQL Server or HANA?

muhammadsajid1997 commented 2 years ago

I issue was resolved. The issue was that I didn't had right permissions in source path or Temp folder.

bgmulinari commented 2 years ago

That's good to hear. I'll be closing the issue but feel free to reopen it if you encounter any problem.