Click here to Skip to main content
14,662,169 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: API fail to use PUT method Pin
Richard Deeming18-May-20 1:06
mveRichard Deeming18-May-20 1:06 
Questionasp.net Pin
lankaudaranga16-May-20 22:01
Memberlankaudaranga16-May-20 22:01 
AnswerRe: asp.net Pin
Mycroft Holmes17-May-20 12:14
professionalMycroft Holmes17-May-20 12:14 
Questiondévelopper et utiliser le web service Pin
Member 1483395815-May-20 21:27
MemberMember 1483395815-May-20 21:27 
Questiondévelopper et utiliser le web service Pin
Member 1483395815-May-20 21:27
MemberMember 1483395815-May-20 21:27 
Questioninsert data into list from form and Pin
Member 1322055210-May-20 23:41
MemberMember 1322055210-May-20 23:41 
Rant[REPOST] insert data into list from form and Pin
Richard Deeming11-May-20 3:18
mveRichard Deeming11-May-20 3:18 
QuestionIServiceCollection / DependencyInjection issue Pin
Super Lloyd7-May-20 20:39
MemberSuper Lloyd7-May-20 20:39 
In our web app, as expected, the DbContext for our data is injected with DI.

It is registered with this extension method (the one that take a Func<> factory method):
public static IServiceCollection AddScoped<TService>(this IServiceCollection services, Func<IServiceProvider, TService> implementationFactory) where TService : class;

Now every now and then, due to maintenance task in our UAT servers, the Database is offline for a little while.
If that ever happen while someone try to connect to the DB, anyservice that need that DbContext fail with the same exception. Regardless whether the DB is back online or not.
We need to restart the app to fix that.

Now I wonder.. is there a way to fix that? (A way that doesn't involve restarting our app!)

[EDIT] Solved
It was DI for Startup.Configure() which prevented the application from running.
DI itself is fine and as expected!
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 12-May-20 1:20am.

AnswerRe: IServiceCollection / DependencyInjection issue Pin
Richard Deeming10-May-20 22:01
mveRichard Deeming10-May-20 22:01 
GeneralRe: IServiceCollection / DependencyInjection issue Pin
Super Lloyd11-May-20 19:19
MemberSuper Lloyd11-May-20 19:19 
QuestionSet route in net core api Pin
pkfox5-May-20 7:20
professionalpkfox5-May-20 7:20 
AnswerRe: Set route in net core api Pin
Richard Deeming5-May-20 8:41
mveRichard Deeming5-May-20 8:41 
GeneralRe: Set route in net core api Pin
pkfox5-May-20 10:06
professionalpkfox5-May-20 10:06 
AnswerRe: Set route in net core api Pin
jkirkerx7-May-20 8:58
professionaljkirkerx7-May-20 8:58 
GeneralRe: Set route in net core api Pin
pkfox13-May-20 1:07
professionalpkfox13-May-20 1:07 
GeneralRe: Set route in net core api Pin
jkirkerx13-May-20 5:27
professionaljkirkerx13-May-20 5:27 
QuestionSecuring a Web Project Using ASP.Net Pin
MadDashCoder30-Apr-20 20:01
MemberMadDashCoder30-Apr-20 20:01 
AnswerRe: Securing a Web Project Using ASP.Net Pin
Richard MacCutchan30-Apr-20 21:37
mveRichard MacCutchan30-Apr-20 21:37 
GeneralRe: Securing a Web Project Using ASP.Net Pin
MadDashCoder1-May-20 2:39
MemberMadDashCoder1-May-20 2:39 
GeneralRe: Securing a Web Project Using ASP.Net Pin
Richard MacCutchan1-May-20 4:16
mveRichard MacCutchan1-May-20 4:16 
QuestionGenerate an MVC Project Folder and Files Using Web API 2.2 Pin
Liagapi30-Apr-20 19:42
MemberLiagapi30-Apr-20 19:42 
AnswerRe: Generate an MVC Project Folder and Files Using Web API 2.2 Pin
Richard MacCutchan30-Apr-20 21:36
mveRichard MacCutchan30-Apr-20 21:36 
GeneralRe: Generate an MVC Project Folder and Files Using Web API 2.2 Pin
MadDashCoder1-May-20 2:29
MemberMadDashCoder1-May-20 2:29 
GeneralRe: Generate an MVC Project Folder and Files Using Web API 2.2 Pin
Richard MacCutchan1-May-20 3:23
mveRichard MacCutchan1-May-20 3:23 
GeneralRe: Generate an MVC Project Folder and Files Using Web API 2.2 Pin
Mycroft Holmes1-May-20 12:05
professionalMycroft Holmes1-May-20 12:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.