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.
Ajay
46
Points
3
Posts
|
I'm using .net 4.7. Showing errow when passing special characters in the url and getting following error:
A potentially dangerous Request.Path value was detected from the client (&).","Data":null,"InnerException":null
Is there anyway to resolve it?
Views:
1127
Total Answered:
3
Total Marked As Answer:
1
Posted On:
16-Apr-2024 06:19
|
ykl
342
Points
18
Posts
|
Getting following error - Migrating blazor server to .net 8 with blazor app:
InvalidOperationException: Endpoint / (/) contains anti-forgery metadata, but a middleware was not found that supports anti-forgery. Configure your application startup by adding app.UseAntiforgery() in the application sta ...
Views:
4259
Total Answered:
3
Total Marked As Answer:
1
Posted On:
03-Jan-2024 05:22
|
Smith
2984
Points
80
Posts
|
I'm using Hangfire job in my .net application. It seems lot of data as logs. How do I clear all my jobbs.
Views:
6870
Total Answered:
1
Total Marked As Answer:
1
Posted On:
27-Nov-2022 05:06
|
beginer
1576
Points
53
Posts
|
Suppose I have following c# object:
public class CustomerDemo
{
public int CustomerId { get; set; }
public string CustomerName { get; set; }
public string PhoneNumber { get; set; }
public string Email { get; set; }
}
var customerList = new List<CustomerDemo>();
And ...
Views:
1330
Total Answered:
2
Total Marked As Answer:
0
Posted On:
05-Oct-2022 01:01
|
beginer
1576
Points
53
Posts
|
I'm trying to generate rss/feed xml response in an ASP.MVC application. What is the best way to return XML from a controller's action in ASP.NET MVC? There is a nice way to return JSON, but not for XML. I need to do something like
public class FeedController : Controller
{
public Act ...
Views:
2403
Total Answered:
1
Total Marked As Answer:
0
Posted On:
05-Oct-2022 00:07
|
Priya
1436
Points
43
Posts
|
In asp.net application, I'm trying to determine the exception of type SQLException so that if any db exception occurs we log error or so. I have following section in Global.asax.cs
void Application_Error(object sender, EventArgs e)
{
var _logger = LogManager.GetCurrentClassLo ...
Views:
1716
Total Answered:
1
Total Marked As Answer:
1
Posted On:
08-Jan-2022 05:01
|
Rashmi
1224
Points
22
Posts
|
I'm trying to save data with linq to class. I'm getting following error at line _dbContext.SubmitChanges();:
Cannot add an entity with a key that is already in use
at System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited)
at System.Data.Li ...
Views:
14949
Total Answered:
3
Total Marked As Answer:
1
Posted On:
24-Nov-2018 04:17
|
beginer
1576
Points
53
Posts
|
I'm trying to publish the wpf project and getting following error
Error 2 An error occurred while signing: Failed to sign SignTool Error: No certificates were found that met all the given criteria.
Earlier it was working fine.
Views:
30396
Total Answered:
2
Total Marked As Answer:
1
Posted On:
28-Aug-2018 09:01
|
Stevan
312
Points
20
Posts
|
I'm try to focus on browse button through following code
if (!System.IO.Directory.Exists(MergeFilePath))
{
MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show("Please select Destination Folder", "Select Destination Folder", System.Windows.MessageBoxButt ...
Views:
20108
Total Answered:
1
Total Marked As Answer:
0
Posted On:
25-Aug-2018 19:35
|
Ankit t...
112
Points
11
Posts
|
I have to make a datewise guest room allocation report as in asp.net . how to make this type of design as i have upload . All room no are dynamic
Views:
10319
Total Answered:
1
Total Marked As Answer:
0
Posted On:
26-May-2018 00:19
|
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.