Programming Questions and Answers for Developers

Developer Q&A Community

Welcome to the NiceOneCode Questions and Answers community, where developers, students, and technology professionals can ask programming questions, share knowledge, and find practical solutions to real-world coding challenges.

Explore hundreds of technical questions covering .NET, ASP.NET Core, C#, SQL Server, JavaScript, Java, PHP, HTML, cloud development, APIs, Entity Framework Core, Blazor, Azure, Docker, debugging, performance optimization, and software architecture.

Whether you are troubleshooting an application error, learning a new technology, preparing for interviews, or looking for best practices, our community-driven Q&A platform helps developers find accurate answers and practical implementation guidance.

50 Questions

sw
sw
170 Points
7 Posts
Getting error during docker build during restore: error nu1301 unable to load the service index for source https //api.nuget.org/v3/index.json. docker  
Views: 2017
Total Answered: 1
Total Marked As Answer: 0
Posted On: 30-Mar-2023 04:47 
 
ykl
ykl
342 Points
18 Posts
Getting sometime error like: System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. Here is failing: const SslProtocols sslProtocol = SslProtocols.Tls12; var task = _sslStream.AuthenticateAsClientAsync(targetHost, _defaultClientCertificates, sslProtocol, _chec ...
Views: 9496
Total Answered: 1
Total Marked As Answer: 0
Posted On: 09-Jan-2023 05:32 
 
Nitesh
Nitesh
2 Points
1 Posts
I have a dictionary that has some values in it, say: Flowers <string, string> I now receive another similar dictionary, say: NewFlowers <string,string> How can I append the entire NewFlowers dictionary to Flowers?
Views: 3506
Total Answered: 1
Total Marked As Answer: 0
Posted On: 12-Dec-2022 06:48 
 
Raj
Raj
648 Points
26 Posts
I'm trying switch case as follows: switch (strVal1) { case "hello": if(strVal2=="true"){ // do something } break; case "hello": if(strVal2=="false"){ // do something } etc .... } Do ...
Views: 4370
Total Answered: 1
Total Marked As Answer: 1
Posted On: 14-Sep-2022 02:25 
 
Priya
Priya
1436 Points
43 Posts
I'm trying following query: var modifiedOrders = await _applicationUnitOfWork.OrderRepository.Find(a => a.createdDate!= null && a.lastUpdated != (a.createdDate ?? DateTime.UtcNow)).SortBy(x => x.createdDate).ToListAsync(); But getting following error: EXCEPTION: Unsupported filt ...
Views: 2784
Total Answered: 1
Total Marked As Answer: 1
Posted On: 26-May-2022 20:44 
 
Raj
Raj
648 Points
26 Posts
I have self reference entity like as: public class Folder { public int Id { get; set; } public int ParentId { get; set; } public string Name { get; set; } } For example: class Program { static void Main(string[] args) { var l ...
Views: 1629
Total Answered: 1
Total Marked As Answer: 1
Posted On: 12-May-2022 22:09 
 
beginer
beginer
1576 Points
53 Posts
I'm using DateTime to create new datetime instance as: DateTime startDateUser = DateTime.UtcNow.Date.AddDays(100); while (startDateUser.Date <= DateTime.UtcNow.Date) { DateTime startDate = new DateTime(startDateUser.Year, startDateUser.Month, (startDateUser.Day - 1), 23, 59, 59); DateTime ...
Views: 3927
Total Answered: 1
Total Marked As Answer: 1
Posted On: 13-Apr-2022 22:20 
 
edx
edx
506 Points
24 Posts
I'm trying following code to update items in a list as follow: class Program { static void Main(string[] args) { var strings = new List<string> { "foo", "foo" }; var list = strings.Select(x => new Foo { A = x }).ToList(); l ...
Views: 7768
Total Answered: 3
Total Marked As Answer: 3
Posted On: 01-Feb-2022 02:07 
 
beginer
beginer
1576 Points
53 Posts
I'm trying to connect an api which returning gzip compressed data in response. Due to this HTTP client throwing error: Doing something: public async Task<string> GetResponseString(string text) { var httpClient = new HttpClient(); var parameters = new Dictiona ...
Views: 9180
Total Answered: 2
Total Marked As Answer: 2
Posted On: 08-Nov-2021 03:32 
 
mongo
mongo
170 Points
8 Posts
I have written group aggregate pile line. It was working fine. But now getting error as: Command aggregate failed: Exceeded memory limit for $group, but didn't allow external sort. Pass allowDiskUse:true to opt in..MongoDB.Driver.Core! I'm trying something: var group = new BsonDocument ...
Views: 10296
Total Answered: 2
Total Marked As Answer: 1
Posted On: 12-Oct-2021 02:43 
 

Developer Q&A Community

Welcome to the NiceOneCode Questions and Answers community, where developers, students, and technology professionals can ask programming questions, share knowledge, and find practical solutions to real-world coding challenges.

Explore hundreds of technical questions covering .NET, ASP.NET Core, C#, SQL Server, JavaScript, Java, PHP, HTML, cloud development, APIs, Entity Framework Core, Blazor, Azure, Docker, debugging, performance optimization, and software architecture.

Whether you are troubleshooting an application error, learning a new technology, preparing for interviews, or looking for best practices, our community-driven Q&A platform helps developers find accurate answers and practical implementation guidance.

Frequently Asked Questions

What topics can I ask questions about?

You can ask questions related to .NET, ASP.NET Core, C#, SQL Server, JavaScript, Java, PHP, HTML, cloud technologies, APIs, databases, software architecture, and other programming topics.

Can I answer questions posted by other developers?

Yes. Registered members can contribute answers, share solutions, and help other developers solve technical problems.

Is NiceOneCode suitable for beginner developers?

Yes. The platform includes beginner-friendly questions as well as advanced discussions covering enterprise application development, cloud technologies, and software architecture.

How do I ask a programming question?

Create an account, choose the appropriate category, provide a clear problem description, include relevant code examples, and submit your question to the community.

 Log In to Chat