Search code examples
c#asp.net-mvcrdlcgac

Install Microsoft.SqlServer.Types in GAC


How do I install Microsoft.SqlServer.Types assembly in GAC (C:\Windows\assembly\GAC_MSIL). It is missing.

I am getting error after running rdlc report. it is MVC based application-

Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=token' or one of its dependencies.

It seems application is looking Microsoft.SqlServer.Types assembly in GAC. I know how to install using nuget in project folder but I want it in GAC.


Solution

  • Don’t try to GAC it. Add the NuGet package to your project instead.

    https://www.nuget.org/packages/Microsoft.SqlServer.Types