assemblies

Could not load file or assembly for Oracle.DataAccess in .NET

99封情书 提交于 2019-12-03 01:10:35
When I try to run a simple program to access oracle I am getting this message Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. I checked \windows\assembly and it's in there, but it's not in GAC ( gacutil -l ). I can't add into GAC ( gacutil -i [path] . I get 'unknown error'. Anyone has the same experiencing? John Banks I'm going to give you the answers from what I've just went through on Windows Server 2008 R2 which is a 64 bit operating system. The

AppDomain.Unload doesn't release the assembly I loaded up with Reflection [duplicate]

情到浓时终转凉″ 提交于 2019-12-03 00:33:41
This question already has answers here : how to delete the pluginassembly after AppDomain.Unload(domain) (5 answers) Possible Duplicate: how to delete the pluginassembly after AppDomain.Unload(domain) I am struggling with an issue while loading an assembly up in a temporary AppDomain to read its GetUsedReferences property. Once I do that, I call AppDomain.Unload(tempDomain) and then I try to clean up my mess by deleting the files. That fails because the file is locked. I Unloaded the temporary domain though! Any thoughts or suggestions would be greately appreciated. Here is some of my code: /

What exactly is an Assembly in C# or .NET?

。_饼干妹妹 提交于 2019-12-03 00:31:49
问题 Could you please explain what is an Assembly in C# or .NET? Where does it begin and where does it end? What important information should I know about Assemblies? 回答1: An assembly is the compiled output of your code, typically a DLL, but your EXE is also an assembly. It's the smallest unit of deployment for any .NET project. The assembly typically contains .NET code in MSIL (Microsoft Intermediate language) that will be compiled to native code ("JITted" - compiled by the Just-In-Time compiler)

Can a C# .dll assembly contain an entry point?

╄→гoц情女王★ 提交于 2019-12-02 21:50:52
My goal is to create an executable that will start a shadow copied application. The trick is, I want this starter program to have no external dependencies and not have to contain any knowledge about the program it has to start. I also want it to be the only executable in the directory. In other words, I want it to "run" a .dll assembly not an .exe assembly. (I can require that the name of the .dll file being loaded into a new AppDomain be the same everytime, like Main.dll or something like that.) It looked like AppDomain.ExecuteAssembly would do exactly what I wanted. It says it will start

Error: Reference to type claims it is defined, but it could not be found

本秂侑毒 提交于 2019-12-02 21:04:05
I have a solution with 3 projects: ParsersBase, that define an interface IParseRule ParsersLibrary, that have a reference to ParsersBase and define a class HtmlImageUrlParseRule : IParseRule ParsersLibraryTest, that have a reference to ParsersBase and ParsersLibrary and define a test class with some test methods When I'm trying to build it, I get a warning: Reference to type 'AVSoft.ParsersBase.IParseRule' claims it is defined in 'c:\Users\Tim\Dropbox\projects\Image Downloader\ParsersLibrary\bin\Debug\ParsersLibrary.dll', but it could not be found Why VS is trying to find AVSoft.ParsersBase

404 on Controllers in External Assemblies

感情迁移 提交于 2019-12-02 19:33:35
I am having trouble resolving 404 responses in my Asp.Net MVC 4 project. It's built in VS2012 targeting 4.5. I have pre-compiled views and controllers built into stand-alone DLLs. I am able to dynamically load the DLLs and inspect them from my core project, even invoke methods on them; however, it seems that the MVC Framework is not aware of the controllers. I am close here, but there is something missing. Background on the Controllers and Views Controllers are built in a stand-alone MVC project and inherit from Controller . Nothing too interesting going on there. The views use RazorGenerator

Signing assemblies - basics

三世轮回 提交于 2019-12-02 17:34:32
What does it mean to sign an assembly? And why is it done? What is the simplest way to sign it? What is the .snk file for? Eric Lippert The other two answers are fine, but one additional point. It is easy to get confused between "certificate" signing and "strong name" signing. The purpose of strong name signing is as Stefan Steinegger says: to allow your customer to establish that the code they THINK they're loading really is precisely the code that they ARE loading. That is ALL strong names are for. Specifically, strong names do not establish any kind of trust relationship between your

What are the `exact` differences between .NET dll and a normal dll?

我只是一个虾纸丫 提交于 2019-12-02 15:10:36
I want to know what are the exact differences between .NET dll and a normal dll. First question, what is "normal DLL" called? I'm using the word 'normal'. But it doesnt seem right? Because both follow the PE format. Yeah, I agree that .NET DLL has an extra section. Other than that every thing else is same. I also know that in .NET code is converted into CIL/MSIL then what is filled in .text section of PE file? MSIL? because there is no binary code. But if they put MSIL in .text section. Loader assumes that its a binary code and allows it to execute. Which is not the case. What am I missing? I

Installing a WIF Runtime for hosting a .NET application in Windows Azure

丶灬走出姿态 提交于 2019-12-02 12:42:18
问题 I developed a Custom application that is able to consume the CRM Web services and perform Windows Live Id authentication, create, read and update operation in the CRM from the custom .NET page. It runs absolutely fine when I debug the application in Visual Studio 2010 but when I deploy the same application and try to authenticate it shows the following error: "Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of

Can I tell my application to load all assemblies (DLLs) from a specific location?

可紊 提交于 2019-12-02 11:33:28
My application uses a third party SDK which is installed on every machine that has my application, I do not want to add these SDK DLLs in my application deployment because it takes a lot of space. Registering the DLLs in the GAC is not an option for other reasons. Anyway is there a way to tell my application that the required DLLs are available on a specific path? Yes, shared files (if for some reason you do not want to put them in GAC) can be deployed, for example, in the Common Programs folder. According to the way your application works you may need to load them explictly with Assembly