Not sure it helps, or if you are already using it, but I heavily recommend you to use the Sysinternals Suite of tools (from Mark Russinovich). Several of them can help you analyzing what is failing, i.e. allow you to "spy" on whatever is happening at Windows level. It saved my life while solving a migration problem related with the ASLR mechanism introduced by new versions of Windows and Delphi 7 apps (see here http://everything-techie-under-the-sun.blogspot.pt/2009/12/why-delphi-bde-applications-sometimes.html).
The suite is available here, and there are loads of good articles on how to debug windows problems, memory leaks and so on, google for them ;) : https://technet.microsoft.com/en-us/sysinternals/bb842062.aspx If you know the tools, sorry ;) Hope this helps, P. Sllva - CSW -----Original Message----- From: Delphi [mailto:[email protected]] On Behalf Of Gregory Saunders Sent: 8 de março de 2017 15:38 To: [email protected] Subject: Delphi 6, COM+, move from 2003 to 2008 server Don't know if anyone here can help, but wanted to give it a try... We have developed a COM+ application a while back with Delphi 6 running under Windows XP 32bit OS. Moving the COM+ application to production was a matter of exporting from COM+ and running the resulting MSI file on the production Windows 2003 SErver We have need to install this on either Windows 2008 R2 or Windows 2012 or even Windows 2016. But for this case let's stick with Windows 2008 R2. Before giving all the gory details of the error we have been able to import this into Windows 7 64 bit without issue. Just run the exported MSI in Windows 7 64bit and it installed. As an FYI we are exporting it as a full application NOT a proxy app. So in COM+ when exporting you pick Export as Server application. So what happens when we import or try to install on Windows 2008 R2? We first get the following (very generic) error when running the MSI: "Error registering COM+ application. Contact your support personnel for more information." I then dug into a verbose log file and see the following: << MSI (s) (64:9C) [21:27:08:160]: Executing op: ComPlusRegister(AppID={6C04B800-1CD3-4524-87D4-AE5973E5505C},AplFileName=C:\Program Files (x86)\COMPlus Applications\{6C04B800-1CD3-4524-87D4-AE5973E5505C}\APLF96D.tmp,AppDir=C:\Program Files (x86)\COMPlus Applications\{6C04B800-1CD3-4524-87D4-AE5973E5505C}\,AppType=1,,RSN=TBGDEV-D6) DEBUG: Error 2945: Installation of ComPlus App C:\Program Files (x86)\COMPlus Applications\{6C04B800-1CD3-4524-87D4-AE5973E5505C}\APLF96D.tmp failed with error -2147467259. Internal Error 2945. C:\Program Files (x86)\COMPlus Applications\{6C04B800-1CD3-4524-87D4-AE5973E5505C}\APLF96D.tmp, -2147467259 MSI (s) (64:9C) [21:27:11:972]: Note: 1: 1928 MSI (c) (20:6C) [21:27:11:988]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg Error 1928. Error registering COM+ Application. Contact your support personnel for more information. MSI (s) (64:9C) [21:27:15:785]: Product: Branch COM+ Common System -- Error 1928. Error registering COM+ Application. Contact your support personnel for more information. You again see some pretty generic results. I did a lot of research and nothing conclusive other than suspect not having access to a file or missing a dependent (but this installs on Windows 7 x64 without issue) >> Event Log shows << Error 1928. Error registering COM+ Application. Contact your support personnel for more information. >> I found a number of possibilities through searching, but none affect this. I also decided to also just create a blank COM+ application with the management tool... basically a wrapper for components to be installed into and then click add component, browse to my Delphi 6 COM+ dll and then open it. The "files to install" window show the file and the contents is listed as "COM DLL, typelib", but down in the components found windows it shows nothing. But doing this in Windows 7 x64 or on Windows 2003 32bit I see the component in the lower window. Something has to be different to prevent the COM+ management tool from seeing the component properly. I am guessing it has to see the typelib to work, but in the contents it does say typelib so it is like it thinks it sees it, but just doesn't see any components. I also thought maybe this was a 32 bit vs 64 bit version of the dcomcnfg.exe so i made sure I ran the one from syswow64 and also used commandline option as well as an alternative and no difference. I have tried dozens of possible fixes to generic errors other folks have experienced and nothing seems to help. So I am here hoping someone else has ran into this export / import issue from Windows XP 32 bit or Windows 2003 32 bit to Windows 2008 or higher. My next steps is to see about building this in a newer version of Delphi, but that brings a whole new set of challenges. Thanks in advance for your feedback! _______________________________________________ Delphi mailing list [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
