Questions tagged [assembly-references]

142 questions
0
votes
2 answers

Way to embed/reference another DLL assembly while invoking a method using C# Reflection

Is there anyway to invoke methods using C# Reflection with embedded/reference dlls? For example consider the following senario. I have a assembly call User.dll, which have the class as bellow namespace User { public class UserInfo { …
Ramanan
  • 159
  • 1
  • 11
0
votes
1 answer

Error: Type or namespace not found

My code there is a errors like "The type or namespace name 'ChannelData' could not be found (are you missing a using directive or an assembly reference?)" How I correct this.please give your help. class ProcessCSV { public static…
0
votes
0 answers

Could not load file or assembly 'DropDownCheckBoxes' or one of its dependencies. The system cannot find the file specified

We have added third party (DropdownCheckBoxes) dll reference in our SharePoint web part application. On the user control, registered this assembly as <%@ Register Assembly="DropDownCheckBoxes" Namespace="Saplin.Controls" TagPrefix="asp" %> When…
Oxygen
  • 831
  • 4
  • 17
  • 42
0
votes
1 answer

Why could this JSON.Net FileLoadException be conditional

I get this runtime exception from var names = MeasureName.Empty.GetAll(); if (null == names) Console.WriteLine("No Measure Names found."); else { Console.WriteLine(JsonConvert.SerializeObject(names)); } but not this var groups =…
Gary
  • 3,254
  • 2
  • 27
  • 30
0
votes
1 answer

'Assembly is a higher version than referenced assembly' error in SSIS script tasks

In my SSIS packages, I've a script task which references the below assemblies... Microsoft.SqlServer.DTSRuntimeWrap, Microsoft.SqlServer.ManagedDTS, Microsoft.SqlServer.ScriptTask How can i get the same package to work on multiple SQL Server…
Yogesh Irmal
  • 111
  • 1
  • 1
  • 7
0
votes
2 answers

Do I need to use an older version of Aspose.Cells.dll?

I am Asposisizing a legacy app (users complained about the slowness of the code, which is in Excel Interop). I have added a reference to Aspose.Cells.dll and added this using: using Aspose.Cells; ...but get this compile error: The type or…
0
votes
1 answer

Code getting build locally but Getting build erroron TF in build definition

I wrote a project that uses entity framework and is working fine locally. But when i try to run an automated build using VSTS I get am error while running build definition. I know it is getting caused by Entity framework reference but I am not able…
Madhur Maurya
  • 1,016
  • 4
  • 19
  • 42
0
votes
1 answer

Type or namespace name could not be found (missing using directive or assembly reference?)

With this code: using System.Web.Http; class MyClass : IHttpActionResult { ... } I get the error: The type or namespace name 'IHttpActionResult' could not be found (are you missing a using directive or an assembly reference?) As shown here, the…
Pietro
  • 12,086
  • 26
  • 100
  • 193
0
votes
0 answers

How to add references to a WCF service application after deployment?

I am currently working on a WCF service application in C#. There are some dependencies from both .NET and 3rd party libraries. After deploying it on IIS 7, the structure looks like this: App_Code IService.cs Service.svc.cs ... bin [3rd party…
bytecode77
  • 14,163
  • 30
  • 110
  • 141
0
votes
1 answer

Use assembly from a library which has been created through ILMerge

I have created an assembly package using the tool ILMerge. There is an assembly (lets call it A) which is part of that packaged assembly which is going to be used by a other assembly, which is not included in the package (lets call it B). Now what…
DerApe
  • 3,097
  • 2
  • 35
  • 55
0
votes
3 answers

Obtaining a Referenced Assembly's Call Count

I am in the process of writing a document analyzing a large codebase for quality and maintainability. As part of this report I wish to include a count of the number of references an assembly makes to another assembly within the solution. This will…
0
votes
0 answers

How to automatically reference BaseClass control when using toolbox for my Main Control - Visual Studio

First I want to thank upfront to anyone who will answer my question. My problem is: I have created "base control" and from the base I have inherited my "main control". Now user will be adding my "main control" to the toolbox such that he (the user)…
0
votes
1 answer

Visual Studio 2008 and 2010 behave differently when referencing assemblies in the file system?

I am seeing a strange phenomenon in Visual Studio 2010. My project setup is this (I inherited this - can't change it any time soon, unfortunately :-(): a Winforms app that uses Crystal Reports X (v10) as its reporting engine; full CR X Developer…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
0
votes
1 answer

Unable to reference DAL project from BLL after separating POCO classes

I have a BLL and DAL projects in my solution in addition to my web application project. I'm using entity framework 5 and i had the .tt file within the DAL project. Everything was working fine but then i tried separating the .tt file into a new…
user3340627
  • 3,023
  • 6
  • 35
  • 80
0
votes
1 answer

Unity not adding reference to managed assembly when it's not marked as for all platforms

I have a Unity native plugin with next structure: Plugins/Android/Foo.jar // Native Android library Plugins/Android/Foo.Android.dll // Managed Unity wrapper to let access native Android routine (Marked as for Android only) Plugins/iOS/libFoo.a //…