I have an assembly that contains several resource files. Most of them have the neutral language 'nl' (Dutch, specified on the assembly as the neutral language), so I don't specify the 'nl' in their filenames.
However, I'm putting strings in the English language in some other resource files (they are internal error messages) and I will ...
Hi, guys.
Rather than trying to piece out the individual pains I'm dealing with, I want to give the 10 000 feet overview of it. I learn .NET as I go, and I suspect that there is something obvious that I'm missing here.
I'm sitting working overtime on a Sunday and I'd really appreciate if someone would toss in their five cents.
Here g...
I have a project, i.e. library.exe. In this I have referenced an assembly (logging.dll ver 1.0.3.0) and I have given this assembly a strong name.
Now suppose I changed a method in logging.dll and made version 1.0.4.0.
Now when I copy/replaced the old DLL with this new one I got an exception.
I know that exception is because I have cha...
From the command line (or by any means really), how can I determine which clr version a .net assembly requires? I need to determine if an assembly requires 2.0 or 4.0 clr version.
...
Hi,
I'm currently trying to customize a Visual Studio Isolated Shell so it opens a XAML file and its designer without a solution or a project. Therefore, for the designer to load, Visual Studio need to recognize every xaml tag in the XAML file or it won't load telling me that the document contains errors.
I'm currently trying to manual...
Our .Net 3.5 projects are delay signed and are registred with sn -Vr to allow debugging these assemblies on dev machines.
Recently we ported some projects to Silverlight 3.0 and found out that sn -Vr won't allow to execute a delay signed silverlight assembly through iexplorer.
Is there a way to execute a delay signed silverlight applic...
I'm dynamically loading .dlls, and I'd want to load them from a subdirectory of
where my .exe is located.
To get something like Assembly.Load("SomeAssembly"); where SomeAssembly.dll is located under "DLLs\" ,I've done
AppDomain.CurrentDomain.AppendPrivatePath("DLLs");
This works fine, but apparently AppendPrivatePath is deprecated...
How to know which application is using an Assembly in GAC? I want to remove unwanted assemblies from GAC but it is not getting removed as it is used by some other application.
...
I am getting following error for log4Net in Asp.Net 2.0 website.
Compiler Error Message: CS0433: The type 'log4net.Config.XmlConfigurator' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\caps_2.25\bc79a253\fd331fcd\assembly\dl3\6113a1ef\008a4b7c_09b0ca01\log4net.DLL' and 'c:\WINDOWS\assembly\GAC_M...
I'm looking for some guidance where to store assemblies. This is how our source tree looks like at the moment:
ProjectName
trunk
|--------src (source code)
|--------lib (assemblies needed by every project e.g. NUnit framework, svn external)
|--------tools (tools needed by every project e.g. NUnit executable, svn external)
|...
I'm using a third party API to access some data acquisition hardare (National Instruments hardware with DAQmx driver). To do so, I add a reference to its driver dll.
When I run the code on a machine that has the driver installed, no problem. But when I run on a machine without the driver, I get a System.IO.FileNotFoundException that can...
Hello,
I have been messing around with writing some stored procedures in .NET code with SQL CLR Integration. In the stored procedure, I am calling a third-party dll. When I try to create the assembly in SQL Server containing my custom stored proc, it complains that the third-party dll is not registered with the database.
Is there som...
Is there a way to unload the default .NET AppDomain from an unmanaged application?
I'm using a third party tool called .NET Extender for using .NET assemblies from within Visual FoxPro which allows me to host .NET controls and also make use of .NET classes and methods from within a FoxPro environment.
The problem I'm having is that whe...
I've come across an intriguing problem. I have an application made of several assemblies. I installed the application but forgot one small non essential assembly. The application appeared to start and work fine until I hit a method that required the use of that assembly. As you might've already guessed I see the "Could not load file or a...
Getting "System.IO.FileLoadException: Unable to load file or assembly" when trying to bind localized resources assembly from the separate project.
Fusion Log shows: ERR: Setup failed
with hr = 0x80070005. ERR: Failed to
complete setup of assembly (hr =
0x80070005). Probing terminated.
Trying to solve this for 3 hours already,...
May seem to be a similar question to GetReferencedAssembly locations, but my question is getting physical locations of the types in those referencedAssemblies.
Can I get information from pdb? Or can I use cecil?
Ultimately my goal is search for a keyword for a specified assembly, and list all the files [.cs/ .fs/ .vb] that uses this key...
Hello,
I have a listview in which a user can browse for assemblies, the problem is that the user can add the same entry from the dialogbox. This is useless and does not account for anything, so how can i get rid of this?
My question is, how does one compare with the item in the listview so that it does rule this out. Yes! There has a...
We're having problems getting visual studio to pick up the latest version of a DLL from one of our projects.
We have multiple class library projects (e.g. BusinessLogic, ReportData) and a number of web services, each has a reference to a Connectivity DLL we've written (this ref to the connectivity DLL is the problem).
We always point ...
I am trying to write some code that will allow me to dynamically load DLLs into my application, depending on an application setting. The idea is that the database to be accessed is set in the application settings and then this loads the appropriate DLL and assigns it to an instance of an interface for my application to access.
This is m...
Hi, I am using a xml file as an embedded resource to load an XDocument. We are using the following code to get the appropriate file from the Assembly:
XDocument xd = new XDocument();
Assembly assembly = null;
try
{
assembly = Assembly.GetExecutingAssembly();
}
catch(Exception ex)
{
//Write exception to server event log
}
try
{...