Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9049093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:18:31+00:00 2026-06-16T12:18:31+00:00

Very strange scenario happens with me when I try to post something to the

  • 0

Very strange scenario happens with me

when I try to post something to the WCF method and this something has \r as two separate characters actually I send “domain\machine” to the WCF.

The strange thing is that the machine name starts with R so the string I send is
“domain\r**” so when WCF receives it it asssumes I want to send \r which stands for line feed character so it replace it with single character. any hint how to avoid this?

This is the function signature

[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "json/listServer")]
Response ListShares(Request request); 

Request is a data contract class that has only one data member ServerName which is of type string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:18:32+00:00Added an answer on June 16, 2026 at 12:18 pm

    For some unknown reason to send \ in the the POST method to WCF web method you need to send it as \\\\ because JSON parser on the WCF side will try to find any escape characters followed by it!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very strange issue... I have something like this in my Controller: public ActionResult Initialize(IEnumerable<MyModel>
Something very strange is happening in my program: I make this query agt.DefaultNr ==
Something very strange with this website copious.com, when you registered on this website via
We had a very strange issue on our servers this week, where a method
This very strange. When I resize a WinForms dialog the controls are flickering very
I have a very strange problem. I have a working WCF service. [ServiceContract] public
Something very strange is going on with a custom view containing a TextView .
Something very strange. WSDL file generates fine. Here is source simple class class SoapTest
Something very strange happened here in Visual Studio 2008 (C#). After deleting an icon
Still kinda new to ASP.net and I have this strange problem. Its a very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.