473,657 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying with DLLs

Using Visual Studio 2005, I have created 4 small DLLs that our company
projects can use to access common tools included in each of the separate DLL
files.

Our Visual Studio 2005 applications call the DLLs and run them without any
problem.

Now we are trying to deploy the first of these applications, and we are now
stumped. The Visual Studio 2005 Deployment Project includes all of the DLL
files and successfully creates the setup.exe file for them. The setup.exe
file will even extract all of the files (including the DLLs) on the target
machines.

Whenever we attempt to run the application, they crash as soon as we attempt
any feature which needs to access these DLLs.

One person has suggested that I need to create an app.config file for the
Windows Form Applications, but there was little about how to do this.

I researched further into editing the runtime configuration, and found that
it uses assembly binding to a particular version of the .Net Framework and
requires a Public Key token for each of these files. I have not found where I
tell this XML file what my DLL file names actually are, though.

What is involved in getting a public key token for each DLL?

If I update a DLL, do I now have to rebuild the application to accept the
updated DLL version?

Since these are Company Internal applications, all I want to do is copy a
new EXE or DLL out onto our Server whenever we have a change, and have the
users systems appear magically updated.

Is this not possible?

What am I doing wrong?

I have not done too many installs, and I get stumped whenever I step outside
of the rhelm of the Deployment Wizard.

Thanks for your help,
Joe

Jul 14 '08 #1
6 2419
On Jul 15, 2:12*am, jp2msft <jp2m...@discus sions.microsoft .comwrote:
Using Visual Studio 2005, I have created 4 small DLLs that our company
projects can use to access common tools included in each of the separate DLL
files.

Our Visual Studio 2005 applications call the DLLs and run them without any
problem.

Now we are trying to deploy the first of these applications, and we are now
stumped. The Visual Studio 2005 Deployment Project includes all of the DLL
files and successfully creates the setup.exe file for them. The setup.exe
file will even extract all of the files (including the DLLs) on the target
machines.

Whenever we attempt to run the application, they crash as soon as we attempt
any feature which needs to access these DLLs.

One person has suggested that I need to create an app.config file for the
Windows Form Applications, but there was little about how to do this.

I researched further into editing the runtime configuration, and found that
it uses assembly binding to a particular version of the .Net Framework and
requires a Public Key token for each of these files. I have not found where I
tell this XML file what my DLL file names actually are, though.

What is involved in getting a public key token for each DLL?

If I update a DLL, do I now have to rebuild the application to accept the
updated DLL version?

Since these are Company Internal applications, all I want to do is copy a
new EXE or DLL out onto our Server whenever we have a change, and have the
users systems appear magically updated.

Is this not possible?

What am I doing wrong?

I have not done too many installs, and I get stumped whenever I step outside
of the rhelm of the Deployment Wizard.

Thanks for your help,
Joe
For me it seems like problem with runtime on the target machine. Check
if .net runtime is installed in the target machine and also check if
any dependent dlls are missing. For this you can use tools like
dependency walker. I strongly feel its problem with target machine
environment.

-Cnu
Jul 15 '08 #2
I know the .Net Framework 2.0 is installed because the current version that
is running out on our servers was also built using VS2005 by me a few months
ago.

Our new version is going to use DLLs. Though I include them in the setup
deployment project and they do copy over to the server, the program simply
crashes with system.security .security object and wants to send the report to
Microsoft.

I can't seem to find a way to get any additional information from my app
before it crashes, though.

Someone has suggested that I specify in the app.config for the project each
DLL that I am going to include, but he wasn't able to tell me how to do it.

It is important that our applications all use the same classes, and keeping
those classes in DLLs is the easiest way of doing that. Deploying the apps
that use these DLLs onto our network is what seems to be the problem.

