|
-
October 9th, 2001, 02:27 PM
#1
Visual Basic as a service problem
I have a Visual Basic app that I made a service. This VB app calls a com object. I used instsvc.exe and srvany.exe to install the service and the service starts and works fine, except when it needs to call the com object. When it calls this com object I get the error "Method '~' of object '~' Failed. When I run this application as a stand-alone, It works fine and if this method fails It gives me clearer error message like "Method methodName or object Iinterface Failed". Maybe the service needs permissions for this COM object?
Thanks in Advance
Matt K
-
October 10th, 2001, 06:34 AM
#2
Re: Visual Basic as a service problem
"Method '~' of object '~' Failed"
You usually receive this message when trying to call unregistered activex.
To call from remote, you should generate a *.VBR file (setting in project properties "Remote component") and add this to a client setup. If you're using Com, you need DCOM98 (in win 98 or DCOM95 on win 95) installed and configured on clients machines. If server is a winnt or 2000 OS, you will need to give permissions to clients users on your components. About this last thing, I was able to do it only giving users an Admin priviliege on the server machine (maybe this last was a bug at that time...)
Hope this may help.
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
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
|