|
| Previous Thread: Calculating Square Miles |
|
|
9/29/2005 10:35:27 PM mappoint 2004 fails to register |
I've installed mappoint 2004 on a win2k pro workstation as both admin and
user with admin rights.
Although the program by itself works well, I cannot use it from other
office programs and VB6.
I tried mappoint /regserver without luck.
I aslo installed it on another PC with the same OS and there it works well
but I need it on my developers PC.
All service packs are applied to vb6 and win2k.
Is there anybody out there with a bright idea ?
-ben
|
|
|
|
|
10/4/2005 1:56:04 PM Re: mappoint 2004 fails to register |
"Benny" <bbubble62<at>hotmail.com> wrote in message
news:615sdtkv33jc$.1g4jw0v5cv7le.dlg@40tude.net...
and
well
Ben,
If you're in a VB6 project and you set a ref to mpna82.tlb,
are you saying that you can't use
Dim MPApp As Object
Set MPApp = CreateObject("MapPoint.Application")
?
---
Michael R. Mattys
Mattys MapLib for Microsoft MapPoint
http://www.mattysconsulting.com
|
|
|
10/4/2005 4:02:03 PM Re: mappoint 2004 fails to register |
"Benny" <bbubble62<at>hotmail.com> wrote in message
news:1c47ll124umhw$.j8yvk11lrmzl$.dlg@40tude.net...
Ben,
I suspect that you have either Streets & Trips or Autoroute
or even more than one version of MapPoint on your machine.
If so, there may be a problem with some of the registry calls
from the VC lib templates that are messing up. This is just a
guess by the way, and not to be taken lightly, but I think you
can delete the keys under MapPoint and it will be forced to
re-register correctly.
This may spark an idea from one of the MVPs, anyway ...
----
Michael R. Mattys
Mattys MapLib for Microsoft MapPoint
http://www.mattysconsulting.com
|
|
|
10/4/2005 4:20:01 PM Re: mappoint 2004 fails to register |
"Benny" <bbubble62<at>hotmail.com> wrote in message
news:1l0c86p5aj7m3.rayd9ma9we7v.dlg@40tude.net...
They are located here:
HKLM\SOFTWARE\Microsoft\MapPoint
HKCR\MapPoint.Map.EU.11
Please - before any experiments - wait for
Gilles, Richard, or Eric to confer with.
----
Michael R. Mattys
Mattys MapLib for Microsoft MapPoint
http://www.mattysconsulting.com
|
|
|
10/4/2005 7:42:26 PM Re: mappoint 2004 fails to register |
On Thu, 29 Sep 2005 22:35:27 +0200, Benny wrote:
Come on guys, you must have an idea !
-ben
|
|
|
10/4/2005 9:27:53 PM Re: mappoint 2004 fails to register |
Michael R Mattys wrote:
I don't have much more to add. I would only touch the registry with
MapPoint uninstalled. If you remove things with it installed it is
possible the uninstall might mess up (don't know for sure but it is best
to be safe), and running MapPoint will definitely be messed up.
How are you running it from VB?
Have you told VB that your application references MapPoint? Or do you
mean that you're trying to do this, and MapPoint isn't even showing up
on all the available component lists?
To get MapPoint to appear in Office apps, I have install Office first.
And this machine has never had any other version or edition of MapPoint
installed?
Richard
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
|
|
|
10/4/2005 9:29:34 PM Re: mappoint 2004 fails to register |
On Tue, 4 Oct 2005 13:56:04 -0400, Michael R Mattys wrote:
Indeed, also the object does not appear in the 'to be inserted objects' in
all office applications.
I have a similar setup where this all works (including the insert: object
mappoint...)
The program itself works well, but it seems to be not registered somehow..
-ben
|
|
|
10/4/2005 10:04:59 PM Re: mappoint 2004 fails to register |
On Tue, 4 Oct 2005 16:02:03 -0400, Michael R Mattys wrote:
Hello Michael,
I do not have either Streets & Trips nor Autoroute installed on this PC and
I'm 100% sure about this.
Also I have installed only 1 version of Mappoint (europe) on this pc but
due to the problems I've reinstalled this twice with proper uninstall
first.
To which keys are you referring ? I assume in the registry but under which
hkey ?
-ben
|
|
|
10/5/2005 7:25:47 AM Re: mappoint 2004 fails to register |
Benny,
On Tue, 4 Oct 2005 19:42:26 +0200, Benny <bbubble62@hotmail.com>
wrote:
+ Anything in the event log?
+ Do you know RegMon by Sysinternals? (www.sysinternals.com)
Might be worth a try to monitor what exactly is going on when you call
Mappoint.exe /regserver (i.e. especially, any failure logs)
+ Another thing worth a try is checking if you can attach to MapPoint
as a running object, try this snippet:
Private Sub Form_Load()
' Try to attach to running instance of MapPoint
On Error Resume Next
Set oMpApp = GetObject(, "MapPoint.Application")
On Error GoTo 0
If oMpApp Is Nothing Then
' Attaching failed - try creating an object
On Error Resume Next
Set oMpApp = CreateObject("MapPoint.Application")
On Error GoTo 0
If oMpApp Is Nothing Then
MsgBox "Could not create MapPoint object"
End
End If
' make the app visible
oMpApp.Visible = True
End If
' Ensure MapPoint survives when app terminates
oMpApp.UserControl = True
' Retrieve the active map
Set oMap = oMpApp.ActiveMap
End Sub
and see if the GetObject works if MapPoint is already running.
Regards,
Gilles [MVP].
(Please reply to the group, not via email)
|
|
|
10/5/2005 5:53:41 PM Re: mappoint 2004 fails to register |
On Wed, 05 Oct 2005 07:25:47 +0200, Gilles Kohl [MVP] wrote:
Richard,
Running this piece of code (with both mappoint runnng and unloaded) gives
runtime error 424 'object required
-ben
|
|
|
10/5/2005 5:56:54 PM Re: mappoint 2004 fails to register |
On Tue, 04 Oct 2005 21:27:53 -0500, Richard Marsden wrote:
Richard,
I logged the /regserver transaction and observerd the following :
17:46:30 MapPoint.exe:1852 QueryKey HKCU SUCCESS Name:
\REGISTRY\User\S-1-5-21-1417001333-796845957-682003330-1000_Classes
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm ACCESS DENIED Access: 0x2001F
PC01\ben
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm SUCCESS Access: 0x2000000
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 EnumerateKey HKCR\.ptm SUCCESS Name: shell
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell ACCESS DENIED Access:
0x2001F PC01\ben
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell SUCCESS Access:
0x2000000
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell NOT FOUND
17:46:30 MapPoint.exe:1852 EnumerateKey HKCR\.ptm\shell SUCCESS Name: open
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell\open NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell\open ACCESS DENIED
Access: 0x2001F PC01\ben
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell\open SUCCESS Access:
0x2000000
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell\open SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell\open
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell\open NOT FOUND
17:46:30 MapPoint.exe:1852 EnumerateKey HKCR\.ptm\shell\open SUCCESS Name:
command
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell\open SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell\open
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell\open\command NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell\open\command ACCESS
DENIED Access: 0x2001F PC01\ben
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell\open\command SUCCESS
Access: 0x2000000
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell\open\command SUCCESS
Name: \REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell\open\command
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell\open\command NOT FOUND
17:46:30 MapPoint.exe:1852 EnumerateKey HKCR\.ptm\shell\open\command NO
MORE ENTRIES
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\shell\open\command SUCCESS
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\shell\open SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\shell\open
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\shell\open\command NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\shell\open\command SUCCESS
Access: 0x2000000
17:46:30 MapPoint.exe:1852 DeleteKey HKCR\.ptm\shell\open\command ACCESS
DENIED Key: 0xE3E26720
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\shell\open\command SUCCESS
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\shell\open SUCCESS
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\shell SUCCESS
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm SUCCESS
17:46:30 MapPoint.exe:1852 QueryKey HKCU SUCCESS Name:
\REGISTRY\User\S-1-5-21-1417001333-796845957-682003330-1000_Classes
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm ACCESS DENIED Access: 0xF003F
PC01\ben
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm SUCCESS Access: 0x2000000
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 SetValue HKCR\.ptm\(Default) ACCESS DENIED
PC01\ben
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 SetValue HKCR\.ptm\Content Type ACCESS DENIED
PC01\ben
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR SUCCESS Access: 0x2000000
17:46:30 MapPoint.exe:1852 CreateKey HKCR\.ptm\ShellEx ACCESS DENIED
Access: 0xF003F PC01\ben
17:46:30 MapPoint.exe:1852 CreateKey HKCR\.ptm SUCCESS Access: 0x2000000
17:46:30 MapPoint.exe:1852 CreateKey HKCR\.ptm\ShellEx ACCESS DENIED
Access: 0xF003F PC01\ben
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm SUCCESS
17:46:30 MapPoint.exe:1852 CloseKey HKCR SUCCESS
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm SUCCESS
17:46:30 MapPoint.exe:1852 QueryKey HKCU SUCCESS Name:
\REGISTRY\User\S-1-5-21-1417001333-796845957-682003330-1000_Classes
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm SUCCESS Access: 0x20019
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Subkeys = 2
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 DeleteValueKey HKCR\.ptm\Content Type ACCESS
DENIED
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\ShellEx NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellNew NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\ShellNew SUCCESS Access:
0x20019
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\ShellNew SUCCESS Subkeys = 0
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\ShellNew SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\ShellNew
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellNew NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\ShellNew SUCCESS Subkeys = 0
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm\ShellNew SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm\ShellNew
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellNew NOT FOUND
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\ShellNew SUCCESS
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\ShellNew NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\ShellNew SUCCESS Access:
0x2000000
17:46:30 MapPoint.exe:1852 DeleteKey HKCR\.ptm\ShellNew ACCESS DENIED Key:
0xE39689E0
17:46:30 MapPoint.exe:1852 CloseKey HKCR\.ptm\ShellNew SUCCESS
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\{ NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\{ NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Subkeys = 2
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCR\.ptm SUCCESS Name:
\REGISTRY\MACHINE\SOFTWARE\CLASSES\.ptm
17:46:30 MapPoint.exe:1852 OpenKey HKCU\.ptm\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\.ptm\.ptm NOT FOUND
17:46:30 MapPoint.exe:1852 QueryKey HKCU SUCCESS Name:
\REGISTRY\User\S-1-5-21-1417001333-796845957-682003330-1000_Classes
17:46:30 MapPoint.exe:1852 OpenKey HKCU\MapPoint.Map.EU.11 NOT FOUND
17:46:30 MapPoint.exe:1852 OpenKey HKCR\MapPoint.Map.EU.11 NOT FOUND
I hope you can read it ....
Interesting thing is that user ben has admin rights, I also installed as
administrator and had same results ....
-ben
|
|
|
10/6/2005 10:28:33 AM Re: mappoint 2004 fails to register |
You need to tell VB6 that your project references MapPoint. Have you
done this?
Select Project->References from the menu. Then select the Microsoft
MapPoint 11.0 objects.
If you want to use the control as well, then you will have to select
these in Project->Components.
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
|
|
|
10/6/2005 10:29:49 AM Re: mappoint 2004 fails to register |
Also, does the user/admin that you are doing all of this under have all
of the settings set correctly? Ie. what they can read/write/edit?
The log you posted shows Access Denies for some of the modifications.
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
|
|
|
10/6/2005 6:19:33 PM Re: mappoint 2004 fails to register |
On Thu, 06 Oct 2005 10:28:33 -0500, Richard Marsden wrote:
Yes, I've done that. I do program in VB6 using activeX so I know what to
do/expect.
-ben
|
|
|
10/6/2005 6:25:04 PM Re: mappoint 2004 fails to register |
On Thu, 06 Oct 2005 10:29:49 -0500, Richard Marsden wrote:
Richard,
This is very strange, I've seen it too. Most important is that it happens
when I install the s/w under administrator and user (with admin rights).
I've installed MANY MANY programs exactly the same way as I installed
MAPPOINT but this is the first time I've seen this.
I noticed that I'm not the only one who has this problem, after some
googling I found others as well.
Strangly enough, other programs like word/excel have a button for mappoint
(office addin) but after pushing this button, I see the same error
'application not registered' (or something like this).
I installed it on another PC (with many other apps installed) and there it
works fine. I will do one more test : run regmon while executing
mappoint.exe /regeserver on the other PC and see what happens.
-ben
|
|
|
10/6/2005 9:42:09 PM Re: mappoint 2004 fails to register |
Benny wrote:
Just checking! You know how it is - weird behavior usually turns out to
be something simple that is often taken for granted.
Richard
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
|
|
|
10/6/2005 9:43:14 PM Re: mappoint 2004 fails to register |
Yes this is something I haven't seen myself.
Could it be a weird disk problem (bad sector => registry gets corrupted
but in a manner that isn't automatically detected?), or the installation
was interrupted in some manner?
Richard
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
|
|
|
10/7/2005 9:28:38 PM Re: mappoint 2004 fails to register |
Hi,
- Is it the full version (not evaluation) ? >> evaluation doesn't work if
you are not the admin...
- did you check "enable mappoint integration with office products" during
the installation ?
- did you allready validate the EULA at MapPoint start ?
- can you try to import a csv file into mappoint, just to check ? >> if it
doesn't work, you can buy another computer (already had the problem)
rouz
http://www.adolys.com
"Benny" <bbubble62@hotmail.com> a écrit dans le message de news:
17qshsh1638np$.1qocpedr653s6$.dlg@40tude.net...
|
|