Is there a way to do this without having to register it
computer-by-computer???
tried everything already... but nothign worked out as should..
tks.. 7 1343
Hi,
It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects) http://www.vbdotnetheaven.com/Upload...tRemoting.aspx
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
What I need is not that hard...
I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..
But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..
I'll read this article and the give you a feedback..
tks...
"Dick Grier" <dick_grierNOSP AM@.msn.comescr eveu na mensagem
news:e9******** ******@TK2MSFTN GP02.phx.gbl...
Hi,
It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects) http://www.vbdotnetheaven.com/Upload...tRemoting.aspx
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
So this is seen as a COM component and AFAIK a COM component necessarily
needs to be registered. Now you could perhaps use the regasm command line
tool and see if you could launch this from a login script : http://msdn.microsoft.com/en-us/libr...w6(VS.80).aspx
I've seen a "COM registration free" feature but this is the other way round
(ie .NET is able to use a COM component by using information from an xml
file rather than by looking this in the registry).
Ah ! from a quick look it looks like a bit broader than that. Try perhaps
around : http://msdn.microsoft.com/en-us/library/fh1h056h.aspx
and in particular http://msdn.microsoft.com/en-us/library/eew13bza.aspx
A bit hard but at first sight it looks like you should be able to create a
manifest file for your COM application so that it knows about managed
components and a manifest in your managed component that match so that the
COM component can see the .NET component without any registry handling...
Good luck.
--
Patrice
"Christiano Donke" <cd****@digiexp ress.com.bra écrit dans le message de
groupe de discussion : #n************* *@TK2MSFTNGP05. phx.gbl...
What I need is not that hard...
I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..
But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..
I'll read this article and the give you a feedback..
tks...
"Dick Grier" <dick_grierNOSP AM@.msn.comescr eveu na mensagem
news:e9******** ******@TK2MSFTN GP02.phx.gbl...
>Hi,
It is hard to tell exactly what you want to do. However, perhaps it is Remoting or a Webservice, both of which provide "objects" over a network connection. You might start here (though there are many more articles on these subjects) http://www.vbdotnetheaven.com/Upload...tRemoting.aspx
Dick
-- Richard Grier, MVP Hard & Software Author of Visual Basic Programmer's Guide to Serial Communications, Fourth Edition, ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March 2006. See www.hardandsoftware.net for details and contact information.
Well in that case
Asuming you used COM ( shouldn`t know how you could call a VS dll
otherwise from a VB6 app ) the VS.Net assembly follows the standard COM
rules
wich means that you must register the assembly in the local registry ,
however your VB6 app could do that on startup ( the needed reg file can be
generated by regasm.exe , see the options of this tool )
An VS.Net COM assembly must be located in the GAC , The system32 or the
calling application directory so if the VB6 executable is also located on
the network share in the same folder as the VS.Net COM assembly this should
work .
Another option would be to start a .Net executable with parameters ( through
shell ) and that this would call the dll through .Net in that way nothing
needs to be registred on the systems.
Ofcourse above would only work if it is allowed to start .Net assembly`s on
a networked drive , wich is standard not the case
use this tool to adjust the assembly privilige , note that the system
administrator can do this company wide with a group policy http://msdn.microsoft.com/en-us/libr...hc(VS.80).aspx
hth
Michel Posseth [MCP]
VB6 , VB.Net Coder
"Christiano Donke" <cd****@digiexp ress.com.brschr eef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
What I need is not that hard...
I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..
But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..
I'll read this article and the give you a feedback..
tks...
"Dick Grier" <dick_grierNOSP AM@.msn.comescr eveu na mensagem
news:e9******** ******@TK2MSFTN GP02.phx.gbl...
>Hi,
It is hard to tell exactly what you want to do. However, perhaps it is Remoting or a Webservice, both of which provide "objects" over a network connection. You might start here (though there are many more articles on these subjects) http://www.vbdotnetheaven.com/Upload...tRemoting.aspx
Dick
-- Richard Grier, MVP Hard & Software Author of Visual Basic Programmer's Guide to Serial Communications, Fourth Edition, ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March 2006. See www.hardandsoftware.net for details and contact information.
Patrice
AFAIK
This is not possible as VB6 must be aware of the VS.Net COM component
it is in this case VB6 that must initialize the COM wrapper of the VS.Net
managed object VB6 just does a lookup of the clsid in the registry and
alternatively looks up the install location there , if it is not availlable
it wil look in the application directory , the GAC and the system32
directory for the component if it does not find a match it blows up with a
runtime error 91 "Object variable or with block not set"
It would realy suprise me if it would behave different as described above ,
but hey i learn something new every day :-)
Michel
"Patrice" <http://www.chez.com/scribe/schreef in bericht
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
So this is seen as a COM component and AFAIK a COM component necessarily
needs to be registered. Now you could perhaps use the regasm command line
tool and see if you could launch this from a login script : http://msdn.microsoft.com/en-us/libr...w6(VS.80).aspx
I've seen a "COM registration free" feature but this is the other way
round (ie .NET is able to use a COM component by using information from an
xml file rather than by looking this in the registry).
Ah ! from a quick look it looks like a bit broader than that. Try perhaps
around : http://msdn.microsoft.com/en-us/library/fh1h056h.aspx
and in particular http://msdn.microsoft.com/en-us/library/eew13bza.aspx
A bit hard but at first sight it looks like you should be able to create a
manifest file for your COM application so that it knows about managed
components and a manifest in your managed component that match so that the
COM component can see the .NET component without any registry handling...
Good luck.
--
Patrice
"Christiano Donke" <cd****@digiexp ress.com.bra écrit dans le message de
groupe de discussion : #n************* *@TK2MSFTNGP05. phx.gbl...
>What I need is not that hard...
I made an Class Lib in VB.NET (VS2005), that will be called from a VB6 App... so far, no problems.... Everything was working out just fine..
But This vb6 app is shared over a company network.. And I don't want to have to register it into all computers.. This .net lib is used to get some data and write a XML..
I'll read this article and the give you a feedback..
tks...
"Dick Grier" <dick_grierNOSP AM@.msn.comescr eveu na mensagem news:e9******* *******@TK2MSFT NGP02.phx.gbl.. .
>>Hi,
It is hard to tell exactly what you want to do. However, perhaps it is Remoting or a Webservice, both of which provide "objects" over a network connection. You might start here (though there are many more articles on these subjects) http://www.vbdotnetheaven.com/Upload...tRemoting.aspx
Dick
-- Richard Grier, MVP Hard & Software Author of Visual Basic Programmer's Guide to Serial Communications, Fourth Edition, ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March 2006. See www.hardandsoftware.net for details and contact information.
If it is COM (and that is what is required for an object from VB6, written
in .NET), then it has to be registered.
I think a better scenario might be to provide a network service via sockets
or a webservice. If you use Sockets, you have to write the
interface/communications code using Winsock on the VB6 side, and
System.Net.Sock ets on the .NET side. If you go with a webservice, then you
can try the SoapSDK toolkit for VB6. This is deprecated, but I suspect that
it may still be available (even if you use sockets, this toolkit might be
useful, so that you could use XML more easily on the VB6 side).
Since this is a VB6 application, personally, I'd live with the limitation(s)
of VB6, and simply register the component on each machine. After all,
that's what you had to do to install the program, or to make any major
modifications to it -- and this is a major modification.
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
On Aug 19, 11:22 am, "Dick Grier" <dick_grierNOSP AM@.msn.comwrot e:
If it is COM (and that is what is required for an object from VB6, written
in .NET), then it has to be registered.
I think a better scenario might be to provide a network service via sockets
or a webservice. If you use Sockets, you have to write the
interface/communications code using Winsock on the VB6 side, and
System.Net.Sock ets on the .NET side. If you go with a webservice, then you
can try the SoapSDK toolkit for VB6. This is deprecated, but I suspect that
it may still be available (even if you use sockets, this toolkit might be
useful, so that you could use XML more easily on the VB6 side).
Since this is a VB6 application, personally, I'd live with the limitation(s)
of VB6, and simply register the component on each machine. After all,
that's what you had to do to install the program, or to make any major
modifications to it -- and this is a major modification.
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
Seewww.hardands oftware.netfor details and contact information.
I haven't tried it yet, but I ran across this: http://www.thecommon.net/10.html
Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Leo R |
last post by:
Hi,
Is it possible to create a network-drive at the SYSTEM-level? E.g.: map X:
to \\server1\share so a windows service can reach X: without having to log
on? I want a Windows .NET service to collect files from a UNIX-share (mapped
to X:) that is exposed to windows using Hummingbird-software.
Leo.
|
by: Michelle |
last post by:
Hello!
I have an ASP.NET application (1.1 framework) that needs to be able to
read/write files on a network share. The access to this file share
will be fairly restricted, so I need to impersonate a specific user
account on our domain in order to gain access. The impersonation is
only needed for the sections that reads/writes files. I have tried
using the code from http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158#4
and...
|
by: Frank Rizzo |
last post by:
Hello, I've asked this question in the languages.vb group, but got no
response, so I'll try my luck here.
My app needs to copy a file from a local folder to a network share. The
network share is accessible via a domain ID, which has all possible
folder rights assigned to it. The domain ID also has full rights to the
local folder. I am using the impersonation code from here
...
|
by: brian.oneil2 |
last post by:
Is there a way to install this onto a network file share and allow a
team to access it? I would say share a CD from a networked CD drive,
but there are multiple CD's that would have to be inserted.
TIA,
Brian
|
by: Agnes |
last post by:
We got a dataserver , I built some usercontrol and class and languate.resx .
I PLACED all of them in the data server, I want to let other to use the
sources .
HOWEVER, after i build the class library , and then add the new items in
the TOOL bar.
It said "the assembly 'w:\myProject\myclass.dll ' could not be loaded, check
that any dependencies the file requires are install.
I use "w" as mapping directory to the dataserver.
How can I...
| |
by: Frank Rizzo |
last post by:
Hello, my app needs to copy a file on a network share. The network
share is accessible via a domain ID, which has all possible folder
rights assigned to it. I am using the impersonation code from here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsImpersonationContextClassTopic.asp?frame=true
The code seems to properly impersonate (as evidenced by debug
statements),...
|
by: Shallotx |
last post by:
I am working on a database imaging application. Links to the images are
stored in the database and accessed via a shared network drive. This network
share is mapped when the user logs on to Windows (using XP), and they have
“read” access only.
My challenge is I need the application to have “write” access during certain
functions, but I don’t want the user to have this access all the time. My
intent is for the app to...
|
by: musosdev |
last post by:
Hi guys
Okay, I've setup my projects to open and compile fine in VS2005 using FPSE
and remote web, but it's *really* slow. So I thought I'd have a go at doing
it the normal way, by loading from the network share.
It loads in VS2005 fine, and I can edit and save code changes etc, but when
I try and Build the solution, I get the following error...
An error occured loading a configuration file: Failed to start monitoring
|
by: Michel Smit |
last post by:
Hello,
I have a question. We have a webserver in a domain, DomainA, and a webserver
in a DMZ with local users and groups only.
I'm trying to copy a file from the DomainA webserver to the DMZ webserver.
Het firewall is configured to allow traffic via NetBIOS by ip-address. File
copy takes place in a .NET assembly.
Problem is described as follows: when copying I get an error 'access denied'
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |