gac

Could not load file or assembly 'Oracle.DataAccess error

家住魔仙堡 提交于 2019-11-30 09:00:08
问题 I am building ASP.NET application with C# and I want to connect to oracle database. I have added reference to Oracle.DataAccess in my application on my 64bit Microsoft Window Server 2008 machine. I also installed ODAC (Oracle Data Access Component) on my machine and Oracle.DataAccess.dll is also present on this path C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess but when i'm trying to connect i encounter following error: Could not load file or assembly 'Oracle.DataAccess, Version

Can not find System.Windows Assembly

谁说我不能喝 提交于 2019-11-30 08:07:20
This is the error we get: Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests We get this error in our unit test project which cant find the System.Windows Assembly but our main project can find the assembly and run it fine. Does anyone have any input or advice on where or how we can reference System.Windows to fix this problem? In my case there was no System.Windows

Is it possible to Load an assembly from the GAC without the FullName?

浪子不回头ぞ 提交于 2019-11-30 06:25:11
问题 I know how to load an assembly from a filename, and also from the GAC. As My .msi file will put a dll project into the GAC, I'm wondering if it's possible to load it from the GAC unknowing the FullName (I mean just with the assembly name, or even the dll filename), because I have to Load this assembly from another project. 回答1: Here is a piece of code that allows to do this, and an exemple: string path = GetAssemblyPath("System.DirectoryServices"); Assembly.LoadFrom(path); Note if you need a

How can I list all registered assemblies in GAC?

十年热恋 提交于 2019-11-30 05:34:48
How can I list all the assemblies that are in the GAC? Do I need a tool that makes it easy to view them? dexter You can use gacutil provided with Visual Studio for that. Simply open the Developer Command Prompt (available in Start Menu>App>Visual Studio) and run the following command: gacutil -l >yourassemblies.txt Gacutil is also available as a separate download if you don't have/want Visual Studio. If you need the output in text-form, you can use gacutil /l . If you need to get that list from inside, say, an installer or other tool of your own, you might want to look into the APIs to query

Deploy my DLLs to GAC for use with ClickOnce App

我的梦境 提交于 2019-11-30 05:02:55
问题 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

.NET assembly loading priorities

孤街浪徒 提交于 2019-11-30 01:55:33
I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly is signed and deployed in the GAC. When I build the solution the DAL is compiled and the assembly placed in the bin folder of the main project. But when I run the application, it loads the GAC version instead of the local one. Why is this? I realized that because the version in the GAC was not the latest one and some methods were missing, although it compiled fine. Does the GAC have priority over the local bin folder? Tks in advance Short answer Yes , the GAC has precedence over local files. this is a different behavior from

Methods to programmatically install a .NET assembly into the GAC

孤者浪人 提交于 2019-11-29 18:21:35
问题 I need to create a small app or script to install a .NET assembly into the GAC. I've read there are a couple ways to do this including: using gacutil.exe executing the following line of code: new System.EnterpriseServices.Internal.Publish().GACInstall("Foo.dll"); However, what would happen if I just created the appropriate directories on the machine and copied the assembly into that directory? The structure of the GAC directory is the following: C:\Windows\assembly\GAC_MSIL\Foo\<version#>__

Adding assemblies to the GAC from Inno Setup

眉间皱痕 提交于 2019-11-29 15:17:35
Until recently we were using Inno Setup for our installations, something I would like to continue doing, unless we can get an uninstall option in the start menu (thanks Giovanni Galbo), however we now need to GAC some external libraries, something I suspect is only doable (or at least only supported) though the .NET Setup Project. Is it possible to call a GAC'ing library from another setup application? According to http://jrsoftware.org/files/is5-whatsnew.htm you should be able to do it with v5.3 and above Added .NET support (these cause an internal error if used on a system with no .NET

Referencing DLL from GAC in Visual Studio

99封情书 提交于 2019-11-29 13:57:36
问题 So I've looked around to try to find some posts on this and there are many but none that address my specific question (that I could find). I am trying to add some DLL's in my project but few of them are coming from : C:\Windows\Microsoft.NET\Framework\v3.5\XXX.YYY.dll and what I expecting this should be coming from GAC. Please suggest me the best practice to reference the Dll's in Visual Studio. 回答1: That's not the way it works. When you use Project + Add Reference then you always add a

Could not load file or assembly 'Oracle.DataAccess error

故事扮演 提交于 2019-11-29 09:32:26
I am building ASP.NET application with C# and I want to connect to oracle database. I have added reference to Oracle.DataAccess in my application on my 64bit Microsoft Window Server 2008 machine. I also installed ODAC (Oracle Data Access Component) on my machine and Oracle.DataAccess.dll is also present on this path C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess but when i'm trying to connect i encounter following error: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system