assemblies

Type reference error using F# interactive

谁都会走 提交于 2019-12-13 17:42:17
问题 I have a solution consisting of 2 projects: Utilities - This project contains type MyMatlab and references a COM (TLP) reference Matlab Application (Version 7.11) Type Library LBM - This project contains function displayMyMatlab which uses the MyMatlab type from the Utilities project and thus this project references Utilities I create a fsx file containing: #r @".\bin\Release\LBM.dll" #r @".\bin\Release\Utilities.dll" LBM.displayMyMatlab() and I get following error: Microsoft (R) F# 2.0

how do I easily test the case where my C# application can't find an external assembly?

安稳与你 提交于 2019-12-13 16:56:36
问题 So I have a C# application and part of it references the microsoft office interop assemblies. I'd like to gracefully handle the case that the user doesn't have office installed, but to do so, I need to be able to test the case that office is not installed. Short of uninstalling office, or actually uninstalling these assemblies on my machine, is there an easy way to test this? I found the assemblies in C:\Windows\assembly, but it doesn't look like there's an easy way to rename them or move

Why are some Azure-specific assemblies not present on Azure instances?

走远了吗. 提交于 2019-12-13 14:43:24
问题 An Azure role will likely need a set of Azure-specific .NET assemblies like Microsoft.WindowsAzure.ServiceRuntime and Microsoft.WindowsAzure.StorageClient . Turns out the latter is not in the GAC on Azure instances and so I have to set "Copy Local" to "True" in the Visual Studio project so that it gets into the service package and deployed to Azure. If I don't do that the assembly is not there and the missing dependency will prevent my role from starting. This doesn't make any sense to me.

Using Global Assembly Cache (GAC) - in the way it was designed to

旧时模样 提交于 2019-12-13 12:21:58
问题 Is the following solution the only possibility to use libraries from GAC in code? Assembly lib = Assembly.Load("MyLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31f5625abd53197f"); Console.WriteLine(lib.GetType("MyClass").GetMethod("Start").Invoke(obj, null)); I am a little bit confused - I've read quite much about GAC and I know how to sign an assembly, intall and uninstall assembly in GAC, but have no idea how to use it, and how does it help programmers (except that it stores

Where to handle AssemblyResolve event in a class library?

你。 提交于 2019-12-13 11:34:41
问题 I need to dynamically resolve assembly references from one class library to another. The class libraries are being loaded from a PowerShell script, so the default .NET behaviour of looking for dependent assemblies in the executable directly fails, as the executable is PowerShell itself. How do I make these dependent assembly references resolve / work correctly? In more detail : I have two utility libraries: a core one and another one that does some very specific parsing tasks. I want to load

Do I need to force the GAC to reload an assembly? Is this possible?

ぐ巨炮叔叔 提交于 2019-12-13 04:12:50
问题 I've added types to my .NET classes that I'm using for COM interop. To get it to work with my VB6 application, I unregistered the DLL and re-registered it (using regasm ). I then uninstalled and reinstalled it to the GAC (using gacutil ). The types are showing up in the VB6 object explorer, but when I run the application in the VB6 IDE, it breaks on the line that instantiates the new types with the error: Automation Errror - The System cannot find the file specified . I thought this odd since

Could not load file or assembly 'Microsoft.JScript… or one of its dependencies… what gives?

百般思念 提交于 2019-12-13 03:58:38
问题 What does this mean? This only happens on my local IIS where the site used to run fine no problem, it works fine on our DEV/QA servers but on my local machine I'm getting this, what gives? I had no knowledge of us using Microsoft.JScript ever, and doing a search of the project turns up nothing... Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly

Assembly not loading for ASP.NET web application

冷暖自知 提交于 2019-12-13 03:47:46
问题 I have a web application which references an external DLL (lets call this productA.dll) I have updated my GAC, my web.config , and my references, checked the versions and everything looks consistent. However, when I run my application, methods that I use from productA.dll cannot be called, and I get a the specified module cannot be found error. I tried creating a windows application and I can use productA.dll perfectly fine. Observing the output window during run-time for the web application,

What do you call a DLL that is placed on the same directory as the EXE?

会有一股神秘感。 提交于 2019-12-13 03:41:10
问题 I need a little help in terminology. You can put an assembly in the GAC to "share" these assembly globally in the machine. What do you call if you put the assembly in the same directory where the executable is? I have been calling it "side-by-side" because the EXE and the DLL is "side-by-side". I've done some reading and it seems that "side-by-side" stands for something else EDIT: Are those DLLs called "Private assemblies"? 回答1: Side-by-side refers to two versions of the same assembly (i.e. 1

With Web projects Asp.Net only detects changes in aspx, but not cs files

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:28:51
问题 Q1 - Asp.Net is able to detect when you change the original files and automatically recompilles the application when next request arrives A) But it appears that while with Web sites Asp.Net is able to detect changes, regardless of whether they happen in code-behind file (.cs) or in aspx file, with Web projects Asp.Net only detects changes that happen inside aspx file, but it doesn’t detect changes inside .cs files! Why is that? B) Asp.Net also detects if any new aspx or cs files were added to