Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

MapPoint 2006 object initialization fails in ASP.NET 2.0

This is a discussion on MapPoint 2006 object initialization fails in ASP.NET 2.0 within the Development forums, part of the MapPoint Desktop Discussion category; PaulM, thanks for the information and time that you put towards my inquiry. I definitely think if I change the ...

  1. #11
    cybergroove is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    2

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    PaulM, thanks for the information and time that you put towards my inquiry. I definitely think if I change the DCOM security settings my issue will be resolved or at least one step closer. The problem I am having is that everytime I make a permission change, apply the change and press OK and then go back into it the settings are set back to default. Do you have any idea why my settings would be changing back? I am logged in as an administrator, but not as THE administrator.

  2. #12
    PaulM is offline New Member White Belt
    Join Date
    Sep 2007
    Posts
    10

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Hi,

    You could try logging in as the local machine Administrator (ie. the one set up when installing Windows) - then make your DCOM changes. Then log back in as whoever and see if the changes have stayed.

    Hope that helps.

    Paul.

  3. #13
    kng
    kng is offline Junior Member White Belt
    Join Date
    Nov 2007
    Posts
    1

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    If this is the Mappoint 2006 issue with CreateObject("Mappoint.Application") not initializing in ASPNET, it's due to ASPNET account not being allowed to run Mappoint.


    I assume u can use Mappoint 2006 thru Start->Programs. When u run Mappoint this way, it is running under your login account. When ASPNET runs your web app, it runs COM objects(executables) under ASPNET account. To not use that account, but instead your account (account which mappoint was installed), do this more simple approach:

    Put this in the webconfig.

    <system.web>

    <identity impersonate="true"/>

    </system.web>


    What this does is your webapplication will run as usual, but COM calls will be using the local account instead of ASPNET.


    I had a horrible time trying different things even messing up the registry and Components. I used the above and it worked. At least I dont get "the server {31851F82-AFE6-11D2-A3C9-00C04F72F340} did not register with DCOM within the required timeout." I have to test this further.

  4. #14
    rupesh74 is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    2

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Hello,

    I have logged with ASPNet account (changed the settings to login into the system) and agreed to EULA. I have also changed the settings of DCOM as mentioned in earlier threads. But I still get same error. I have Windows 2003 Standard server. Also I would like to mention that even after agreeing EULA with ASPNet account, I didn't see "MapPoint" in registry at hkey_users\.default\Software\Microsoft. Am I doing something wrong? Any help is greatly appreciated.

    I went to event viewer and found following.

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 11/20/2007 7:55:46 AM
    Event time (UTC): 11/20/2007 3:55:46 PM
    Event ID: 1a5e1164b6e8494cbeb2d4c301e8e596
    Event sequence: 54
    Event occurrence: 1
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/1/ROOT-2-128400472834863498
    Trust level: Full
    Application Virtual Path: /
    Application Path: c:\inetpub\PUI\
    Machine name: TEST

    Process information:
    Process ID: 2172
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:
    Exception type: CustomException
    Exception message: -1003: Retrieving the COM class factory for component with CLSID {31851F82-AFE6-11D2-A3C9-00C04F72F340} failed due to the following error: 80080005.

    Request information:
    Request URL: http://test.com:8080/ui/admin/view.aspx?ID=49
    Request path: /ui/admin/View.aspx
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False


    Custom event details:
    For more information, see Help and Support Center at

  5. #15
    rupesh74 is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    2

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Hi,

    I have logged in using ASPNet account into system (after changing password, user settings) and agreed to EULA. Also changed te dcomcnfg settings. I am still getting following error. I would like to mention that even I agreed to EULA, I didn't see entry "MapPoint" in hkey_users\.default\software\microsoft. Any help is greatly appreciated.

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 11/20/2007 7:55:46 AM
    Event time (UTC): 11/20/2007 3:55:46 PM
    Event ID: 1a5e1164b6e8494cbeb2d4c301e8e596
    Event sequence: 54
    Event occurrence: 1
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/1/ROOT-2-128400472834863498
    Trust level: Full
    Application Virtual Path: /
    Application Path: c:\inetpub\PUI\
    Machine name: TEST

    Process information:
    Process ID: 2172
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:
    Exception type: CustomException
    Exception message: -1003: Retrieving the COM class factory for component with CLSID {31851F82-AFE6-11D2-A3C9-00C04F72F340} failed due to the following error: 80080005.

    Request information:
    Request URL: http://test.com:8080/ui/admin/view.aspx?ID=49
    Request path: /ui/admin/View.aspx
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False


    Custom event details:
    For more information, see Help and Support Center at

  6. #16
    PaulM is offline New Member White Belt
    Join Date
    Sep 2007
    Posts
    10

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Hi rupesh74,

    I notice in the list of event log details it mentions the NT AUTHORITY\NETWORK SERVICE account.

    In Windows Server 2003 this is the default account that a web application runs under (check out the Application Pool in IIS), hence why it is showing up in your log.

    You could create a new Application Pool, specify a different login account (which has been enabled with the MapPoint EULA) and change your web site to run in this Pool. You would also need to configure your MapPoint DCOM config to use this account.

    Let me know if that works for you.

    Kind Regards,

    Paul McMurray.

  7. #17
    oran is offline Junior Member Yellow Belt
    Join Date
    Jul 2008
    Posts
    13

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Quote Originally Posted by PaulM View Post
    Hi all,

    Some additional information that might help.

    I've just installed a fresh copy of MapPoint 2006 Europe on a machine and ran Process Monitor whilst agreeing to the EULA. It turns out that agreeing to the EULA creates the following registry entry:

    HKCU\Software\Microsoft\MapPoint\13.0\EUR\
    Name: EULA
    Type: REG_DWORD
    Value: 0x0000001 (1)

    Now I'm going to try the same technique with a service running under the local system account, and see what registry entry gets set.

    Paul.
    I've just been dealing with the same issue and found some interesting info.

    I created a special account for my app to use (call it special.account) and logged in under that account. Then I run MapPoint and agree to the EULA. This should have done it but I noticed that the registry did NOT update and add the EULA . Here's why.

    It appears that the EULA info doesn't get saved unless you actually USE the software. While MapPoint is open do a search for your hometown. Then shut down and take a new look at the registry for your special account. You'll see a ton of defaults that the program has set due to your using the program. AND you'll see the missing EULA line as well. After this my web app had no issues!

    Repeat with any account you need to use MP.
    ...0ran...

  8. #18
    PaulM is offline New Member White Belt
    Join Date
    Sep 2007
    Posts
    10

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Hi Oran,

    Excellent bit of detective work there! This thread has built up nicely.

    I wonder how much things will change (if at all) with regards to this for MapPoint 2009?!

  9. #19
    oran is offline Junior Member Yellow Belt
    Join Date
    Jul 2008
    Posts
    13

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Here's the final wrap-up of procedures my co-worker Chris and I have developed for installing MapPoint 2006 on an IIS 7 webserver (W2003) and usign it with a C# .NET web app. Works flawlessly (we just set up brand new web servers to replace the current ones) Your drive letters may differ of course.
    --------------------------------------------------------------------------
    Install MapPoint as an Admin account to D:\Program Files\MapPoint\

    Add service.account@yourdomain.com to the <localserver>\IIS_WPG group for the local server

    Set the IIS App Pool identity to Local System

    Open DCOMCnfg, go to Component Services/Computers/My Computer/DCOM config/Microsoft MapPoint

    Go to Identity tab, select "This user", set to yourdomain\service.account

    Go to Security tab, "Launch and Activation", select Customize, then Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Local Launch" and "Local Activation"

    Select Access Permissions, Customize, Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Local Access"

    Select "Configuration Permissions", customize, Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Full Control" and Read

    Go to Component Services/Computers/My Computer/DCOM config/Microsoft MapPoint Control 13.0

    Go to Identity tab, select "This user", set to yourdomain\service.account

    Go to Security tab, "Launch and Activation", select Customize, then Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Local Launch" and "Local Activation"

    Select Access Permissions, Customize, Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Local Access"

    Select "Configuration Permissions", customize, Edit

    Add <localserver>\IIS_WPG, check "Allow" for "Full Control" and Read

    Log out of the Admin account and log back in as service.account@yourdomain.com

    Run MapPoint

    Accept the EULA (and Wifi, if displayed) notifications

    Select a location on the map. Set a route between 2 points. Don't need to save it or the map.

    Close MapPoint.

    You're good to go!!

    ...0ran & Chris

  10. #20
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: MapPoint 2006 object initialization fails in ASP.NET 2.0

    Wow, so many steps!

    Forgive me for being dense, but once this is done, what can you do with it?

    Can you give an example of programmatically controlling it on the web server?

    Can the user interact? e.g. what would the code look like to perform a search and pan/zoom to new location?

    eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FindPushpin fails
    By dorenstein in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-14-2006, 03:31 AM
  2. Mappoint fails calculating the fastest route with avoided zo
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 06-08-2004, 07:27 AM
  3. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 11:29 PM
  4. QueryAllRecords Fails
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-25-2002, 06:09 PM
  5. QueryAllRecords Fails
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-29-2002, 06:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25