×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

how to update a component?

how to update a component?

how to update a component?

(OP)
hi there,
         i am just starting with mts.so bear with me.i have created a component and packaged it and then deployed it in another machine.it is all working fine untill i try to update the dll in the server.if i recompile the dll with some more functions than the application that uses the component in the other machine also must be able to work with the new dll in the server.but it does not happen so.must i package the component again? plz help me.

my private mail is:mohan_kavi@yahoo.com

RE: how to update a component?

Yes...I believe so.  You can compile over the DLL as binary but if you add new functions they don't show up in MTS methods until you re-setup the package.  No refresh seem to work.

TonyZoc

RE: how to update a component?

(OP)
hi folks,
       what i was saying was that,if i recompile the dll then nothing works.mts does not update.applications using the file does not work(these applications where working previosly).if i recompile even without any changes the applications stop to work.any tips?

mohan.

RE: how to update a component?

When you rebuild your DLL, what is your binary compatability set at?  You should have it to maintain compataibilty with previous versions so that you don't "break" things when you come out with a newer version.

Chip H.

RE: how to update a component?


Chip is right, you must maintain compatability with the previous version of the DLL.  The easiest way to do so is:
- initially compile your DLL
- make a copy of the DLL (name it anything you want)
- in the properties window of the project, click on the Component tab.  In the Version Compatability frame, select Binary Compatability and enter the name of the copy that you just created.
-Reinstall the DLL on the server and resinstall your front-end app on the users' workstations.

From here, anytime you recompile the DLL, you can simply copy it over to the server and you don't need to do anything else -- you don't even need to reconstruct the package.

As you're compiling the DLL, if you make changes that break the compatability, VB will present you with a window to let you know that.  In such case, you will have to start from scratch.

I hope this helps (more importantly, I hope I'm right! :-)

Good Luck!

RE: how to update a component?

(OP)
hi there,
    i did what chip and vb400 said.it is working now.but i still have the problem like i have to remove the component and add it again to make it remember the new methods.is there any other way to make it recognaise the methods in the package.but this does not stop me from using the front end apps.is it like that or is there any other way to do it.

thanx

RE: how to update a component?

(OP)
hi there,
    i did what chip and vb400 said.it is working now.but i still have the problem like i have to remove the component and add it again to make it remember the new methods.is there any other way to make it recognaise the methods in the package.but this does not stop me from using the front end apps.is it like that or is there any other way to do it.

thanx

RE: how to update a component?

Instead of Exporting the MTS package you can just create the Object by specifing the Server name. In VB

CreateObject("Server.Interface", "SreverName" or IP-Address of server)

If you use latebinding none of the methods or properties are shown so it is not nessecery to make a reference to the object! I assume that you have made the component yourself and therefore know what interface it exposes!

RE: how to update a component?

I've had the same problem (the component sometimes stoped working when I made an update)

sometimes I have to shut down the component and other times I had to create a hole new package...

RE: how to update a component?

When you make an update to a component installed in teh MTS you have to delete the Component, shut down the Package and reinstall the component to the MTS!

I dont think it should be neccesary to reinstall the package to the clients unless you make radical changes, like interface changes and stuff, but that are you not supposed to do. Instead you make a InterfaceEx or Interface2 that support the new requirement!

Nikolaj





Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close