473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

deploying applications that share dll's with asp.net & vb backend

I have a asp.net application that shares DLL's with some backend vb.net
programs. In my test environment everything works like a champ. When I need a
DLL I point in to the project, do the build and everything works great.

It seems though when I try to move all this to a prod server odd things
happened.

1. if both the online and backend share DLL "x" . "x" exists in the bin
directory where the online component lives and also in the bin dir that
contains the backend vb.net programs. Is this correct? If so when I make a
change to DLL x on my test machine and do I have to copy DLL x to all the
directories that contain DLL x? Is there a way around this ?


Nov 19 '05 #1
5 3475
Bill,
all your assertions are correct.

The work around is to deploy your assembly into the GAC (global assembly
cache):
http://msdn.microsoft.com/msdnmag/is...2/default.aspx
http://www.codeproject.com/dotnet/De...&select=937171

Those articles should be more than helpful.

Cheers,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bill" <Bi**@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a asp.net application that shares DLL's with some backend vb.net
programs. In my test environment everything works like a champ. When I need a DLL I point in to the project, do the build and everything works great.

It seems though when I try to move all this to a prod server odd things
happened.

1. if both the online and backend share DLL "x" . "x" exists in the bin
directory where the online component lives and also in the bin dir that
contains the backend vb.net programs. Is this correct? If so when I make a
change to DLL x on my test machine and do I have to copy DLL x to all the
directories that contain DLL x? Is there a way around this ?

Nov 19 '05 #2
HI Bill:

