Showing posts with label Bug & Error Resolution. Show all posts
Showing posts with label Bug & Error Resolution. Show all posts

Monday, June 11, 2018

[Fiddler] The connection to com failed.

Error-Messages

[Fiddler] The connection to '<the site>.com' failed. 
System.Security.SecurityException Failed to negotiate HTTPS connection with server.fiddler.network.https> HTTPS handshake to <the site>.com (for #3) failed. System.IO.IOException Unable to read data from the transport connection: 
An existing connection was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host 


Resolution - 

Go to  Tools > Telerik Fiddler Options > HTTPS It's set to ;ssl3;tls1.0 Add tls1.2

Kinldy refer below image for reference.


image

Warm Regards

Sachin Kalia

Thursday, April 27, 2017

mark or make job as durable in Quartz .net?

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();
                                        JobKey jobKey = JobKey.Create("Facilities");
                                        sched.AddJob(jobEOD, false);
                                        sched.TriggerJob(jobKey);

 

Categories: WCF and WebAPI

Tuesday, April 25, 2017

Exclude controllers methods from docs or swagger

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)]

Thanks

Tuesday, April 18, 2017

There was an error running the selected code generator dotnet -aspnet-generator:

Error-Messages

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 as shown below:

<ItemGroup>

<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" />

  </ItemGroup>

Hope it’ll help you some day. Enjoy Coding.

Categories: AngularJS , MVC , WCF and WebAPI

 

Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate

Error-Messages

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 this method to add services to the container.
       public void ConfigureServices(IServiceCollection services)
        {
            // Add framework services.
            services.AddMvc();
           services.AddSingleton<IConfiguration>(Configuration);
            services.AddSingleton<IFirstService, FirstService>();
        }

Thursday, September 1, 2016

angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.6/$injector/modulerr?p0=routingApp&p1=Error…20c%20(http%3A%2F%2Flocalhost%3A51309%2FScripts%2Fangular.min.js%3A21%3A19)

Resolution: Just keep the order of your file as shown below:

first load angula.js and than angular-route.js as given below:

<script src="~/Scripts/angular.min.js"></script>
@*   <script src="~/Scripts/angular-route.js"></script>*@

Hope it will solve your issue

Thanks

Wednesday, July 13, 2016

Error: [$injector:nomod] Module ‘ngRoute’, ‘ngResource’ is not available – AngularJS

During An Angular Application devlopement i confronted various errors and the given below is one of them as shown below:

Uncaught Error: [$injector:modulerr] Failed to instantiate module routingApp due to:

Error: [$injector:modulerr] Failed to instantiate module ngRoute due to:

Error: [$injector:nomod] Module 'ngRoute' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

http://errors.angularjs.org/1.2.6/$injector/nomod?p0=ngRoute

Solution

The possible errors rises because of the latest js library is not placed in current file.so use the following link to mitigate such error.Add the given below reference in that file where you have placed routing configuration.

  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular-route.js"></script>

Hope it will resolve an error.

Thanks