assembly-resolution

Troubleshooting: Can't find a referenced unmanaged dll when invoking custom code via a Word code-behind

Context: I have a WPF App that uses certain unmanaged DLLs in the D:\WordAutomation\MyApp_Source\Executables\MyApp folder. I can double click the exe and everything runs. Next I have a Word 2007 code-behind project, that references relevant managed DLLs in the above folder and tries to do the same thing.. bring up the App UI. After ...

Troubleshooting: Assembly resolution for a managed dll from a Word VSTO Add-in

I have a Word VSTO Document with a code-behind dll named WordDocument1.dll Project folder D:\Work\Seven\WordAutomation\ContentControls\WordDocument1\bin\Debug I've copied some custom code into an MyAppExecs folder under that. The DLL has a private bin path specified so that code in MyAppExecs is reachable. So on startup, I load a Star...

What can cause the .net runtime to attempt to use the wrong version of an assembly

I have an application which references the assembly "Microsoft.Xna.Framework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d". I have created an installer project that installs this assembly in the GAC (by running the XNA redist installer). However, when this assembly is first used, I receive an exception during JITin...

Does redirecting assembly binding work for unit testing with a test runner?

Ok, so here's the full description of the problem I'm having: I am trying to use NUnit ExtensionMethods but whenever I run a test containing one of the extension methods using TestDriven.Net or if I just flat out try to load the assembly using a test-runner GUI (Icarus or NUnit) I get a FileNotFoundException. Pounding head against a wa...

Assembly references won't resolve properly on our build server

We code in C# using VS2008 SP1. We have a server that runs Team System Server 2008 which we use for source control, tasks etc. The server is also our build machine for Team Build. This has been working just fine for a long time. Untill now. We get these error messages when trying to build one of our projects that has a reference to one e...

How do I force where an assembly is loaded from?

I have developed a console utility that performs some operations against a server application. Due to the nature of the server app I'm working with, I need to execute this utility on the server. The problem is that the utility is referencing a common DLL that has previously been deployed to the server's GAC. Since the common DLL's deplo...

Problems loading assembly dependencies dynamically at run-time

Hi, let me try to explain my problem. I'm currently trying to develop a small "plugin-framework" written in .Net (mainly for experimenting a bit). So the idea is to have a main application to which "plugins" can be added by deploying dlls in a specific folder "plugins" of the main application. Everything works fine, the plugins are inst...

How can I launch a program from memory in C#?

I have some UI application that lives in the user's task bar that is written in C#. The EXE for the tool is checked in to our source control system on a number of projects that use it so we are able to update the version they run with by checking in updated EXE. The problem is that when the users get the latest revision of the exe, the ...

How can I force csc / mcs to use a specific version of an assembly reference?

I need to reference a specific version of a signed assembly. Because it is present in GAC, compiler picks up the 'vendor' version instead of the one I provide (the GAC version number is higher, even though it's an older API). Is there some kind of extension to the basic /reference=Library.dll compiler option that allows specyfing a stron...

How to solve: Custom MSBuild task requires assembly outside of AppBase

I have a custom Task that I want to execute when building my C# projects. This task is located in MyTask.dll, which references another assembly, MyCommon.DLL. The problem is that MyCommon.dll is located at "..\Common\MyCommon.dll" relative to MyTask.dll, which puts it outside the AppBase dir for MSBuild process. I've confirmed that this...

What is the meaning of Default/NativeImage in fuslogvw?

I occasionally use fuslogvw to track down problems loading assemblies. After all my time of using it, it seems that the folder 'NativeImage' has results for loading native images of my dlls. When the native image is not found (usually its not), I think it then looks for a .net assembly. The 'default' folder is what I normally care abo...

using FUSLOGVW.EXE on a machine with no Visual Studio installed

I'm currently having some assembly binding problems on our development server. I want to investigate the problem a bit further with Fusion Log Viewer. Since there is no Visual Studio installed on the machine, I copied FUSLOGVW.EXE to a local folder and started it there. Is this supposed to work or does it need something else? I don't ge...

SharePoint features: How can I use wildcard assembly versioning?

I think this is likely to be a generic .NET assembly loading question, but in my specific case, I want my SharePoint Features to point to an assembly whose versioning is associated with the correct SVN revision number. My assemblies are now versioned as mentioned in this article. I'd like to be able to just configure my SharePoint feat...

Mimicking assembly resolution of the msbuild process.

I am writing a validation tool that checks the versions of files referenced in a project. I want to use the same resolution process that MSBuild uses. For example, Assembly.Load(..) requires a fully-qualified assembly name. However, in the project file, we may only have something like "System.Xml". MSBuild probably uses the project's ta...

Microsoft.SqlServer.SqlTools.VSIntegration reference problem/oddities in Visual Studio 2010

SQL Server Edition: 2008 Enterprise Visual Studio: 2010 w/ .NET 4.0 SSMS 2008 Addin - Data Scripter project source code on CodePlex references Microsoft.SqlServer.SqlTools.VSIntegration.dll I have referenced the DLL under <<Microsoft SQL Server install location>>\100\Tools\Binn\VSShell\Common7\IDE But here is the oddity. Microsoft.S...

How do I reference assemblies outside the bin folder in an ASP.net application?

I've a working XML Web service written in ASP.Net. Now I need to reference certain assemblies lying in a specific folder e.g. c:\NotMyCode I do not want to copy/duplicate zillions of dlls in that folder into my bin folder. I tried to keep the CopyLocal=false for the assemblies referred in the Web Service. That ended up in a FileNotFound...

How is an assembly resolved in .net?

How are assemblies resolved in .net. I mean, how is an assembly with a fully qualified name resolved. I am confused about the public/private key tokens and strong naming. Thanks EDIT: I have also read about delayed signing and stuff like that. Do people really use it? (Has anyone actually used delay signing) Who generates the key to sig...

Reference assembly located on Network Share in ASP.Net

Where I'm at we have a large number of programs that can run that all use features from a set of assemblies located on a network share: things like writing to a common systems log, DB connection strings, some common business objects and functions, etc. We like this setup, because it makes it easy to deploy bug fixes and new features: ju...

Where do I find Microsoft.VisualStudio.DebuggerVisualizers?

A project won't compile because of a missing assembly. The file that causes the error has a using Microsoft.VisualStudio.DebuggerVisualizers; The VisualStudio part is marked in red. What do I have to install to fix it? To me it sounds like something that would have come with Visual Studio, but that is what I am using, so it is instal...

BindingRedirect to different assembly name

You can use BindingRedirect to redirect YourAssembly.dll 1.1.0.0 to 1.2.0.0. Does anyone know if its possible to do this if the assembly names are different. E.g. YourAssembly1.dll (v1.1) redirects to YourAssembly2.dll (v2.8) ...