You could install the DLL once into the Global Assembly Cache, and
from the GAC the assembly can be shared across applications on the
entire computer (see
http://msdn.microsoft.com/library/de...mblyCache.asp).

I'd caution you that the GAC can often be more trouble than it is
worth. If you have a good/automated deployment strategy for your
applications you'll never notice that a dll has to go into two
different locations.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 10 Apr 2005 06:43:02 -0700, "Bill"
<Bi**@discussions.microsoft.com> wrote:
I have a asp.net application that shares DLL's with some backend vb.net
programs. In my test environment everything works like a champ. When I need a
DLL I point in to the project, do the build and everything works great.

It seems though when I try to move all this to a prod server odd things
happened.

1. if both the online and backend share DLL "x" . "x" exists in the bin
directory where the online component lives and also in the bin dir that
contains the backend vb.net programs. Is this correct? If so when I make a
change to DLL x on my test machine and do I have to copy DLL x to all the
directories that contain DLL x? Is there a way around this ?


Nov 19 '05 #3
OMG...... Was it my imagination that I read somewhere that asp.net lets
'programmers concentrate on programming?' What could have been easier then
making a change to a vbscript based .asp and then a simple copy to the
production machine? IMHO changing asp to run precompiled code as opposed to
script being interpreted time after time would have good enough for a
start....oiy ! This sounds like DLL hell v.2 You mentioned deployment tools,
can you recommend any and will they take care of this particular problem.
"Scott Allen" wrote:
HI Bill:

You could install the DLL once into the Global Assembly Cache, and
from the GAC the assembly can be shared across applications on the
entire computer (see
http://msdn.microsoft.com/library/de...mblyCache.asp).

I'd caution you that the GAC can often be more trouble than it is
worth. If you have a good/automated deployment strategy for your
applications you'll never notice that a dll has to go into two
different locations.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 10 Apr 2005 06:43:02 -0700, "Bill"
<Bi**@discussions.microsoft.com> wrote:
I have a asp.net application that shares DLL's with some backend vb.net
programs. In my test environment everything works like a champ. When I need a
DLL I point in to the project, do the build and everything works great.

It seems though when I try to move all this to a prod server odd things
happened.

1. if both the online and backend share DLL "x" . "x" exists in the bin
directory where the online component lives and also in the bin dir that
contains the backend vb.net programs. Is this correct? If so when I make a
change to DLL x on my test machine and do I have to copy DLL x to all the
directories that contain DLL x? Is there a way around this ?


Nov 19 '05 #4
So....I can install x.dll in the global cache and then never worry about it
again until it changes. Is it as simple as just reinstalling it? I noticed in
my reading a 'use count'. That sounds just like iis 5. A dll that needed to
be replaced you had to stop iis, reload the dll, and restart iis. Say it
ain't so.
"Karl Seguin" wrote:
Bill,
all your assertions are correct.

The work around is to deploy your assembly into the GAC (global assembly
cache):
http://msdn.microsoft.com/msdnmag/is...2/default.aspx
http://www.codeproject.com/dotnet/De...&select=937171

Those articles should be more than helpful.

Cheers,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bill" <Bi**@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a asp.net application that shares DLL's with some backend vb.net
programs. In my test environment everything works like a champ. When I

need a
DLL I point in to the project, do the build and everything works great.

It seems though when I try to move all this to a prod server odd things
happened.

1. if both the online and backend share DLL "x" . "x" exists in the bin
directory where the online component lives and also in the bin dir that
contains the backend vb.net programs. Is this correct? If so when I make a
change to DLL x on my test machine and do I have to copy DLL x to all the
directories that contain DLL x? Is there a way around this ?


Nov 19 '05 #5
They don't force you to use codebehind though, if you use inline code you
will have no dll's.. but if you want to use VS (2003, 2005 has support for
inline code) you will have to use code behind.
OMG...... Was it my imagination that I read somewhere that asp.net
lets 'programmers concentrate on programming?' What could have been
easier then making a change to a vbscript based .asp and then a simple
copy to the production machine? IMHO changing asp to run precompiled
code as opposed to script being interpreted time after time would have
good enough for a start....oiy ! This sounds like DLL hell v.2 You
mentioned deployment tools, can you recommend any and will they take
care of this particular problem.

"Scott Allen" wrote:
HI Bill:

You could install the DLL once into the Global Assembly Cache, and

from the GAC the assembly can be shared across applications on the

entire computer (see

http://msdn.microsoft.com/library/de...ary/en-us/cpgu
ide/html/cpconGlobalAssemblyCache.asp).

I'd caution you that the GAC can often be more trouble than it is
worth. If you have a good/automated deployment strategy for your
applications you'll never notice that a dll has to go into two
different locations.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 10 Apr 2005 06:43:02 -0700, "Bill"
<Bi**@discussions.microsoft.com> wrote:
I have a asp.net application that shares DLL's with some backend
vb.net programs. In my test environment everything works like a
champ. When I need a DLL I point in to the project, do the build and
everything works great.

It seems though when I try to move all this to a prod server odd
things happened.

1. if both the online and backend share DLL "x" . "x" exists in the
bin directory where the online component lives and also in the bin
dir that contains the backend vb.net programs. Is this correct? If
so when I make a change to DLL x on my test machine and do I have
to copy DLL x to all the directories that contain DLL x? Is there a
way around this ?


Nov 19 '05 #6

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

Similar topics

2
by: Jim | last post by:
Can someone please explain the difference between Static Qt Applications and Dynamic Qt Applications? The Trolltech documentation only says that for Dynamic Qt Applications you need either qt.dll...
1
by: Prem | last post by:
Hi All I have a portal application that we have built that contains links to different modules. There is no static binding to these dlls from the application so that we can deploy some modules...
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
5
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
1
by: Mark | last post by:
When you deploy .NET 2.0 web applications, you don't have to deploy pre-compiled .dll files anymore. You deploy ALL the files (.aspx, .aspx.cs, etc) and they are compiled the first time they are...
2
by: John Kotuby | last post by:
Hello all, Note: This is the full version of a Post that I inadvertently sent before it was complete. About a year ago I wrote a VB.NET 2003 solution that consists of a number of assemblies...
6
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
2
by: Keld R. Hansen | last post by:
I am coding a .NET 2.0 application that needs to be able to run from a network share (intranet), but the security settings does not allow me to do this by default. How can I - in the...
6
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.