gac

SQLCLR Function and System.Runtime.Serialization In GAC

左心房为你撑大大i 提交于 2019-12-04 07:31:38
I've built a SQLCLR function in C# that will deserialize JSON and return a table. The problem I have is getting the correct assemblies within SQL Server 2012. In order to utilize Newtonsoft's deserializer I've had to add the following assemblies to SQL Server: System.ServiceModel.Internals.dll SMDiagnostics.dll System.Runtime.Serialization.dll Newtonsoft.Json.dll This has all gone as planned but when I try to run my function I get the following error: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken

Deploy my DLLs to GAC for use with ClickOnce App

好久不见. 提交于 2019-12-04 07:21:57
How do I do it? Is there any reason I shouldn't? I have a winform ClickOnce App that has about 13mbs in DLLs that are not mine so I would have no need/ability to update them at any regular intervals. DevExpress(3), Microsoft ReportViewer, Microsoft SQL Replication. Microsoft SQL SMO. Without them being included in my ClickOnce App my whole program comes in at about 1.5mbs and with our remote sites having limited vpn connectivity I really need to get it down there. I can't send 15mbs across our network to all users everytime I make a minor app change. Thanks UPDATE FOR CLARITY For clarification

How to install a WSP that has dependant assemblies?

允我心安 提交于 2019-12-04 07:03:34
I have a solution in Visual Studio 2010 that is made up of 3 projects. I have one project for my SharePoint 2010 custom timer job, one project (Project A) that is used by my custom timer job, and another project (Project B) that is used by Project A. The problem is that when I package my project the WSP only installs the Custom Timer Job to the GAC. Is there some way to have all dependant DLLs installed as well? You have to add those DLLs (project references) manually into the WSP project's manifest. There's a UI in Visual Studio to assist you with this, no need to modify the XML directly.

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

孤街浪徒 提交于 2019-12-04 06:15:35
I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find

How to reference GAC assemblies when integrating a CLR extension into SQL Server

跟風遠走 提交于 2019-12-04 05:09:10
I've created an assembly for CLR integration in SQL Server 2008. It has one reference to System.Web.Extensions , which is an issue because when I try to add my assembly, I get the following error: Assembly 'system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35.' was not found in the SQL catalog. (Microsoft SQL Server, Error: 6503) How do I get SQL Server to reference the required assembly? Apparently I can't, according to this post on the microsoft forums: CLR integration in SQL Server 2005 supports only a subset of .NET framework libraries to be references

How to load specific version of assembly from GAC

僤鯓⒐⒋嵵緔 提交于 2019-12-04 05:07:13
问题 For testing purpose I like to load a specific version of an DLL assembly from GAC. However, my program always load the latest version - I think driven by Policy Assemblies. var dll = Assembly.Load("Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"); Console.WriteLine(dll.ToString()); Output: Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342 Even though I specify version "4.121.1.0" in strong name it loads

Updating a DLL in the GAC

梦想的初衷 提交于 2019-12-04 04:46:46
问题 I have an API DLL that several third party applications reference. Some of these applications want things two ways in terms of updates. 1) I want the latest stuff 2) Don't update my direct binaries that often There has been the thought of moving the DLL into the GAC and writing another DLL that is simply the wrapper for the DLL in the GAC (which the 3rd party apps would then reference). This allows the business logic (the part that would change frequently) to be updated in the GAC and the

Using WiX to put an assembly into both the GAC and Install Path

余生颓废 提交于 2019-12-04 02:22:07
I'm just starting to learn how to use WiX and I'm running into a snag. My package uses a third party library that requires some file to exist both in the GAC and the package installation directory. Using WiX, I can make files show up in the installation directory, or in the GAC, but not both. Is there any way to work around this? There's a post here about installing an assembly to both the GAC and local file system . This has some actual WiX code in it that does what you're looking for. I found the post - which has since moved, the new URL is here: https://devblogs.microsoft.com/setup

Uninstall from GAC In C# code

夙愿已清 提交于 2019-12-04 00:31:28
How do I uninstall the GAC from my C# application. I am not able to uninstall, the particular exe and DLL from GAC. Is it the proper way to uninstall the GAC in C# ? public void RemoveAssembly(string ShortAssemblyName, string PublicToken) { AssemblyCacheEnum AssembCache = new AssemblyCacheEnum(null); string FullAssembName = null; for (; ; ) { string AssembNameLoc = AssembCache.GetNextAssembly(); if (AssembNameLoc == null) break; string Pt; string ShortName = GetAssemblyShortName(AssembNameLoc, out Pt); if (ShortAssemblyName == ShortName) { if (PublicToken != null) { PublicToken = PublicToken

Can't find System.Net.Http.Formatting dll

。_饼干妹妹 提交于 2019-12-04 00:20:54
I have a clean installation of Visual Studio 2015 RC. I don't have VS2013 installed. I loaded a solution and the System.Net.Http.Formatting reference is broken, when I try to add the reference I don't find it in the GAC. After some reading/searching online I found that once there was a System.Net.Http.Formatting package which now appears to be discontinued as one if it's dependencies can no longer be found on nuget Microsoft.AspNet.WebApi.Client (>= 2.0.20710 && < 2.1.0) . As of right now what you should do is just install Microsoft.AspNet.WebApi.Client (I tried version 5.2.3 and it works fine