473,466 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Deployment problems

This may not be the best group to post to, so if there are any
suggestions as to a different group, please let me know.

Here is what we are doing, we have a couple of dlls that are shared
(i.e. used by a number of other dlls and applications). These dlls have
their own setup process, built with VS2003 setup and deployment package.
They are strongly named and have keys. We specify to deploy to the GAC only
on the target production server.

The problem comes when app1.exe want to use shared1.dll. On the
development machine, the shared1.dll is deployed to the GAC and to the
Microsoft.NET\Framework\v1.1.4322 folder so that it can be referenced from
the add reference dialog in the VS IDE. When the setup and deployment
package is built for the app1.exe, it includes the shared1.dll. I do not
want to do this, I think. The problem this poses is that any application
that uses the shared dll will have to deploy its own copy of the
shared1.dll. This seems like application isolation to the extreme. On the
other hand, I do not want to deploy the shared dlls to single folder,
because this is no different than the c:\winnt\system32 dll folder, also
causing problems.

What I thought I could do is deploy the shared1.dll on its own to the
target machine, then let .Net pick this up from the GAC.

So, 2 issues.
1 is how to remove the shared dll dependency from the app1.exe deployment
package, possibly working like the launch condition for the .Net framework.
2 is how to force each application to use the most recent/appropriate shared
dll on the target server, as specified from the GAC deployment of the shared
dll.

Thanks,
J
Nov 16 '05 #1
2 1666
Jeff,

You can exclude the DLL from the setup project... in the dependencies
section, right click and say "Exclude".

Do this only if you're SURE the dependency will exist on the target server.
If this is an assumption, then the exe will automatically reference the GAC
loaded assembly.

Thanks.

Dan.

"Scanner2001" <je************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
This may not be the best group to post to, so if there are any
suggestions as to a different group, please let me know.

Here is what we are doing, we have a couple of dlls that are shared
(i.e. used by a number of other dlls and applications). These dlls have
their own setup process, built with VS2003 setup and deployment package.
They are strongly named and have keys. We specify to deploy to the GAC
only
on the target production server.

The problem comes when app1.exe want to use shared1.dll. On the
development machine, the shared1.dll is deployed to the GAC and to the
Microsoft.NET\Framework\v1.1.4322 folder so that it can be referenced from
the add reference dialog in the VS IDE. When the setup and deployment
package is built for the app1.exe, it includes the shared1.dll. I do not
want to do this, I think. The problem this poses is that any application
that uses the shared dll will have to deploy its own copy of the
shared1.dll. This seems like application isolation to the extreme. On the
other hand, I do not want to deploy the shared dlls to single folder,
because this is no different than the c:\winnt\system32 dll folder, also
causing problems.

What I thought I could do is deploy the shared1.dll on its own to the
target machine, then let .Net pick this up from the GAC.

So, 2 issues.
1 is how to remove the shared dll dependency from the app1.exe deployment
package, possibly working like the launch condition for the .Net
framework.
2 is how to force each application to use the most recent/appropriate
shared
dll on the target server, as specified from the GAC deployment of the
shared
dll.

Thanks,
J

Nov 16 '05 #2
Deploy the DLL with the application, whether it's already installed on the
server or not. Tell the installer to put it in the GAC, and if the *same
version* is already in the GAC, it'll only keep one copy. (If you have
auto-increment version numbers on and you compiled it at a different time,
then that will constitute it being a different version.)
However if you reference compiled binaries and deploy app1, that includes
dll1, and then you deploy app2 that includes dll1, if dll1 hasn't been
changed between installations there will still be the copy of dll1 from when
app1 installed in the GAC, and app2 will use it from the GAC happily.
"Scanner2001" wrote:
This may not be the best group to post to, so if there are any
suggestions as to a different group, please let me know.

Here is what we are doing, we have a couple of dlls that are shared
(i.e. used by a number of other dlls and applications). These dlls have
their own setup process, built with VS2003 setup and deployment package.
They are strongly named and have keys. We specify to deploy to the GAC only
on the target production server.

The problem comes when app1.exe want to use shared1.dll. On the
development machine, the shared1.dll is deployed to the GAC and to the
Microsoft.NET\Framework\v1.1.4322 folder so that it can be referenced from
the add reference dialog in the VS IDE. When the setup and deployment
package is built for the app1.exe, it includes the shared1.dll. I do not
want to do this, I think. The problem this poses is that any application
that uses the shared dll will have to deploy its own copy of the
shared1.dll. This seems like application isolation to the extreme. On the
other hand, I do not want to deploy the shared dlls to single folder,
because this is no different than the c:\winnt\system32 dll folder, also
causing problems.

What I thought I could do is deploy the shared1.dll on its own to the
target machine, then let .Net pick this up from the GAC.

So, 2 issues.
1 is how to remove the shared dll dependency from the app1.exe deployment
package, possibly working like the launch condition for the .Net framework.
2 is how to force each application to use the most recent/appropriate shared
dll on the target server, as specified from the GAC deployment of the shared
dll.

Thanks,
J

Nov 16 '05 #3

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

Similar topics

1
by: DB developer | last post by:
Hello friends I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve...
2
by: Felix | last post by:
Out of no where I'm starting to get these problems and my Deployment projects won't build anymore. Does anyone have any idea what's causing this? I've tried copying these files from another...
4
by: wobbles | last post by:
Hi Everyone, I'm really struggling to get no-touch deployment to work well (if at all, in some cases). Can anyone recommend a good book on this topic? There seem to be a lot of blogs about...
3
by: Steve Brecher | last post by:
VS.NET help on deployment indicates that, while using a deployment project requires administrative access to IIS, " we recommend deploying your project in most cases, because it allows you to take...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: =?Utf-8?B?dmNs?= | last post by:
Short version: IE7 and .NET Framework 2.0 breaks no touch deployment for .NET 1.1 applications. IE6 and .NET Framework 1.1 + 2.0 works fine. IE7 with .NET Framework 1.1 only is fine, once we add...
10
by: =?Utf-8?B?UHVuaXQgS2F1cg==?= | last post by:
Hi, I am developing a windows application in VS.NET 2005. The application is database driven and I need to deploy it on a client's pc. How should I go about developing such an application. I...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.