263 Questions

albert luies
albert ...
6 Points
3 Posts
Normal 0 false false false EN-IN X-NONE X-NONE ...
Views: 249
Total Answered: 12
Total Marked As Answer: 0
Posted On: 23-Jan-2025 22:32 
 
albert luies
albert ...
6 Points
3 Posts
Normal 0 false false false EN-IN X-NONE X-NONE ...
Views: 87
Total Answered: 0
Total Marked As Answer: 0
Posted On: 23-Jan-2025 22:31 
 
albert luies
albert ...
6 Points
3 Posts
Normal 0 false false false EN-IN X-NONE X-NONE ...
Views: 165
Total Answered: 4
Total Marked As Answer: 0
Posted On: 23-Jan-2025 22:30 
 
Ajay
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: 493
Total Answered: 3
Total Marked As Answer: 1
Posted On: 16-Apr-2024 06:19 
 
ykl
ykl
340 Points
17 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: 2223
Total Answered: 3
Total Marked As Answer: 1
Posted On: 03-Jan-2024 05:22 
 
Smith
Smith
2890 Points
78 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: 4743
Total Answered: 1
Total Marked As Answer: 0
Posted On: 27-Nov-2022 05:06 
 
beginer
beginer
1544 Points
52 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: 793
Total Answered: 2
Total Marked As Answer: 0
Posted On: 05-Oct-2022 01:01 
 
beginer
beginer
1544 Points
52 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: 1737
Total Answered: 1
Total Marked As Answer: 0
Posted On: 05-Oct-2022 00:07 
 
Priya
Priya
1194 Points
33 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: 1183
Total Answered: 1
Total Marked As Answer: 1
Posted On: 08-Jan-2022 05:01 
 
Rashmi
Rashmi
1068 Points
19 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: 14064
Total Answered: 3
Total Marked As Answer: 1
Posted On: 24-Nov-2018 04:17 
 
 Log In to Chat