485 Questions

sid
sid
20 Points
10 Posts
I'm using .dbml to map db to linq. And in controller action I'm updating count: var rsl = _dbContext.tbl_test.FirstOrDefault(b => b.id == id); rsl.ViewCount = rsl.ViewCount + 1; _dbContext.SubmitChanges(); Some time I'm getting error: System.Data.Linq.ChangeConflictException: Row not foun ...
Views: 53
Total Answered: 1
Total Marked As Answer: 0
Posted On: 29-May-2019 10:16
 
kikme
kikme
10 Points
5 Posts
I'm using asp.net core to develop REST API and I have few enum values that to be expose to API response. And I'm able to do that but client developer don't know what are the enum's values. So I want to expose all enum values in the response. Suppose I have following enum: public enum niceEnum { ...
Views: 35
Total Answered: 1
Total Marked As Answer: 0
Posted On: 29-May-2019 09:35
 
Stevan
Stevan
30 Points
15 Posts
I'm getting following error in google-chrome browser from few days: "Unchecked runtime.lastError: The message port closed before a response was received" I don't know what is happening here. Also did not do anything change in source code. I'm using asp.net mvc + jquery. This error only shows i ...
Views: 92
Total Answered: 2
Total Marked As Answer: 1
Posted On: 26-May-2019 05:44
 
Ankit tewari
Ankit t...
40 Points
20 Posts
when i am sending email (with attached 7 mb image) then it is taking approx 50 seconds. So I am using this code. but still not working. Thread email = new Thread(delegate () { { SendMail("a", splitMailCC); }; }); email.IsBackground = true; email.Start();
Views: 91
Total Answered: 1
Total Marked As Answer: 0
Posted On: 14-May-2019 03:41
 
Smith
Smith
Participant
374 Points
112 Posts
I am trying to run hangfire recurring job daily on 11.00 AM. Here is what I want to do- RecurringJob.AddOrUpdate(() => MyMethod(), "* 11 * * *"); But it's always confusing cron expression. Is there any other way?
Views: 61
Total Answered: 1
Total Marked As Answer: 0
Posted On: 10-May-2019 01:39
 
edx
edx
54 Points
17 Posts
In a table 'Customer', I have an Id column, which is an Identity int. How can I make it so that the next row inserted will get identity 1000(I think, this is called the identity seed) without dropping and recreating the 'Customer' table? I want to do this because of some uniqueness issue with an ext ...
Views: 116
Total Answered: 2
Total Marked As Answer: 1
Posted On: 09-May-2019 05:47
 
Smith
Smith
Participant
374 Points
112 Posts
I'm getting following error when try to migrate db in my local machine DB: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) ...
Views: 154
Total Answered: 2
Total Marked As Answer: 1
Posted On: 24-Apr-2019 23:29
 
Smith
Smith
Participant
374 Points
112 Posts
I'm trying to execute long running process by using System.Threading.Tasks and calling it from MVC controller action: new Task( () => { // long runing process and fetching data using EntityFrameworkCore }).Start(); I'm getting following error: A second operation started on ...
Views: 178
Total Answered: 4
Total Marked As Answer: 1
Posted On: 19-Apr-2019 04:51
 
Kd M
Kd M
2 Points
1 Posts
I'm developing a website and trying to debug in chrome dev tool. Dev tool is showing following css style: table { display: table; border-collapse: separate; border-spacing: 2px; border-color: grey; } But it it important to note that I did not define them. On Chrome dev tool ...
Views: 80
Total Answered: 1
Total Marked As Answer: 0
Posted On: 12-Apr-2019 22:02
 
edx
edx
54 Points
17 Posts
I have created new index from existing one by using following Query DSL: POST _reindex { "source": { "index": "myindex" }, "dest": { "index": "new_myindex" } } Now, tried to search on new index but now I'm getting following error: { "error": { "root_cause": [ ...
Views: 7220
Total Answered: 2
Total Marked As Answer: 0
Posted On: 29-Mar-2019 05:47
 
 Log In to Chat