Mark or make job as durable in Quartz .net? This is the code segment to mark Job as durable in case you are not trigging through ITrigger. public static ISchedulerFactory schedFact = new StdSchedulerFactory(); IScheduler sched = schedFact.GetScheduler(); IJobDetail jobEOD = JobBuilder.Create<Facilities>().WithIdentity("Facilities").StoreDurably(true).Build();...
Thursday, April 27, 2017
Tuesday, April 25, 2017
Exclude controllers methods from docs or swagger
Posted on
3:36 AM
by
Sachin Kalia
Exclude controllers methods from docs or swagger If you would like to ignore controller’s action method from documentation or swagger ,kindly out an annotation just above an action method. [ApiExplorerSettings(IgnoreApi = true)] Than...
Categories:
Bug & Error Resolution
,
WCF and WebAPI
Tuesday, April 18, 2017
there was an error running the selected code generator dotnet -aspnet-generator
Posted on
10:27 PM
by
Sachin Kalia
There was an error running the selected code generator dotnet -aspnet-generator: Resolution for this issue is as given below: Kindly put the following line of code into .csproj file if you have created the solution in Visual Studio 2017 under item group. Open .csproj file either in notepad or desired editor .paste the following line in ItemGroup...
Categories:
.Net Core
,
Bug & Error Resolution
Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate
Posted on
10:21 PM
by
Sachin Kalia
Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate Resolution: Put this line in Startup.cs file under Configuration Services Method to inject dependency as shown below: services.AddSingleton<IConfiguration>(Configuration); // This method gets called by the runtime. Use...
Categories:
.Net Core
,
Bug & Error Resolution
Monday, April 17, 2017
ASP.NET Core 1.1 ConfigurationBuilder().AddJsonFile(“appsettings.json”); not finding file
Posted on
3:31 AM
by
Sachin Kalia

ASP.NET Core 1.0 ConfigurationBuilder().AddJsonFile(“appsettings.json”); not finding file Or "The configuration file 'appsettings.json' was not found and is not optional. The physical path is "The configuration file 'appsettings.json' was not found and is not optional. The physical path is Resolution I was working on .net core for...
Categories:
.Net Core
Subscribe to:
Posts
(
Atom
)