15,921,276 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by guptaritu (Top 5 by date)
guptaritu
14-Dec-21 4:51am
View
No exceptions no errors but not getting the file which is stored in bucket
for example
bucket1\\bucket2\\abc.csv
I want to read abc.csv file.
guptaritu
24-May-21 6:29am
View
how?
guptaritu
24-May-21 5:51am
View
i tried this:
string baseValue = System.Configuration.ConfigurationManager.AppSettings["Base_GDL_Matltrans"];
string relVaue = System.Configuration.ConfigurationManager.AppSettings["Relative_GDL_Matltrans"];
searchURL = (string)baseValue.Concat(relVaue);
guptaritu
19-May-21 12:15pm
View
this is my modified code
HttpClient client = new HttpClient();
client.BaseAddress = new Uri(url);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage response = client.GetAsync("https://csi10a.erpsl.inforcloudsuite.com/IDORequestService/ido/load/ue_GDL_CustAddrs").Result;
if (response.IsSuccessStatusCode)
{
var user = JsonConvert.DeserializeObject<list<ue_gdl_custaddrs>>(jsonString);
IEnumerable < ue_GDL_CustAddrs > Addr = response.Content.ReadAsAsync<ienumerable<ue_gdl_custaddrs>>().Result;
foreach (var p in Addr)
{
Console.WriteLine("{0}\t{1};\t{2}", p.Name, p.Addr1, p.Addr2);
Console.ReadLine();
}
guptaritu
19-May-21 12:13pm
View
initally i have json file in which some get methods are defined and i don't have database and i want consume web api in asp.net core console application and read json file from json file and send data to database.
url which i have passes in main method (which is access through postman, impport the json file in postman and retrieved some GET methods).
i have send the url through main method but got an exception
One or more errors occurred. (Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IEnumerable`1[Englert_Ewarranty_QAD_Integration_Details.ue_GDL_CustAddrs]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<t>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'Items', line 2, position 10.)'