on 12-15-2005 11:52 AM
I've developed an application to connect Excel with SAP. It is working great on my computer (with Visual Studio) but I need to deploy it.
I've copied this files to the target PC's ..\System32 (which has SAP GUI):
- SAP.Connector.dll
- SAP.Connector.Rfc.dll
- librfc32.dll
- SAPPIExcel.tlb
- SAPPIExcel.dll
I registered SAP.Connector.dll SAP.Connector.Rfc.dll and SAPPIExcel.dll with REGASM.EXE.
Librfc32.dll already existed in the PC so I didn't overwrite it.
I'm I missing anything? The PC has a .Net Framework 1.1.
Thanks
EDIT: SAPPIExcel.dll is my development, and the error I get is "SAPPIExcel.dll missing dependencies".
Message was edited by: Joao Sousa
Put SAP.Connector.dll and SAP.Connector.Rfc.dll into GAC and <b>don't</b> register them with RegASM.
You private assembly might also go to GAC; if not, you have to use the /codebase optin of RegAsm. Also register your Tlb (there is also an option in Regasm TlbExp that does it).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joao:
You only need to add the installation package to your solution; the Installation Wizard is already part of your Visual Studio 2003.
Do the following: from your VB project solution select:
Right Click the project solution name and select: Add --> New Project, the go to "Setup and Development Project" section and select "Setup Wizard"
Enjoy !
Best Regards,
Federico G. Babelis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've created the installation package, but it doesn't register the dlls with GAC on install.
Is this normal?
EDIT: Worse, the computer doesn't have gacutil.exe, shouldn't it be available with the .Net Framework?
EDIT2: Thanks a lot guys, its working now, although I had to register with the GAC manually. I'm giving Reiner the full points because of the "register in GAC" tip but I really apreciated your help Federico.
Message was edited by: Joao Sousa
Message was edited by: Joao Sousa
Thanks for the points.
Some remarks from my side:
- Registering to GAC can be done with:
- GACUTIL, which <b>is</b> part of each .NET Framework (e.g. in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
- Explorer shell extension (just drag the files to c:\windows\assembly".
- Setup project: It has a special target folder for GAC. The project will create the necessary custom action.
- Don't confuse "Put to GAC" with "Register an assembly to COM" (RegAsm) and register a non-Assemby to COM (Regsrv32).
I will suggest creating an installation package from your Visual Studio project; in that way all the dependencies will be automatically included into your installation package without the need to manually copy every file. You can do that only in 5'.
In fact, the installation project will register all activeX controls for you with Regsvr32.exe.
Hope this helps !
Best Regards,
Federico G. Babelis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.