"Duggi" wrote:
For me it seems like problem with runtime on the target machine. Check
if .net runtime is installed in the target machine and also check if
any dependent dlls are missing. For this you can use tools like
dependency walker. I strongly feel its problem with target machine
environment.
Jul 15 '08 #3
On Jul 15, 6:44*pm, jp2msft <jp2m...@discus sions.microsoft .comwrote:
I know the .Net Framework 2.0 is installed because the current version that
is running out on our servers was also built using VS2005 by me a few months
ago.

Our new version is going to use DLLs. Though I include them in the setup
deployment project and they do copy over to the server, the program simply
crashes with system.security .security object and wants to send the reportto
Microsoft.

I can't seem to find a way to get any additional information from my app
before it crashes, though.

Someone has suggested that I specify in the app.config for the project each
DLL that I am going to include, but he wasn't able to tell me how to do it.

It is important that our applications all use the same classes, and keeping
those classes in DLLs is the easiest way of doing that. Deploying the apps
that use these DLLs onto our network is what seems to be the problem.

"Duggi" wrote:
For me it seems like problem with runtime on the target machine. Check
if .net runtime is installed in the target machine and also check if
any dependent dlls are missing. For this you can use tools like
dependency walker. I strongly feel its problem with target machine
environment.- Hide quoted text -

- Show quoted text -
Hi

Lets narrow down the problem instead of assumptions.

If possible try the following

Place log statements in your new dlls. If you code does not have log
statements, you can also try putting message to the system event logs.
This help to narrow down where the issue is occuring. Once you find
out the place in code where the issue is occuring it would be easy to
troubleshoot / rectify.

Also if possible, catch exceptions at application level and log the
exception dump to a log file.

I am sure with these info you can figure out the root cause of the
defect.

-Cnu
Jul 16 '08 #4
On Jul 14, 2:12*pm, jp2msft <jp2m...@discus sions.microsoft .comwrote:
Using Visual Studio 2005, I have created 4 small DLLs that our company
projects can use to access common tools included in each of the separate DLL
files.
I have not done too many installs, and I get stumped whenever I step outside
of the rhelm of the Deployment Wizard.

Thanks for your help,
Joe
Well Joe, this sounds like heresy, but since the .DLLs are "small",
why not just combine them into the .exe executable code and distribute
the whole thing in one package? The .exe file will grow, but with
modern DVDs, lots of RAM, and fast internet access, it won't be a big
problem for most users. The others can be told to upgrade their
hardware and to buy Vista. Problem solved.

RL
Jul 16 '08 #5
jp2msft wrote:
Using Visual Studio 2005, I have created 4 small DLLs that our company
projects can use to access common tools included in each of the separate DLL
files.

Our Visual Studio 2005 applications call the DLLs and run them without any
problem.

Now we are trying to deploy the first of these applications, and we are now
stumped. The Visual Studio 2005 Deployment Project includes all of the DLL
files and successfully creates the setup.exe file for them. The setup.exe
file will even extract all of the files (including the DLLs) on the target
machines.

Whenever we attempt to run the application, they crash as soon as we attempt
any feature which needs to access these DLLs.

One person has suggested that I need to create an app.config file for the
Windows Form Applications, but there was little about how to do this.

I researched further into editing the runtime configuration, and found that
it uses assembly binding to a particular version of the .Net Framework and
requires a Public Key token for each of these files. I have not found where I
tell this XML file what my DLL file names actually are, though.

What is involved in getting a public key token for each DLL?

If I update a DLL, do I now have to rebuild the application to accept the
updated DLL version?

Since these are Company Internal applications, all I want to do is copy a
new EXE or DLL out onto our Server whenever we have a change, and have the
users systems appear magically updated.

Is this not possible?

What am I doing wrong?

I have not done too many installs, and I get stumped whenever I step outside
of the rhelm of the Deployment Wizard.

Thanks for your help,
Joe
Hi there, it sounds as if you need to adjust the .NET Security settings
on the client look at Caspol.exe
Jul 16 '08 #6
Hello Mr. Lopez,

