gac

How do I make assembly redirection work in a .net 4.0 web app

别来无恙 提交于 2020-01-04 06:02:57
问题 I am working on a web-based application using asp.net 4.0. I have some dlls I am using in the GAC that have some embedded dependencies on older dlls. I have Configured the assemblies so that the dependency redirects to the correct version of the dll on my machine. This works perfectly in a 3.5 or lower version application, however, when I try to build an asp.net 4.0 application based on the same dlls, it chokes with an error like: Could not load file or assembly 'ControlReferencedByMyDll,

Set location of DLLs to load in web.config

允我心安 提交于 2020-01-04 04:37:11
问题 Is it possible within the web.config to set the local file path location of specific DLLs to load rather than having those DLL in the GAC or C:\Windows\System32 . This would make it much easier to deploy the web service, without having to mess around with either of those. I have tried already to add the DLLs to the project but with out success. They are the 4 oracle instant client DLLs. oci.dll orannzsbb11.dll oraocci11.dll oraociicus11.dll If anyone knows of a way of doing this that would be

registering a dll in GAC

你离开我真会死。 提交于 2020-01-04 00:57:28
问题 I need to add an dll to GAC on Windows 2003 server. The server doesn't have Visual Studio installed. I didnt find Gacutil.exe in Windows 2003 Server. Where can I find Gacutil in Windows 2003 Server. Is there any other way I can add a dll to GAC . Any help will be highly appreciated. Thanks in Advance, 回答1: While you can't (re: shouldn't) use GACUtil.exe, there are 2 other ways, outlined in the following link from msdn: http://msdn.microsoft.com/en-us/library/dkkx7f79.aspx What you're looking

How to find out which application requires a certain assembly from GAC?

假如想象 提交于 2020-01-03 02:45:06
问题 I have inherited an application, that uses Microsoft Enterprise Library. The VS solution of the applications contains about 200 projects. I have been restructuring the solution moving the projects around and removing obsolete ones. I need to tidy it up to make it ready for other developers. The solution contains Microsoft Enterprise Library dlls of a specific version, however when I moved stuff around, I noticed that some projects do not reference these dlls but instead dlls from my GAC. I

.Net dll reference - deployment onto PCs with different versions of 3rd party dll

萝らか妹 提交于 2020-01-03 00:39:11
问题 Could you tell me the best approach for this scenario. I have inherited a new project and have not come across this scenario before. We have a reference in our C# Windows Forms application to a 3rd party tool for producing documents. There are two different versions of the 3rd party tool in the deployment environment installed on people's PCs - v1.0 and v2.0. I can only build our Windows Forms application to work with either v1.0 or v2.0 of the 3rd party tool. To do so I have to install

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

半腔热情 提交于 2020-01-01 09:33:31
问题 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

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

二次信任 提交于 2020-01-01 09:33:15
问题 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

I can install via gacutil, but not uninstall the same dll

女生的网名这么多〃 提交于 2020-01-01 08:32:55
问题 I have installed a DLL using the gacutil. gacutil.exe /i SI.ArchiveService.CommonLogic.Exceptions.dll Using the gacutil /l shows that it is indeed installed. SI.ArchiveService.CommonLogic.Exceptions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=925c8734ae397609, processorArchitecture=MSIL Then I wanted to uninstall it. gacutil.exe /u SI.ArchiveService.CommonLogic.Exceptions.dll Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1 Copyright (c) Microsoft Corporation. All

When using PresentationFramework.Aero, do I need to set “Copy Local” to true (and include it in my setup project)?

♀尐吖头ヾ 提交于 2020-01-01 08:29:19
问题 My WPF project uses .NET 4 client profile. When I add <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" /> to <Application.Resources> I get this exception when starting the program in debug mode (in release mode the program silently crashes): A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: 'Set property 'System.Windows.ResourceDictionary.Source' threw an

When using PresentationFramework.Aero, do I need to set “Copy Local” to true (and include it in my setup project)?

北城以北 提交于 2020-01-01 08:29:05
问题 My WPF project uses .NET 4 client profile. When I add <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" /> to <Application.Resources> I get this exception when starting the program in debug mode (in release mode the program silently crashes): A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: 'Set property 'System.Windows.ResourceDictionary.Source' threw an