Click here to Skip to main content
14,668,067 members
Home » Discussions » .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: difficulties with AdvancedDatagridView Pin
Pete O'Hanlon7-May-20 1:49
subeditorPete O'Hanlon7-May-20 1:49 
QuestionWindows 1903 Jump Lists Pin
Robert Heath29-Apr-20 19:25
MemberRobert Heath29-Apr-20 19:25 
GeneralRe: Windows 1903 Jump Lists Pin
Richard MacCutchan29-Apr-20 23:10
mveRichard MacCutchan29-Apr-20 23:10 
AnswerRe: Windows 1903 Jump Lists Pin
Eddy Vluggen29-Apr-20 23:29
professionalEddy Vluggen29-Apr-20 23:29 
Questionhow to use datatable as Datasource with Datagridview unless datagridviewrow Pin
Member 1473386629-Apr-20 2:31
MemberMember 1473386629-Apr-20 2:31 
AnswerRe: how to use datatable as Datasource with Datagridview unless datagridviewrow Pin
Richard MacCutchan29-Apr-20 3:20
mveRichard MacCutchan29-Apr-20 3:20 
QuestionThere is no Unicode byte order mark. Cannot switch to Unicode. Pin
Michele Smith20-Apr-20 12:56
MemberMichele Smith20-Apr-20 12:56 
AnswerRe: There is no Unicode byte order mark. Cannot switch to Unicode. Pin
Richard Deeming21-Apr-20 0:21
mveRichard Deeming21-Apr-20 0:21 
Either the remote service is expecting Unicode data, or your generated XML has specified that it's using Unicode.

Try sending the request with the Unicode encoding:
string xmlString = CalculateOrderQueryXML(key, accountName);
StringContent stringContent = new StringContent(xmlString, System.Text.Encoding.Unicode, System.Net.Mime.MediaTypeNames.Text.Xml);
using (HttpResponseMessage response = await http.PostAsync("https://www.mywebsite.com/shared/xml/orderquery.rest", stringContent))
{
    string responseString = await response.Content.ReadAsStringAsync();
    XmlDocument xml = new XmlDocument();
    xml.LoadXml(responseString);
    return xml.OuterXml;
}

If that doesn't work, then you'll need to check the result of your CalculateOrderQueryXML method.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionResource Error Pin
Member 129880739-Apr-20 18:19
MemberMember 129880739-Apr-20 18:19 
QuestionRe: Resource Error Pin
Richard MacCutchan9-Apr-20 21:37
mveRichard MacCutchan9-Apr-20 21:37 
AnswerRe: Resource Error Pin
Dave Kreskowiak10-Apr-20 6:40
mveDave Kreskowiak10-Apr-20 6:40 
AnswerRe: Resource Error Pin
Jin Vincent Necesario15-Apr-20 19:10
professionalJin Vincent Necesario15-Apr-20 19:10 
QuestionHow to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 12:29
Membersimpledeveloper30-Mar-20 12:29 
AnswerRe: How to know which Id belongs to which object? Pin
Eddy Vluggen30-Mar-20 13:06
professionalEddy Vluggen30-Mar-20 13:06 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 19:46
Membersimpledeveloper30-Mar-20 19:46 
AnswerRe: How to know which Id belongs to which object? Pin
Richard Deeming31-Mar-20 1:10
mveRichard Deeming31-Mar-20 1:10 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper1-Apr-20 10:35
Membersimpledeveloper1-Apr-20 10:35 
GeneralRe: How to know which Id belongs to which object? Pin
Richard Deeming1-Apr-20 13:05
mveRichard Deeming1-Apr-20 13:05 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper2-Apr-20 6:30
Membersimpledeveloper2-Apr-20 6:30 
QuestionAn expression tree lambda may not contain a null propagating operator Pin
simpledeveloper27-Mar-20 21:38
Membersimpledeveloper27-Mar-20 21:38 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Richard MacCutchan27-Mar-20 23:48
mveRichard MacCutchan27-Mar-20 23:48 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Bohdan Stupak28-Mar-20 4:38
professionalBohdan Stupak28-Mar-20 4:38 
QuestionColumn length change using Entity Framework Code First Pin
simpledeveloper17-Mar-20 13:59
Membersimpledeveloper17-Mar-20 13:59 
AnswerRe: Column length change using Entity Framework Code First Pin
Gerry Schmitz17-Mar-20 16:22
mveGerry Schmitz17-Mar-20 16:22 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:28
Membersimpledeveloper18-Mar-20 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.