TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sujeet Raman
862
927
352.1k
CS1056 -Unexpected character "" What does it mean?
May 11 2021 1:18 PM
Hi,
I am creating a service in asp.net core api..while building my code i am getting this error
CS1056 -Unexpected character ""
when i declare string name = "projects/max78A"; i am getting this error
my code:
using
(var httpClient =
new
HttpClient())
{
string
name =
"projects/max78A"
;
var content =
"{\"name\": \""
+ name +
"\"}"
;
var stringContent =
new
StringContent(content, Encoding.UTF8,
"text/plain"
);
Console.WriteLine(
"Sending Request: "
+ requestUri + stringContent);
HttpResponseMessage response = await httpClient.PostAsync(requestUri, stringContent).ConfigureAwait(
false
);
return
await response.Content.ReadAsStringAsync();
}
i havent face this problem before please help me to understand what is the issue
Reply
Answers (
4
)
Taking Control of Keyboard When Using Calculator Program
Compressed Image Uploading