assembly-resolution

Dll replacement issue (riddle in the dark)

The following scenario happens to me both on windows services and web working with ASP.NET application using IIS. I have an application that I want to change its behavior after it was deployed. So to do that I kill the application process (iis worker process) or stop the windows service. The I rename one or more of its dlls to be with th...

Is MEF For Me? (one core application allowing client applications to plug into it)

I'm trying to determine if MEF is a the proper direction our application framework should be taking. From my reading of MEF, our framework doesn't seem to 'exactly' fit in, but I'll see if any experts can guide me. Our framework allows us to have one core website and dependent assemblies deployed to one place (and fixes or features are...

Multiple seach paths for assemblies not in the GAC when using REGASM & COM

I am in the process of creating a .NET assembly that will be registered for COM so that it can be referenced by Microsoft Excel VBA. The assembly references a third-party .NET assembly (that contains some useful classes) that is not in the GAC, however, I have a problem with the deployment of my assembly since the path to the third-part...

Fully Qualified Type Resolution in .NET

Simple question (comes up in SharePoint 2010, but that's not really relevant). How does: <add name="LdapMembershipProvider" type="Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ...resolve when the actual type (LdapMembershipProvide...

Unable to find assembly Nhibernate

Title says it all. I'm developing a web app using NHibernate, and getting the error Unable to find assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' The weird thing is that it's intermittent, and when ti happens it causes the VS 2010 embedded web server to crash. But it doesn't happen on ever...

While building a unit test project, VS 2010 cannot find the referenced assembly for testing.

I'm developing a unit test project (let's say XXX.UnitTest) to test ViewModels in another project (XXX) in my solution. I can add the reference but when I build, an error states that it cannot find that same project (XXX) Error 42 Could not load file or assembly 'XXX, Version=1.0.2.66, Culture=neutral, PublicKeyToken=null' or ...

Windows service locks up on assembly load

I have a Windows Service written in C#. It includes a standalone console mode as well, for debugging purposes. It works fine on almost every computer it's been run on, but we ran into a situation where this service locks up when you try to start it, and then it gets killed because of timeout. But when running it in console mode on the...

.NET Fusion logger: What is the difference between Default and Native Images?

In the .NET fusion logger (FUSLOGVW.exe) what do the two options in the lower right of the screen do? Log Categories + Default + Native Images And how can I use either one to diagnose a mixed-mode assembly problem? ...

Referencing Assemblies in a .Net Application

Hi all, In my application, I would like to load Assemblies that reside on a network share (The application itself is on that share, too) without having to add them to the project's output path. What I'd like to have is an output directory that contains next to nothing but the application. Merely adding the target directory to my projec...

Inexplicable Assembly Load in WCF Service (IIS 7)

I'm working on a new WCF web service that's to be hosted within an existing ASP.NET web application. When I attempt to run the .svc file for the service, I'm getting an exception that it can't find the file for an assembly. Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5...

How are .NET assembly references "translated" to file paths?

I'm trying to troubleshoot a .NET 2.0 error with Outlook Web Access on a SBS 2008 Server. The error I'm getting is: Exception information: Exception type: HttpException Exception message: Could not load file or assembly 'Microsoft.Exchange.Data, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its de...

Dynamically Instantiate assembly objects - Null Reference

I am trying to load an assembly into memory and then instantiate types within that assembly. The objects are all of the same type (ITestMod). The following seems to work well: private void LoadTestAssembly(string assemblyName) { try { Assembly assembly = Assembly.LoadFrom(@".\testmods\" + assemblyName); ...

Runtime error when trying to run Fluent NHibernate tutorial example.

Hello, I worked through the Fluent NHibernate tutorial at http://wiki.fluentnhibernate.org/Getting_started and the project compiles fine. However, I am getting a runtime error and I can't seem to resolve it. The error is happening in the CreateSessionFactory method you can see in the tutorial. Here it is: private static ISession...

How to redirect an assembly reference from GAC version to private assembly which differ only by revision

Hi, I'm trying to use MEF2 Preview in my .NET4 project. MEF2 Preview version is "System.ComponentModel.Composition.Codeplex" file with "System.ComponentModel.Composition, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" assembly name. So it only differs by revision number from the version in .NET/GAC (which is 4.0.0.0)...

silverlight 4, dynamically loading xap modules

I know that it is possible to load xap modules dynamically using Prism or MEF framework. However, I'd like not to use those frameworks; instead load my xap files manually. So, I created the following class (adapted from internet): public class XapLoader { public event XapLoadedEventHandler Completed; private string _xapName; ...

MsBuild does not look in the good directory for custom task's second-level dependencies

I wrote a MsBuild Task : MyTask. In my solution, I have the Task project and others projects. MyTask references a project (say ProjA) which references third assemblies, say (dep1 and dep2). The projects all builds well and I have the outputs in one directory (Compil). In this directory i have all the dll's I want : MyTask.dll, ProjA.dll...

Assembly reference not found, even though the assembly is in the same directory

We're currently developing an add-in for some software. We decided to develop in .NET, even though the application is written in some native language. Since there were some problems directly creating the external interface in .NET, we decided to build a bridge DLL in C++/CLI, which does some basic initialization and then loads our manage...

Adding references adds wrong version

When adding a reference to VS 2008, the version is listed as v1.0.0.0 when it should be v1.1.0.0 - as far as I can see there is absolutely no reason why it is adding the wrong version. Both projects are written from scratch, no other refs reference the assembly I'm trying to add and when I look at the file in windows, it has the correct...