Search results for query: *

  1. J

    Service F9 BreakPoint Debuging

    Here's an example of an app that I wrote that can be debugged via the Console and then installed as a Windows service: using NSWHealth.DX.Common; using SI.Moh.Phisco_Periph.Dto.Mapping; using System.IO; using System.Linq; using System.ServiceProcess; namespace SI.Moh.Periph.Submissions.Service...
  2. J

    I want to upload a Windows local drive file to a Linux server FTP.

    Actually, looking more closely at your code, it would be better to create a FileStream and then call CopyTo to copy the data to the request stream. That way, you're not creating a byte array containing all the data needlessly. That would be especially important for large files.
  3. J

    I want to upload a Windows local drive file to a Linux server FTP.

    An FTP server is an FTP server. The OS it's running on is irrelevant because you're dealing only with the FTP protocol. It's the task of the server software to deal with the differences between OSes. As for your question, just try it for yourself and see what happens. If it works then it works...
  4. J

    FTP error 501 Server cannot accept argument

    Have you tried using an FTP application to access the same server? That should be part of your testing, to see what connection details, etc, you need to use there and thus also use in your code. If you're trying to do something in your code that you can't do in an FTP client then it's bound to...
  5. J

    Cant get my grid to display the data from my sql

    For future reference, please post only code relevant to the issue. The more irrelevant code you post, the harder it is for us to even find the problem, never mind focus on it. In your case, we definitely don't need the namespace declaration or anything outside it, and we definitely don't need...
  6. J

    Copy from FTP(12.50.100.21) to FTP(12.45.222.25)

    If you're asking where you should save the file you download then that's completely up to you, but it should be somewhere sensible. The current user's temp folder would make sense, but there are other options.
  7. J

    Copy from FTP(12.50.100.21) to FTP(12.45.222.25)

    Please read the words this time. The download and the upload are two separate operation. You're downloading a file from an FTP site to your local machine. You are then uploading a file from your local machine to another FTP site. They are separate operations so treat them that way. Go and do...
  8. J

    Copy from FTP(12.50.100.21) to FTP(12.45.222.25)

    Do you think that uploading before downloading would be an option? Do you think that you can put groceries in your cupboard before buying them from the supermarket? Please put some thought into the problem. The same logic that you have used your whole life up to this point does not suddenly go...
  9. J

    Copy from FTP(12.50.100.21) to FTP(12.45.222.25)

    Telling us you're an idiot doesn't mean that we'll do your work for you. I doubt that you are an idiot, to be frank. I would suggest that you're just lazy, which is a far more common scenario. If you want to use FTP in C#, do some research on how to use FTP in C#. There is plenty of information...
  10. J

    Trying to get the autofill thing working

    So same advice then. Have you looked through the VS options? What did you find relating to Intellisense? Have you tried changing anything that looks relevant? Have you considered providing us with a screenshot of what you see there so we can determine whether there's anything set incorrectly?
  11. J

    Problem with MQTT client

    From what I saw with a quick search, you create an MqttConnectOptions object with that data and pass it as an argument when you call MqttClient.Connect. I may be wrong about that, as I've never used these classes and I didn't search very rigorously.
  12. J

    Reading DataReader Results into Object with List property Help!

    Here's how I might do it. Firstly, my data classes would look like this: public class Customer { public string Name { get; set; } public string Location { get; set; } public string Status { get; set; } public List<Invoice> Invoices { get; } = new List<Invoice>(); } public...
  13. J

    Reading DataReader Results into Object with List property Help!

    By the way, the code you posted would not compile because your list property has no name. Presumably it should be Invoices. You really ought to be copying working code from VS and posting it here if you possibly can. Also, while you don't have to, you really should start property names with an...
  14. J

    Reading DataReader Results into Object with List property Help!

    Based on the data you have shown, you would have two Customer objects with a name of "Customer1" and location of "Maryland" because you have two different status values. Is that correct?
  15. J

    Question Dispose webView2

    All controls need to be disposed and any controls you add to a form in the designer will be disposed when that form is disposed. If you added this WebView2 to the form in the designer then you don't need to explicitly dispose it, any more than you need to explicitly dispose a Button or a...
  16. J

    System.Data.SqlClient.SqlException:

    Simply copy/pasting an error message is not acceptable. Please provide a FULL and CLEAR explanation of the problem, including exactly what you're trying to achieve, how you're trying to achieve it (relevant code) and what happens when you try (error message and location). That said, that error...
  17. J

    Question Play mp3 file from external storage with Maui.Audio

    I just did a quick search for "OpenAppPackageFileAsync" and that method appears to return a Stream. If you have an example that uses that result then you have an example that can be easily adapted to work with any Stream. That would suggest that your actual problem is how to get a Stream from a...
  18. J

    In AnyCPU, using x86.dll

    If you are creating a library that has to reference another library that is x86 then your library cannot run in a 64-bit process anyway, so why would you need to target Any CPU? Make your library x86 and have it reference the existing x86 library, then the advice that I've already provided will...
  19. J

    In AnyCPU, using x86.dll

    This is a perfect example of why you need to provide a FULL and CLEAR explanation in the first place. If you don't, we have to guess or assume and we can get that wrong and waste everyone's time. I assumed that you were creating an application project that was referencing a library. I would...
  20. J

    In AnyCPU, using x86.dll

    I tested before posting and it worked for me so I'm not sure what's different with your projects/assemblies. Exactly what library are you trying to reference? Have you checked the box I mentioned?
Back
Top Bottom