The one main reason for DLLs is because we have multiple apps that make the
same calls and use the same classes. I have tried placing these "common
files" in a separate folder, but whenever I try including them in one of the
solutions, Visual Studio crates a copy of it for the local folder.

Generally, our calls and classes need to be modified to display particular
data in a particular way (as commanded by the supervisors). If these calls
and classes are in multiple files, it becomes difficult to locate all the
places the code needs to be modified, then becomes questionable as to whether
all of the files received all of the changes.

Creating DLL classes has eliminated this problem.

"raylopez99 " wrote:
Well Joe, this sounds like heresy, but since the .DLLs are "small",
why not just combine them into the .exe executable code and distribute
the whole thing in one package? The .exe file will grow, but with
modern DVDs, lots of RAM, and fast internet access, it won't be a big
problem for most users. The others can be told to upgrade their
hardware and to buy Vista. Problem solved.

RL
Jul 16 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1255
by: Corvettious | last post by:
I have been deploying my ../Bin/*.dlls with no problem until finally I tried to deploy the latest and the FTP site will not longer allow me to upload a certain DLL.... So I thought, fine I will do without it for now... Then a few days later it wouldn't accept another DLL.... Weird!!!! I am on a hosted (shared) environment with the latest .net installed and running (it has been working great!! :) before)
4
1335
by: Michael | last post by:
Hi! I've written some simple games and now I want to create installers for them. I've added the thrid party dlls that I use (fmod, libsdl..) but my games also need certain Visual Studio .NET dlls. 1. How do I supply the Visual Studio .NET dlls to the end user? (Ship the ..NET-framework?) 2. Is there some tool I can use to find out which dlls that are needed by a specific exe?
2
3551
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This being the case I worked with what was available: I used vb.net and crystal 8.5. The crystal reports are being viewed in the crystal report viewer which is still included in vb.net. I went ahead with developing this project because I found that...
0
1112
by: cj_trap | last post by:
Hi I have a small app which needs to be able to send out email (via outlook) under certain conditions. I've got it working perfectly on my PC, but I'm not sure how to deploy it. The (apparently valid) assumption is that the user will have outlook installed and will be logged in as a valid outlook user. My project has 3 outlook-related dlls referenced - Interop.Microsoft.Office.Core.dll, Interop.Outlook.dll, and stdole.dll.
0
1410
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG. Initially, the machine environment variables were set to enable code development; however, I am facing problem deploying the application. To work with these wrapped libraries, the application seems to access a specific dll, for instance, let's say the C...
5
1496
by: daokfella | last post by:
I'm still stuck on the .dll and bin folder mentality in 1.1. When deploying a 2.0 web application, there is no web .dll to deploy? So is this how we deploy in 2.0? 1. Copy the app_code folder 2. Copy the bin directory containing any pre-compiled dlls 3. Move BOTH aspx AND aspx.vb files into the applicable directories (is this correct?) If so, we're just duplicating the file system from the development
12
6390
by: ARC | last post by:
I'm currently looking at the access developer extensions for creating an MSI installer package for a 2007 runtime app. Couple of observations and questions. 1) Doesn't look like we have the ability to set a packaged file to always overwrite, or never overwrite, unless I'm missing something. This could be a sticking point, as I would always want the program to overwrite on re-installing, but NEVER the back end database. I have a few more...
10
1913
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I usually deploy my ASP .NET application to the server by publishing, using Visual Studio 2005 publish feature. This creates the Bin folder on the server, with the compiled DLLs. I've been asked to publish by copying the files manually instead. I stopped IIS for the application, deleted the application files and subfolders from the server, copied the files and folders from my local PC's project,
0
1092
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've created some DLLs for our projects, and I would like each project to access the same DLLs. In my Setup and Deployment project, after I add the primary output, I can easily add the dependant DLL files. As long as I keep the DLL files in the same directory as the primary output, everything is roses (good). If I try to create common folder or copy them to a Program Files Common
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.