|
-
February 16th, 2000, 08:02 AM
#1
Deployment of MTS enable component
Hi,
Anybody can give suggession how to deploy the MTS enable component using VB-6.0 .
I've following problem :
1. I've created one component for the Weekly Report Application. In the design time I instantiate the MtXAs object but commented. All the methods returns variant(array) in stead of recordset . If any error occurs(between the method), the error messages I'm sending with the variant array.
2. In the client-side I'm checking whther the array is two-dimesion or not .If the array dimension is not 2 then there will be error. I'll inform to the client.
3. So there is no problem in the debugging time and all the functionality works fine.
4. For the deployemnt I made the component as DLL. Before making DLL I just the remove the comments. Then I create a package in the Management Console and assign the properties required for each component.
5. Then I made the client application(standard exe/vbp) as exe.
6. Then I made the Deployemnt package through the Microsoft Deployment Package Wizard and mention the DLL as dependent component and installed the package in the clients machine.
7. Whenever I start to run the application it is generating the Run-time error -"91" with the message object variable with block variable has not set.
If anybody can give suggession , I'll realy greatful to him.
Regards.
Ramani Ranjan Nayak
-
February 18th, 2000, 04:47 PM
#2
Re: Deployment of MTS enable component
When you need to deploy an MTS component, you actually create the package inside of MTS. I believe you right click on the component in MTS and choose the Create setup package or something like that. Where ever you tell MTS to save the package, there will be two folders created - one called "Server" and a folder called "Clients". In the Client folder there is an exe that the client machines need to run. That package sets up DCOM correctly to point to the MTS box housing the DLL you just wrote. The PDW package that you created doesn't do that, so the client program is looking locally for the DLL and not finding it - hence the Object variable not set error.
Good luck,
john
John Pirkey
MCSD
www.ShallowWaterSystems.com
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
April 19th, 2000, 08:57 PM
#3
Re: Deployment of MTS enable component
Hi,
The iven error indicates that the server side object is getting created .Otherwise it generate the error like Activex Component can not create Object.You can make sure by looking into MTS explorer.This error occurs when we try to access the properties/mehods of an closed object(like recordset,connection).One more place is calling the SetComplete/setAbort without the MTS Context(If you call the getObjectContext in class initialization then its not correct it always return null).
Another way to find it out by running Client and server into different Instance and start debuging using the UI.
Thanks and good luck
Arvind
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|