Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Violation #1

Closed
eltigre4jc opened this issue Jun 29, 2017 · 3 comments
Closed

Access Violation #1

eltigre4jc opened this issue Jun 29, 2017 · 3 comments
Labels

Comments

@eltigre4jc
Copy link

I have successfully used this client for transferring a bin file to a device.
But when I tried for another model, from the same vendor, I got Access Violation.

TFTPClient.Upload(New IPEndPoint(IPAddress.Parse("192.168.0.21"), 69), System.IO.Directory.GetCurrentDirectory() & "\" & path, "/tmp/temp/fw_1200.bin")

Why am I getting this error? it maybe something with the server?

@jpmikkers
Copy link
Owner

Hi,
If you copy-paste the exception + stack-trace that occurred, that'll show if the error happened on the client or server.

@eltigre4jc
Copy link
Author

Server Error Access Violation: Access Violation
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.HandleError(TFTPPacket_Error p) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 504
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.DoUpload(TFTPPacket packet) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 425
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.FilterPacket(TFTPPacket packet, Func2 step) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 222 at CodePlex.JPMikkers.TFTP.Client.TFTPClient.<Upload>b__38_0(TFTPPacket p) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 310 at CodePlex.JPMikkers.TFTP.Client.TFTPClient.PumpPackets(Func2 step) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 164
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.Upload(String filename, Stream stream) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 310
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.Upload(IPEndPoint serverEndPoint, Stream localStream, String remoteFilename, Settings settings) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 542
at CodePlex.JPMikkers.TFTP.Client.TFTPClient.Upload(IPEndPoint serverEndPoint, String localFilename, String remoteFilename, Settings settings) in c:\Users\z003mh7c\Downloads\TFTPClient-master\TFTPClient\Library\TFTPClient.cs:line 534
at SiwarexTest.WP2XXObject.PerformFirmwareUpdateAndRestartDevice(String path, Boolean waitForEth, Int32 waitAfterRestart)

@jpmikkers
Copy link
Owner

Right, this is TFTP error code 2, sent by the server. It means you don't have write permissions in the directory you're trying to upload to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants