Category: .NET

.Net

0

.Net Web API 2 returns query string instead of XML or JSON

public HttpResponseMessage Get(…) { string AllResults = "";   ScanResultModel returnRec;   returnRec = this.Get(…);   AllResults = Helpers.GetXMLFromObject(returnRec);   AllResults = AllResults.Replace("StatusMessage", "STATUS_MSG");   retUrl = retUrl + "?returnXML=" + AllResults;   var...

0

FTPS via WinSCP.NET

Download COM object from https://winscp.net/eng/docs/library#vbnet or from NuGet Example Code in VB.net   Imports WinSCP —–   Try ‘ Setup session options Dim sessionOptions As New SessionOptions With sessionOptions .Protocol = Protocol.Ftp .FtpSecure =...