I have a question about how the .NET framework (2.0) resolves dependent assemblies.
We're currently involved in a bit of a rewrite of a large ASP.NET application and various satellite executables. There are also some nagging problems with our foundation classes that we developed a new API to solve. So far this is a normal, albeit wide...
Hello,
I'm writing a customized reflective library for some specialized custom domain logic, and that library is going to use XML configuration files that will dynamically resolve System.Type objects at runtime. However, when writing the XML configuration files, it's a bit of a pain to write the types because they need to be fully qual...
I am getting "found conflict between different versions" from one of my projects.
How do I find out which assemblies are actually in conflict?
...
I am processing some CSV file which i have copied in Bin folder of My ASP.NET Website.
When i execute
using (IDataReader csv = new CsvReader
(new StreamReader("sample.txt"), true, '|'))
{
.....
}
it complains me that "sample.txt" not found in "c:\Program Files\.....\"
Won't the runtime automatically look into the bin...
The question says it all.
...
My scenario is a classic MEF scenario. There is a silverlight host app, and the app can download plugins on the fly to add functionality. Plug ins can be created by third parties.
Now the problem arises when different plugins and/or the host app reference different versions of the same assembly.
For example:
-plugin A references the v...
So here's the problem. I'm writing some StyleCop plug-in assemblies for use at the company I work for. As such, these assemblies need to reference Microsoft.StyleCop.CSharp.dll for example, which is strongly named.
The problem comes in that if I build this and pass it along to the developers in my group, they must have the same versio...
Is it loaded when a class from the assembly referenced?
Or
When a class which declares the using namespace from the Assembly is loaded?
Also having loaded an assembly does it ever unloads the assembly if it is not used for a long time?
...
Hello,
I am currently writing a framework dll which has an AssemblyHelper.
This helper stores Runtime and UserAdded assemblies to easily instantiate new objects.
The .NET part of the framework uses:
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();
_runtimeAssemblies = AssembliesLoad...
An extension of my previous thread: http://stackoverflow.com/questions/2634531/c-wrapping-an-application-within-another-application
So I'm launching embedded resource applications via Reflection and I'm unsure whether I can use AutoIt (.au3) files or not. People say it needs to be "Managed Code". I'm not completely sure what that means ...
Help, here is the idea:
External.dll
IMyClass NewCreated = (IMyClass)Activator.CreateInstance(Namespace.MyClass).UnWrap();
Asp.Net WebSite
App_Code
Namespace.MyClass.cs
Bin
External.dll
Is that even posible?
I have tried, a lot of posible combinations, like:
Assembly.GetCallingAssembly().CreateInstance("Namespa...
As a means of simple security, I was previously checking the digital signature of a downloaded update package for my program against its public key to ensure that it originated from me. However, as I'm using cheap code signing certs (Tucows), I am unable to renew an existing cert and therefore the keys change every time I need to renew.
...
I have a class library project for .NET 3.5 built with Visual Studio 2008.
If I try to NGEN the core assembly in this solution file, NGEN never completes, or at least not in the time I've bothered to let it run (like overnight).
Has anyone else experienced this? And if so, did you solve it? And if you did, how? What steps did you take?...
Hi,
Yesterday I found out that the mailroot directory had moved to a different location on the C drive. I don't know how this happened as no configs were changed, using IIS7 with IIS6 SMTP service on Windows 2008 R2 web edition.
I wanted to restore it to the default c:\inetpub\mailroot location. So I opened system32/inetsrv/MetaBase.xml...
I've got a visual studio 2010 project which publishes an assembly called myAssembly.ddl.
I then want to reference myAssembly.dll from an existing vs 2008 project. If I try to load the reference it comes up with an yellow exclamation mark next to it, suggesting that the assembly wasn't loaded. However, I'm not getting any error messages ...
We implement a plugin framework for our application and load plugin assemblies using Assembly.Loadfrom. We then use GetTypes() and further examine the types with each plugin file for supported Interfaces.
A path for the plugins is provided by the user and we cycle through each of the files in the folder to see if it (the plugin) support...
I have an MSBuild script that uses NUnit to run tests in two assemblies. These were on .NET Framework 3.5 and it worked perfectly for a long time.
The command line was:
(actual paths & names simplified)
nunit-console tests1\bin\debug\tests1.dll tests2\bin\debug\tests2.dll
I've upgraded to VS2010 and have now made the two test assembl...
You can specify the namespace and assembly to use types from at the top of HBM files:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="MyCorp.MyAssembly" namespace="MyCorp.MyAssembly.MyNamespace">
Can you use types from multiple assemblies / namespaces within the same mapping file, and if so what is the syntax for doing...
Hi, I'm a bit of a visual studio noob. I have just restarted a project in which I am using NHibernate. The project worked fine last time I used it but now is giving the following error.
System.IO.FileLoadException: Could not load file or assembly 'Iesi.Collections, Version=1.0.0.3, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or...
I have a plugin architecture solution written in .NET C# 3.5, where each plug-in is an assembly loaded by the main project.
Each plug-in can optionally consume web-service, so I would like to have the configuration of that plugin in its own plugin.dll.config file instead of having it in the
app.config of the main project.
I have been...