Referencing DLLs In Project?

Sep 23, 2009

I have a project that references two DLL files in the system 32 directory as COM references. The files are certenroll.dll and certcli.dll which are included in the system32 directory as part of the OS. My app is a console application that I'd like to have as a standalone exe. It seems that the these files are converted to something like Interop.CERTENROLLLib.dll and Interop.CERTCLIENTLib.dll and dropped in the bin directory for my project. Since I want the app to be a standalone exe able to run on other PC's I'd rather see the app reference the original DLL files in the system32 directory and not have to carry these dependency files around with it.

View 2 Replies


ADVERTISEMENT

Referencing DLLS In The GAC And Policy Files?

Nov 11, 2010

I have a project/app released which references a dll from the GAC folder. The project is looking for version 1.0 of the referenced dll.

I want to release version 2 of the dll without having to re-release the app and have all users re-install.

I had thought if i deployed a policy with the new dll which redirected calls for the dll to the new version this would be ok. However I think I am missing something. IT seems the redirect is not working as when I test on a users machine, give them the version 2 dll and the policy dll but take away the version 1.0 the app fails. It seem calls to the missing dll are not redirected by the policy dll to version 2.

Policy config which is used to create the policy.1.1.CorpReportsClassLibrary.dll
is as below.


<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

[Code]....

View 3 Replies

.net - Reference 2 Dlls Using The Same Namespace In 3.5 Project?

Jun 29, 2011

I have a vb.net 3.5 class library project that needs to reference two assemblies that have the same namespace. We have two third party dll's in which one is version 5.1 and the other is version 6.1. They have the same dll filename and they utilize the same namespace and functions/class names. The project needs to use one or the other depending on a specific situation. I've investigated up on a c# process that uses the "extern alias" feature to pull in the different assemblies.

[URL]

What use is the Aliases property of assembly references in Visual Studio 8.It seems that this feature isn't fully available for vb.net. Things I've Tried I've renamed the 2nd dll and added both references to my project. At this point I get tons of: 'blah' is ambiguous in the namespace. So I need to alias the different versions. In vb.net you can do aliases on an imports statement like:

Imports version5 = Somedll.Something

The problem is I can't setup an assembly reference alias for the different versions of the dll. Apparently in vb.net you can't set these up in the reference properties window. So I tried setting them in in my project file like this:

<Reference Include="somedll.5.Navigation">
<HintPath>....UtilityThirdPartyDLLSsomedll.5.dll</HintPath>
<Aliases>SomeDLL5</Aliases>

[code]....

I would then expect this to work:

Imports version5 = SomeDLL5.Something
Imports version6 = SomeDLL6.Something

But the "SomeDLL5/6" doesn't show up in intellisense. So how can I reference both dll's in the same project?

View 3 Replies

Protect Dlls In Project From Being Referenced By Other People?

Apr 30, 2009

How do I protect dlls in my project from being referenced by other people?

View 1 Replies

[2005] Setup Project And Referenced Dlls?

Feb 9, 2009

I have created an application and a setup application for it.The application references Microsoft.mshtml.dll and another custom dll.The problem is that despite the fact that i added to the setup project the output of the application, these two dlls were not added in the setup project's "detected dependencies". Do i have to add them manually ? Do you know if Microsoft.mshtml.dll (C:Program FilesMicrosoft.NETPrimary Interop AssembliesMicrosoft.mshtml.dll)will work both on Windows XP and Windows Vista no matter what version of Internet Explorer is installed ?

View 1 Replies

Asp.net - Visual Studio Project Randomly Named DLLs?

Oct 26, 2011

