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
Results 1 to 5 of 5

VB.NET webForm + MapPoint 2002 problem

This is a discussion on VB.NET webForm + MapPoint 2002 problem within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am building a VB.NET webForm application that needs to use the MapPoint application object (as opposed to the MapPoint ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    VB.NET webForm + MapPoint 2002 problem

    I am building a VB.NET webForm application that needs to use the MapPoint application object (as opposed to the MapPoint Control).

    I receive an exception the first time I try to access the com object, in the following code:

    Dim objApplication As New Application()

    The exception I get is at the bottom of this email. It indicates that the ASPNET account does not have the rights to access this ‘resource’. I checked the permissions on the com .dll (which is located in progfiles\mappoint) and it allows all users Read and Execute. I checked the interop.dll (in my \bin) that my project created to interface with this com object, and again the permissions are Read and Execute.

    Anyone have suggestions where to look next?

    ……………owen

    Server Error in '/Display_Mappoint' Application.

    --------------------------------------------------------------------------------

    Access is denied.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access is denied.

    The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.

    To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.

    Source Error:


    Line 114:
    Line 115: Catch ex As Exception
    Line 116: Throw ex
    Line 117:
    Line 118: Finally



    Source File: c:\inetpub\wwwroot\Display_Mappoint\Display_MapPoi nt.aspx.vb Line: 116

    Stack Trace:


    [UnauthorizedAccessException: Access is denied.]
    Display_Mappoint.Display_MapPoint.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\Display_Mappoint\Display_MapPoi nt.aspx.vb:116
    System.Web.UI.Control.OnLoad(EventArgs e)
    System.Web.UI.Control.LoadRecursive()
    System.Web.UI.Page.ProcessRequestMain()





    --------------------------------------------------------------------------------

    Version Information: Microsoft .NET Framework Version:1.0.3705.209;

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    You have IIS permissions as well as NTFS permissions. Check both..

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I got the exactly same problem.
    Any body have idea?

  4. #4
    Eamon is offline Junior Member Yellow Belt
    Join Date
    Aug 2002
    Posts
    15
    come back with some more debuggin information like what account you are working under. its probably aspnet. You have to give your application the permission to launch a DCOM server. Also giving aspnet some more access rights would be nice. I also think if you are working with an asp page you should set your IIS project to run in isolated mode it then has its own memory.

    to debug your application

    goto run and open up eventvwr

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    insufficient rights to access resource..

    I've seen a message almost identical to this one and it was due to the fact that the registry settings for the object, in your case MapPoint, weren't set to allow ASP.NET read rights to it.

    In my case it was that Crystal Reports didn't have the rights to read. In your case it might be the same thing- registry setting for MapPoint.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint implementation problem
    By Nicko in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 02-16-2006, 05:03 AM
  2. Problem linking MApPoint DB2 - UDL
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-08-2004, 09:19 AM
  3. Problem with mappoint in Access
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-04-2003, 04:27 AM
  4. MP 2002/2004 Major problem with non modal forms in VB6
    By neomoon in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-07-2003, 04:13 AM
  5. GetName() problem in 2002 ActiveX in VC++
    By jvirtue in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-26-2003, 01:04 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83