assemblies

Use of Assemblycodebase

I have my application bin on some different drive(D:\application\bin). And in my application i do some kind of folder creations(say "Backup" folder) and in this folder i have some files and do some kind of validations. and then after these validations i delete this folder.It had been working well till now.,but now i see that during the p...

Can't find Microsoft.SqlServer.ConnectionInfo.dll assembly file?

I'm trying to dynamically get a databases Table structure using only C# code as follows: using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; public class LoadStuff { ... public void LoadDatabase(string vDatabaseName) { using (var vSqlConnection = new SqlConnection(DatabaseConnectio...

Merging Assemblies

I m working on a project which contain about 17 projects in it, means 17 DLL's. i want to merge some assemblies together. after googling i found ILMerge . is Ilmerge good ? n how to use it? can anyone tell me ? i tried it but so many errors came when i try to run the .exe. Anyone ? ...

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

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 'Microso...

Is there any difference between a shared location and GAC?

What is difference when .NET assemblies are stored at shared location and GAC? ...

Do we need to build application again while moving it from 32bit machine to 64 bit machine?

Consider an application is built on 32 bit machine. Now I want to move application on 64 bit machine. Do I need to rebuild application once again on 64 bit machine? ...

Dependency error while trying to use dll

Hello, I am trying to connect the quantumsoftware winforms components (http://www.quantumsoftware.com.au/Products/WindowsFormsComponents.aspx) to my visual studio 2010 (.net 4) project. The following warning always pops up when I try to use one of the components. Afterwards it results in an error: namespace not found.: The referenced a...

Running a dynamic void from a assembly loaded into an interface

So, i have an assembly that i loaded into the interface, and it works perfectly: MarshalByRefObject pluginObject = ... ecko.Plugins.Interface.Plugin plug = pluginObject as ecko.Plugins.Interface.Plugin; but, allthough i will have alot of methods in the interface, i will have to execute methods that are dynamic, and determined from inf...

publisher policy in GAC

I want to redirect consumers of dll v1 to dll v2. I will add a publisher policy in GAC for that. Must the policy be in GAC? Does this mean dll v2 itself must also reside in GAC? ...

Build separate assemblies within same project Visual Studio.NET

Hi. I've searched online for the answer to this but with no luck. I was wondering if it was possible to build certain classes and or .cs files to separate assemblies within the same project? I.e I have a number of HttpHandlers in one project, currently I am building them all into one assembly HttpHandlers, but what I was thinking if l...

Assembly missing when building my c# application.

This is a console application that I am developing using VS2010 in C#. II got a dll from one of my colleague that I need to use. I added the dll as the reference , added the required name space. Added code to create an instance of the object and used a method from the class. When I finished the code there are no errors reported by VS. Wh...

WF4: Many dynamic assemblies in current app domain ?

Full code: using System; using System.Linq; using System.Activities; using System.Activities.Statements; namespace ManyAssemblies { class Program { public sealed class SayHelloActivity : Activity { readonly WriteLine writeLine = new WriteLine() { Text = "Hello Workflow 4" }; public SayHelloActivity() { Imple...

VSTO addin dependency resolution

I have a VSTO addin, which works fine. I am trying to give it a plugin-loading mechanism so that others can add plugins to my plugin. I sounds horrific, I know, but it seems to best option for now. I publish my addin to a folder called 'Published'. This creates the application manifest (Symbols.application) and also a folder called S...

help with Could not load file or assembly error

I have about 70+ sites that all run off the same code base. Last week I tried to make sign all of the dlls so I could move them to the GAC so all the sites would use those instead of each having their own bin folder. I've run into a hiccup with that idea and I have to wait until we get some other issues sorted out on the test server ...

How to make only one DLL when publishing asp.net website instead of "App_Web...dll's ?

I have a ASP.NET Web application which has 2 projects(one for UI and one for Business layer) Now when i publish this for deployment,its giving me so many DLLS in bin folder which starts with prefix "App_Web...."in the name.How can i make it into only one DLL or 2 DLLS (one for UI and one for BL) ? I work with Visual studio 2010 Thanks i...

Assembly locking rules and when is shadow copy useful ?

Hello, from what I've understood so far, by reading this doc for instance : http://msdn.microsoft.com/en-us/library/ms404279.aspx, Shadow copy is a feature that allows the use of an assembly while currently loaded by an application. From the above doc : The common language runtime locks an assembly file when the assembly is loaded,...

Is a Java package the equivalent of a .Net assembly?

I am a .Net developer starting Java development for Android and would like to know if it's correct to think of Java packages like .Net assemblies. Thanks! ...

In Visual Studio, how can I see if an assembly is refenced from the GAC?

Simple question: In Visual Studio, how can I see whether an assembly is referenced from the GAC or whether the reference is simply referenced through the ('normal') file system? I thought I'd be able to deduct this by looking at the .csproj file but maybe not. Here's an outtake from my .csproj-file: <Reference Include="MoreLinq, Versio...

How .NET build / compilation works

Hi, I was trying to find some simple overview but found nothing. So I hope someone will help me here. I would like to know what is the flow of compilation/assembly process in .NET. I just know: 1)The code is compiled into CIL 2) 3) ... 4) Executable binaries ...

Embed js, css, images into separate assembly to read from asp.net web site

I'd like to create a class library project where embed resources like js, css and maybe image files. I would compile it and copy the dll into the bin folder of my web site to include the resources into my pages with GetWebResourceUrl. I tried with an assembly that have no .cs files, but it doesn't seem to work, I can't see the namespace...