Hangfire : The method UseSqlServerStorage is missing - sql-server

I'm trying to install HangFire for a ASP.NET Code Project.
When I follow then official doc (https://www.hangfire.io/blog/2016/07/16/hangfire-1.6.0.html) or other link ressources (http://www.dotnetjalps.com/2017/04/aspnet-core-hangfire-integation.html), it's sounds clear. Add this
services.AddHangfire(config=>config.UseSqlServerStorage(Configuration.GetConnectionString("MyConnectionString")));
But it doesn't work. This extension method doesn't exist. Am I miss something ?

You might be missing the HangFire.SqlServer package. Once I added that to my project it worked.
You can find the most recent version of the package here.
https://www.nuget.org/packages/HangFire.SqlServer/

So, I found the answser ..
I had to delete HangFire package, close my Visual Studio 2017 solution and clean the obj and bin folder.
Then, I reopen it, add HangFire.AspNetCore and HangFire.SQLServer packages. Then it works.

I had a similar issue and it was caused because I already had GlobalConfiguration in my Startup and it was referencing System.Web.Http.GlobalConfiguration. Now I thought Hangfire would add this UseSqlServerStorage() as an extension method, like Swagger does for example, but instead Hangfire brings its own version of this file.
Referencing it directly worked for me:
Hangfire.GlobalConfiguration.Configuration.UseSqlServerStorage("connection_string");

Related

How to add IdentityModel reference

I am working through IS quickstart and having trouble adding IdentityModel to the Client project. I installed the NuGet package through VS.Net and it seemed to be successful but after that, the assembly does not show from the reference list. What am I missing here? Do I need to browse the file system to find the dll? If so, where?
When you add the IdentityServer4 NuGet package, it has a dependency on IdentityModel. So it is already added and that's you don't see it.
You can see its dependencies here
And in Visual Studio if you drill down the Dependencies -> Packages -> IdentityServer4 node

Using Quick Install in Visual Studio doesn't actually add the packages to your project

Hello I'm trying to use the Visual Studio extension Quick Install Package to install packages via bower and npm. One example is angular-loading-spinner
When I give the command using the interface, I see that the package.json file is updated and or the bower.json file is updated with the package dependency, but I'm still unable to actually reference the packages as instructed in my html using the tags. No actual files are added to the project, so I feel like I'm really missing something here, or simply don't understand what this package installer is actually meant to do. There doesn't seem to be any clear tutorial on this I can find online, or any good information. It just all assumes it works fine. Can anyone please advise? Thanks]1
Mike, I'm glad to know that my answer was the correct. For future users that have the same concern, they need to look at the folder node_modules to find out all the libraries installed.
This was put in the node_modules folder as pointed out by Jonathan Brizio. The issue was that the files were hidden and had to be included in the project.

Entity framework is not supported in ASP.net core -Visual studio 2015

I am working with asp.net core- Visual studio 2015.While accessing my sql database the following error occurs. "Please add the Entity.framework.SqlServerCompact NuGet package to the project". Please let me know how to resolve this issue. Thanks in advance.
Well with ASP.net Core everything is optional and as Nuget packages which means you have to bring them in your project if you want to use them.
If you want to add any Nuget package to your project you just need to open your project json file and add this line into dependencies:
Microsoft.EntityFrameworkCore.SqlServer
Or run npm install in your project directory:
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then locate your tools section in your project json and add this into it:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final"
If you had any problem with the version see if using this version is helping:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview2-final"
Reason is this is a known issue you can find here:
https://github.com/dotnet/cli/issues/3742
Check the version in case has changed. For a more detailed instructions look here:
https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db

How to solve "Build:Unknown compiler option 'listemittedfiles'." on visual studio 2015 update 3?

After updating the NuGet Type Scripts packages, I was facing with one common build error problem "tsc.exe exited with code 1". After searching I have found the solution how to resolve it. As suggested I installed another two NuGet packages named Microsoft.TypeScript.Compiler and Microsoft.TypeScript.MSBuild. After installing those the tsc.exe exited with code 1 problem solved. But in the mean time a new problem arise on build "Unknown compiler option 'listemittedfiles'".
I was trying to solve it by the suggestion of this Typescript build failure.
But still there has no improvement of this problem.
Can anyone be able to provide a solution please? Please take a lots of thanks in advance.
My client project structure is looks like the image Please click here to view the image
I suggest you to try to fix this issue by installing TypeScript 2.0.6 using the following link:
Visual Studio 2015 TypeScript Tools (2.0.6 at the time of writing)
This will also point MSBuild to the proper TypeScript build, which fully supports the --listEmittedFiles command switch.
See also this answer and/or this blog article I wrote on this topic for further details and references about this issue.
I had the some problem. I found out, that I had a wrong (i.e. older) version of typescript installed (in addition to the current one) and even though the latest version was installed too, the old typescript compiler (tsc) was used.
Open a windows console and run the command following command:
tsc -v
The result should be:
Version 1.0.1.0
If you have the latest typescript installed but don't see the version above, you probably have older versions of typescript installed, that may be the cause of your problems. Uninstall the older versions via "Programs and features" in the control panel of windows.

Code Upgrade tool error

We are trying to upgrade the site from Kentico 8.2 To Kentico 9. In this there is lot of custom code.
We are using Code Upgrade tool as mentioned in the documentation to upgrade the code: Please check this
It will be really helpful if you could help us in this.
The error being referenced, the path's format is not supported can typically be resolved by copying and pasting the actual path from file explorer AND wrapping it in double quotes. If your WebsiteFolder and/or the .sln file have spaces in them, it will error out unless wrapped in double quotes.
Have you changed the file structure of your project? Have you changed the name or location of the CMS folder? What I would try is to install clean K8.2 installation, hotfix it to the same version you have and copy the "CMS" folder from your project to the clean install and see if it makes a difference.

Resources