473,395 Members | 1,473 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,395 software developers and data experts.

Using Multiple Versions of the dlls for the app

ack
Hii all,

I have a this internal use portal i am working on deployed on a server.
My app uses some dlls that are instantiated from the asp pages using
server.createobject
Now I want to deploy the new versions of the web app on the same machine for
testing thus making production and staging machines same, running the actual
site as well as test site
I have modified the dlls. So I want the old site to use old dll and new site
to use newer version

IIS 5,, W2K
How can I?

Thank U in advance

ak
Jul 19 '05 #1
5 4083
You could give them different class names. You can't register the same name
twice, afaik, so they'd have to have different names. The other option is
to put the new dll on your test server. Test server? Come on, we all have
piles of test servers all over the place. ;]

Ray at home

"ack" <ak******@hotmail.com> wrote in message
news:uo****************@TK2MSFTNGP11.phx.gbl...
Hii all,

I have a this internal use portal i am working on deployed on a server.
My app uses some dlls that are instantiated from the asp pages using
server.createobject
Now I want to deploy the new versions of the web app on the same machine for testing thus making production and staging machines same, running the actual site as well as test site
I have modified the dlls. So I want the old site to use old dll and new site to use newer version

IIS 5,, W2K
How can I?

Thank U in advance

ak

Jul 19 '05 #2
ack
Is there no way by which i can specify which version of the dll to load?

As far as i believe, when a dll registered it creates the entries in the
registry storing all the information like GUIDs, Threading Models etc,
including path.

I am not sure if i understand the COM model exactly, but still these are my
thoughts

Shld thr be any mechanism by which one wld be able to load the appropriate
info.

"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
You could give them different class names. You can't register the same name twice, afaik, so they'd have to have different names. The other option is
to put the new dll on your test server. Test server? Come on, we all have piles of test servers all over the place. ;]

Ray at home

"ack" <ak******@hotmail.com> wrote in message
news:uo****************@TK2MSFTNGP11.phx.gbl...
Hii all,

I have a this internal use portal i am working on deployed on a server.
My app uses some dlls that are instantiated from the asp pages using
server.createobject
Now I want to deploy the new versions of the web app on the same machine

for
testing thus making production and staging machines same, running the

actual
site as well as test site
I have modified the dlls. So I want the old site to use old dll and new

site
to use newer version

IIS 5,, W2K
How can I?

Thank U in advance

ak


Jul 19 '05 #3
I don't believe so. There isn't any third argument to accept version info
or anything, so it'd have to be in the class string. But I don't know about
all this for sure. (In other words, if someone else is following thread and
knows for sure, feel free to chime in.)

Creates and returns a reference to an Automation object.
CreateObject(servername.typename [, location])Arguments
servername
Required. The name of the application providing the object.
typename
Required. The type or class of the object to create.
location
Optional. The name of the network server where the object is to be
created.

Ray at work

"ack" <ak******@hotmail.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...
Is there no way by which i can specify which version of the dll to load?

As far as i believe, when a dll registered it creates the entries in the
registry storing all the information like GUIDs, Threading Models etc,
including path.

I am not sure if i understand the COM model exactly, but still these are my thoughts

Shld thr be any mechanism by which one wld be able to load the appropriate
info.

Jul 19 '05 #4
You cannot do this with VB components but you should be able to do it with
C++ components. You'll have to set up different versions in the registry.
For an example of how this works have a look at the MSXML2.XMLHTTP object in
the registry. You will probably see at least 2 versions.

CreateObject("msxml2.xmlhttp") will give you the "standard" version.
probably 3.0
CreateObject("msxml2.xmlhttp.2.6") will give you the 2.6 version
CreateObject("msxml2.xmlhttp.3.0") will give you the 3.0 version
CreateObject("msxml2.xmlhttp.4.0") will give you the 4.0 version

Put the desired ProgIDs in an include file so you can change them easily.

If the objects are in VB components you will need to change the project and
DLL name and recompile the dlls. Then put the new ProgID in an include file
as above. For example:

CreateObject("somedll1.someobject") version 1 application
CreateObject("somedll2.someobject") version 2 application

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"ack" <ak******@hotmail.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...
Is there no way by which i can specify which version of the dll to load?

As far as i believe, when a dll registered it creates the entries in the
registry storing all the information like GUIDs, Threading Models etc,
including path.

I am not sure if i understand the COM model exactly, but still these are my thoughts

Shld thr be any mechanism by which one wld be able to load the appropriate
info.

"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
You could give them different class names. You can't register the same

name
twice, afaik, so they'd have to have different names. The other option is to put the new dll on your test server. Test server? Come on, we all

have
piles of test servers all over the place. ;]

Ray at home

"ack" <ak******@hotmail.com> wrote in message
news:uo****************@TK2MSFTNGP11.phx.gbl...
Hii all,