Years back I inherited a project that is written in VB.net - the problem with this site (it's a website in Visual Studio, not a web application) is that if you change any code you have to compile and upload the entire site each time.

Why? Because it seems to generate a bunch (maybe 10-15) of randomly named DLLs in the BIN directory on every compilation. Each page in the site then references these randomly named DLLs so I have to upload them all and the new DLLs if the site is to continue working.

What 'setting' is this site built using, or more importantly how can I change it to a more convenient system of generating one or two consistently named DLLs?

View 2 Replies

Divide Project Into Smaller Entity (dll) Or Convert 10 Forms To 10 Dlls?

Jan 21, 2011

Let say I had a project contains 10 forms and 10 reports and typed dataset (xsd)I am trying to divide my project forms into dlls, so when the client had a problem or asks for modification in single forms, I had to build the project all over again and the exe size will be large.

in my current project, the exe size is 4.8 MB, and I am working with customers by internet and remoting, so every time I make small changes (change the back color of textbox in one form) I had to rebuild and send the whole 4.8 MB to the customer. And not forgetting the increasing size of the exe with time.I know that converting my project to class library and built it will convert it to dll, so I had to create a second project to manage it.

1 - Can I convert 3 or 4 forms / 10 forms total in my current windows application project to dll?

2- What is the best recommended method to divide the project into smaller entity.

View 19 Replies

How To Change The .proj File To Include Reference Dlls When Doing An Auto Build With A Project

Aug 27, 2010

I have a simple vb.net project that outputs a dll. In order to build this project, I have to reference some 3 3rd party dlls by manually adding them to the project and then building.

What I want to do now is auto build this using a app called CruiseControl. . . I have been told that in order to use the 3 3rd party dlls, I have to modify the .proj file to include the .dlls. The thing is, where in the proj file do I include this
and how do I do this? I think I may know where the section is and I have included it here:

[code...]

When I run the auto build program it fails (it runs through but fails at compile time); when I build this manually it works when i refer the dlls. What am I missing to make this work?

View 4 Replies

VS 2005 Referencing Classes In Another Project?

Jun 30, 2010

I'm making an application that will be available as both a Windows App and an ASP.Net App. The web app has a much scaled-down version of the functionality of the window app. I want to reference the classes contained with the windows app from my web app. The thing is, my classes in the windows app may have some modifications: if I reference them in my web app, will this pick up the changes made automatically? Also, referencing the project is for development work, when I go to deploy the web app, I will probably need to reference the classes as dll's. So the next questions are: 1. Is this the right way to go about doing this?
2. How do I make the Classes I have into self-contained dll files?

View 2 Replies

Building A 2008 Express Project Referencing A Dll

Jun 5, 2009

I have written a program in VB.NET 2008 Express that references a .NET managed dll. I simply added a reference to the dll to the project. I then 'Imports' the dll at the beginning of the program and then can use it. Everything works fine when I am running the program in debug mode (and it uses the dll as intended), but as soon as I go to build the project I get an errors that it "Could not reslove this reference" and "Namespace of type specifier in the Imports 'ModbusTCP' doesn't contain any public member or cannot be found." The dll is located in a different location on my hard drive to the project location, but this was referenced when I 'added reference'.

View 2 Replies

Referencing User Controls That Are Contained Within The Same Project?

Feb 25, 2011

I'm fairly new to VB.NET and I'm currently playing around with user controls, figuring out good programming practices. As far as I understand, to create and use a UserControl, I need to create a project with the UserControl in it, then build the project and use that DLL (add it to Toolbox or otherwise).My question is this: Is there a way a have a project (a Form with a bunch of things on it) that contains a UserControl written in a *.vb file inside that same Project? If you do that, the DLL (in my case) never gets produced, possibly because the UserControl is never used and building it is simply omitted. Is it perhaps a bad practice to do that altogether? It simply makes sense to me to keep a UserControl as a part of the Project that uniquely uses it. Is there a reason not to do that?

View 1 Replies

DLL Import - DLLs Were Re-compiled As 64-bit DLLs And They Still Don't Work?

Apr 6, 2010

I am trying to understand how to interact with external DLLs written in C++ for use in my VB.NET application. I have some DLLs that a client wrote that do some math functions. Everything was working on a 32-bit machine. Because we were taxing the 32-bit machine we moved to 64-bit. Now we can't get the same functions to work. The DLLs were re-compiled as 64-bit DLLs and they still don't work. So my client wrote some dummy DLLs to see if we could figure out the problem. Here are the "signatures" of the DLL calls that I am making:[code]....Ultimately I would like to get to calling initialize_quiet and I am guessing at the format of the marshalling, const size etc.

View 3 Replies

ASP.NET Project Still Referencing Old Project Name

Jun 8, 2012

So I have this asp.net web application that I renamed.I changed the assembly name, root namespace, changed all the aspx files Inherits lines to have the new name.But for some reason it is still references the old assembly name. So the main page loads but there is a button that submits to pgRequest.aspx and I get this error in the event viewer.So I recreated the solution, project and did add existing item for all the forms.[code]

View 2 Replies

DLLs - Error "newForm1 Cannot Expose Type 'form1' Outside The Project Through Class GlobalData"

Feb 18, 2010

For a test scenario I have a dll project. In the project I have 1 generic class 'GlobalData' and 1 form 'form1' in the generic class I would like to make a public shared newForm1 as new form1 the line of code I'm trying is: Public shared newForm1 as new form1 I get the error newForm1 cannot expose type 'form1' outside the project through class 'GlobalData'. I really need to be able to make a public shared reference to form1. Any way to get around this? Background as to why I need to do this: I have several projects that need to use Form1 as a mdi child. I would like to just update the dll and not have to go back and update the same form in 50 projects.

View 4 Replies

"Reference Required" Error When Referencing NServiceBus Assembly From Another Project

Feb 3, 2010

We are trying to write an application that uses the NServiceBus library in a VB.NET environment. We've been stymied by errors similar to the following: Reference required to assembly 'NServiceBus,Version=2.0.0.1071, Culture=neutral, PublicKeyToken=9fc386479f8a226c' containing the implemented interface 'NServiceBus.IMessageHandler`1'. Add one to your project.Our project already includes references to NServiceBus.dll and NServiceBus.Core.dll from the same NServiceBus 2.0 RC2 distribution.

[Code]...

Any ideas about how to solve this problem? (And, yes, my preferred solution is switching to C#, but no, that's not an acceptable one at the moment.)

View 2 Replies

64 Bit ActiveX DLLs?

May 27, 2011

I've seen quite a few questions about calling 32 bit ActiveX components on 64 bit platforms - as I understand it you can't create a 32 bit ActiveX component from a .NET application running in X64 (native) mode. This is OK and I think I understand it.But my question is more basic. Is there such a thing as a 64 bit ActiveX component? or is ActiveX always 32 bit, period?

View 5 Replies

IDE :: Testing VB DLLs In VB?

Nov 22, 2010

I was once a VB 6 expert, but it's been a while.I am attempting to create a simple DLL in VB. I created a new WCF Service Library, which is what it looks like I needed to do. I filled out the interface and implemented it. Here's the interface:

<ServiceContract()>
Public Interface AgileApi
<OperationContract()>

[code]....

And attempted to call it, but I get System.EntryPointNotFoundException. I've tried pathing the defined library and copying the dll file into the same place where my EXE is, but no change to the error.

View 6 Replies

In-project Components Fail If Project Is Opened With In-project Component Used On Initially Open Form?

Dec 20, 2010

Public Class ExtendedDateTimePicker Inherits DateTimePicker

View 5 Replies

C# - NRefactory Has Missing Dlls

Apr 22, 2011

I've tried to use NRefactory(Vb) [url]... but it didn't come with mono.cecil.dll so i downloaded that too, but when i merged it together the versions seem to be off (i had error Mono.Collections missing class)

does anyone seem to be able to get NRefactory working?[code]...

View 2 Replies

COM Visible DLLs: Are They Only Legends

Dec 5, 2005

straightforward method of creating a DLL with properties and methods exposed to other programs? I followed the instructions that I found on the MSDN websites as well as suggestions from forum participants. The DLL should be available both for COM and .NET programs. So far, nothing has worked.There are numerous variations listed on the MSDN site. No doubt there are reasons for the differing instructions. However, I have not had sufficient success with any of them. Sometimes, just building the project makes the class visible to COM compatible programs. Other times, only after running regasm. Still other times, I have to run regasm, sn and gacutil before the DLLs class gets exposed. Then forums posters tell me: "you shouldn't have to do all that.

[Code]...

View 15 Replies

Deployment :: What To Prevent Anyone From Using DLLs

Feb 2, 2010

You developing a application named "DemoSoft" which is going to be a shareware or Premium, you use different DLL's in this project and some DLL's are owned by you, they are very useful and valuable, you are selling this software and are charging the customer for what the software does but since this software uses one of your Valuable DLL, actually few functions from it you have to deploy it and cannot additionally charge for the whole dll. since that would be unwize.now i want to ask what can you do so that This DLL in "DemoSoft" cannot be exploited, meaning end user could use my software but if some thief tries to use my supplied DLL in one of his own app he is unable to do it, in simple terms DLL should work only and only with DemoSoft.

View 5 Replies

Get A List Of DLLs That A Process Is Using?

Jan 11, 2010

How would I get a list of the DLLs that a process is using? For example, if a process used "SomeDLL.DLL", would it be possible to find that out using a VB program?

View 10 Replies

How To Change DLLs Dynamic

Mar 5, 2009

My environment is VB6 (NOT .Net), and I have three function-similiar com+ DLLS with different GUID. For example, DLL A, DLL B and DLL C have the same function Beep(). I have a VB application, if I want to use DLL A Beep(), I should import the DLL A reference, and rebuild my application. If I want to switch to DLL B Beep(), I have to change the DLL reference and then rebuild my applicaton.. The same to do if I do with DLL C.

View 1 Replies

How To Put DLLs In Separate Directory

Oct 16, 2011

DO NOT REDIRECT THIS TO ANOTHER THREAD BECAUSE THERE ISN'T A ONE I'm developing a project in VS2010 - WPF - VB.NET (4.0)The solution contains 11 projects; one executable and others are User Controls, Custom Controls and Classes.Now when I build my solution this happens in the output (Debug) folder:

Images/(images used buy MainProg.exe)

[Code]...

View 11 Replies

Link Different Projects Using A DLLs?

Jun 4, 2010

i have been researching this question fror weeks and yet i cant find the answer. Can anyone tell me how i can link two vb.net projects in VS2010 together using a dll. For example, say i have two projects, project 1 and 2. if i want to open a form from project 2 using a button from project 1, what will the procedures be and the codes.

[Code]...

View 10 Replies

Load Dlls From Folder And Use It?

Jun 13, 2011

I have a simple question for you I think, but for me it bugs me a lot

So as the title says, I want to load a dll from a folder in my exe and use it's classes

How can I do that? like for example my app is named "run.exe" and I want at load time to load dlls from folder "resources" and use the classes from the dll's it "imported"

View 1 Replies

VS 2008 How To Publish With Dlls

Sep 15, 2009

I made app. But it doesn't work on other peoples computers. I don't want to publish it as installer App because it doesn't look good and people can't choose which folder it will install to. Is here way to copy My Exe file and all DLLs to one folder so it works for everyone?

[Code]...

View 11 Replies

VS 2010 Adding DLLs In GAC?

Mar 8, 2012

In my Installer project I just added my OracleDataAccess.dll to the "Global Assembly ache Folder" folder in the "File System on Target Machine" But when I install my project it doesn't install the OracleDataAccess.dll on the target machine'sC:WindowsAssembly.

View 3 Replies

VS 2010 Publishing With Dlls

Jul 11, 2010

I have this vb program that uses 2 dlls i made in c++, the dlls are attached to the project and are set as "copy always" and in vs debug mode they work fine, however when i try to publish the program and run it it can no longer find the dlls even tho they are right there next to the program itself the dlls are declared as following: Private Declare Function Trace Lib "Lowstuff.dll" (ByVal targ as IntPtr) As UInteger.so what im thinking is that maybe theres like a switch in project settings i didnt flick or maybe i need to specify the dll with full path or wut?

As it turns out it had nothing to do with vb afterall, it was the c++ dlls that had to be made as static. However now i have a new problem: Im geting a bunch of overflow exceptions from my program but only on other computers, in the dev machine it reports no errors or warnings whatsoever, i also went over function where the error was generated and all the functions it used and detected no fault so how am i supposed to track these down?

View 2 Replies

Where To Download SharePoint DLLs

Mar 1, 2011

I need to get hold of the Sharepoint DLL's. I understand that these are available from the Sharepoint server however the company I work for is quite large and the server is not anywhere I can get close to to copy the DLL's. Is there somewhere I can download these so I can start to develop my VB.NET application locally!

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved