gac

Load assembly from Path

南笙酒味 提交于 2019-12-05 11:26:27
I need to load an assembly from a certain location and not from the GAC. I can not remove the assembly from the GAC, because my program has to run on different machines, where I couldn't control if the assembly is in the GAC or not. I added a reference to the DLL-File to my project. Unfortuntely the assembly is loaded from the GAC. I've tried the following code in my App.xaml.cs in the Startup -Event var directory = Thread.GetDomain().BaseDirectory; var dllPath = Path.Combine(directory, "MyAssembly.dll"); var assembly = Assembly.LoadFrom(dllPath); Unfortunately the assembly is still loaded

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

人盡茶涼 提交于 2019-12-05 10:18:45
问题 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. 回答1: 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

How to remove .NET assembly DLLs from server GAC

て烟熏妆下的殇ゞ 提交于 2019-12-05 08:56:11
I'm trying to deploy a VS2013 project containing the Oracle ODP.NET library to a Windows 2008 IIS server, and receive an error "Could not load type 'OracleInternal.Common.ConfigBaseClass' from assembly 'Oracle.ManagedDataAccess, Version=4.121.2.0.'" From what I've found online this is caused by a conflict between the project's ODP and the server having ODP in the GAC. Instructions are then to remove ODP from the GAC. There are Oracle DLLs in the GAC on the server. We are 99% certain that the DLLs wound up in the GAC from a prior attempt to set up Oracle on that box a while back, as no other

Do assemblies placed in the GAC gain full trust?

﹥>﹥吖頭↗ 提交于 2019-12-05 07:27:37
I've been hearing conflicting facts about this topic. What is correct? You've been hearing conflicting views because it's a topic of great confusion, even among senior engineers. In short, simply placing an assembly in the GAC does implicitly give it full trust, but this can be overriden via security policy. EDIT1: Let me add that a common thought is if you don't trust an assembly fully, why are you placing it in the GAC? EDIT2: I had a link in here to a blog post from Michelle Bustamante, but as you can see in the comment below, it's no longer available so I removed it from this answer. I'll

Why do ASP.NET resolve assembly references differently?

北慕城南 提交于 2019-12-05 07:04:56
I really tried hard to find a similar issue to get some leads, but no one seems to describe the case we are having, so here it goes. Background We have a product with the following general design: [Local installation folder] Contains a set of .NET assemblies, implementing the bulk of our product functionality. Example: Implementation1.dll , Implementation2.dll [GAC] ClientAPI.dll. Our client assembly, to be referenced from end user Visual Studio projects. Has strong references to the implementation dll's in the local installation folder. In ClientAPI.dll, we have an entrypoint we require end

Why are framework dlls repeated in several places?

心不动则不痛 提交于 2019-12-05 05:56:40
After installing .Net 4 and getting some questions that were already answered here I also realized how the Framework dlls are repeated in several places for the different Framework versions (this is not new, it happens with previous versions, but hadn't paid attention to it until now) 1 - GAC: %systemroot%\assembly 2- Framework installation directory: %systemroot%\Microsoft.NET\Framework\v... 3- and if you have the Windows SDK installed, also in: C:\Program Files\Microsoft SDKs\Windows\ I think the last ones are the so called "Reference Assemblies" and have extra metadata to aid Visual Studio,

2.0 version of System.Management.Automation?

心已入冬 提交于 2019-12-05 04:15:55
Is there a 2.0 (or greater) version of the System.Management.Automation assembly? I'm looking at the PowerShell class in C# which says that this class was introduced with PowerShell 2.0 . Does that version number correspond with the version number I'm seeing when I add the reference to the assembly in Visual Studio? This is kind of an additional question to my other question which is in regards to having trouble resolving the PowerShell class inside that assembly. I've tried the System.Management.Automation assembly in both the GAC: C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0

Could not load file or assembly 'System.Management.Automation'

拜拜、爱过 提交于 2019-12-05 04:13:05
I've written an asp.net MVC 3 web application ('ADReporter') on my local machine that uses Powershell to retrieve some data. If I run this application locally, everything works fine. Now I'm trying to run it on my Windows 2008 server but when i'm trying to access it, i get following stack trace: Server Error in '/ADReporter' Application. Could not load file or assembly 'System.Management.Automation' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key.

GACUtil “Assembly successfully added to the cache” but “Number of items = 0”

邮差的信 提交于 2019-12-05 00:43:00
Why, when I run: gacutil –i myAssembly.dll do I get: Assembly successfully added to the cache But then when I run: gacutil –l myAssembly.dll I get Number of items = 0 ? try with gacutil –l myAssembly donot add .dll at last.So if the dll is registered in GAC it will display Number of items = 1 http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx Silly reason, really, but it took me what felt like hours to fix and is not really something you want to have to deal with when you’re in the middle of trying to figure out a complex problem. To add the assembly to the GAC you need to specify

Installing a modified version of ASP.NET MVC

我的未来我决定 提交于 2019-12-04 23:58:18
问题 I have made a relatively simple change to the MVC 1.0 source code to correct a bug in the DropDownList HtmlHelper (discussed in another question). I was able to rebuild the MVC solution, ran all the tests, including the one I hadd added to show the bug I was fixing, and built a new DLL. But how do I use that? I tried moving the new MVC dll into the project and changing all the project references to point to it, but when I try to run the MVC website, it's throwing an exception saying there's a