I have a this internal use portal i am working on deployed on a server. My app uses some dlls that are instantiated from the asp pages using
server.createobject
Now I want to deploy the new versions of the web app on the same
machine for
testing thus making production and staging machines same, running the

actual
site as well as test site
I have modified the dlls. So I want the old site to use old dll and
new site
to use newer version

IIS 5,, W2K
How can I?

Thank U in advance

ak



Jul 19 '05 #5
ack

I have never worked with VC++ and dunno kno exactly wut to be done, but
certainly will try my hands about this some time.

I have done the same thing as Mark had said, but I wanted to avoid that.
Neways, this seems the only way out.
I have compiled the project with another name and have created a applicatin
level variable application("DLLNAME").
By using it in Server.CreateObject( Application("DLLNAME" & ".ClassName"), I
have achieved it. So while deploying other versions I will need to change
the application level variable in global.asa
:( Ofcourse I am not happy with this and will try my hands on VC, sometime

Sorry for being late, wasnot working this weekend.

neways, thank you Mark n Ray

Ak

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
You cannot do this with VB components but you should be able to do it with
C++ components. You'll have to set up different versions in the registry.
For an example of how this works have a look at the MSXML2.XMLHTTP object in the registry. You will probably see at least 2 versions.

CreateObject("msxml2.xmlhttp") will give you the "standard" version.
probably 3.0
CreateObject("msxml2.xmlhttp.2.6") will give you the 2.6 version
CreateObject("msxml2.xmlhttp.3.0") will give you the 3.0 version
CreateObject("msxml2.xmlhttp.4.0") will give you the 4.0 version

Put the desired ProgIDs in an include file so you can change them easily.

If the objects are in VB components you will need to change the project and DLL name and recompile the dlls. Then put the new ProgID in an include file as above. For example:

CreateObject("somedll1.someobject") version 1 application
CreateObject("somedll2.someobject") version 2 application

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"ack" <ak******@hotmail.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...
Is there no way by which i can specify which version of the dll to load?

As far as i believe, when a dll registered it creates the entries in the
registry storing all the information like GUIDs, Threading Models etc,
including path.

I am not sure if i understand the COM model exactly, but still these are my
thoughts

Shld thr be any mechanism by which one wld be able to load the appropriate info.

"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
You could give them different class names. You can't register the same
name
twice, afaik, so they'd have to have different names. The other

option is to put the new dll on your test server. Test server? Come on, we all

have
piles of test servers all over the place. ;]

Ray at home

"ack" <ak******@hotmail.com> wrote in message
news:uo****************@TK2MSFTNGP11.phx.gbl...
> Hii all,
>
> I have a this internal use portal i am working on deployed on a server. > My app uses some dlls that are instantiated from the asp pages using
> server.createobject
> Now I want to deploy the new versions of the web app on the same machine for
> testing thus making production and staging machines same, running
the actual
> site as well as test site
> I have modified the dlls. So I want the old site to use old dll and

new site
> to use newer version
>
> IIS 5,, W2K
>
>
> How can I?
>
> Thank U in advance
>
> ak
>
>



Jul 19 '05 #6

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

Similar topics

0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
1
by: Anna | last post by:
Hi, I'm using VS.NET 2003 on Win2000 (SP3). I am trying to import a dll developed in VC++6.0 into my VC.net project. I keep getting linker errors complaining about GetThisClass and...
2
by: | last post by:
I try to build dll in VC .NET, In that project I use dlls that were built in VC6, and I get a lot of errors. (for example <iostream.h> instead of <iostream> etc.) I am not aloud to change anything...
0
by: Reini | last post by:
We are developing an Asp.Net 2.0 application (Web Administration) for the IIS 5.0 to 6.0 and the W2K to W2K3 operating system. The application consists of several layers. One layer is a .Net 2.0...
4
by: HarryH | last post by:
I am finding that the linker for a C++ application in VS 2005 is generating a manifest with old version #s for DLLs such as mfc80.dll. How do I make sure that the linker generates a manifest that...
0
by: Dave | last post by:
Hello all, Firstly I hate Citrix, especially their programming interface MFCOM. There are multiple versions, that seem to need to match an SDK Version <----Citrix Server Version This is bad...
7
by: Olegus | last post by:
Hello, in order to perform backup/restore MSSQL database using SMO, one needs to reference several namespaces in a backup class : using Microsoft.SqlServer.Management.Common; using...
2
by: Patrick Stinson | last post by:
Is it a correct to assume that you can use multiple instances of python altogether if each is loaded from a separate dll? For instance, if I write a couple of dll/so libs, and each has python...
13
by: Bob Altman | last post by:
Hi all, I have authored several native DLLs (call them A, B, and C). These libraries have references between each other (A calls B which calls C). These libraries are built and made available...
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: 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: 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
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
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...

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.