MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




VB.NET webForm + MapPoint 2002 problem

This is a discussion on VB.NET webForm + MapPoint 2002 problem within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-29-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
You have IIS permissions as well as NTFS permissions. Check both..
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-23-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I got the exactly same problem.
Any body have idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-31-2002
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MapPoint implementation problem Nicko MapPoint Web Service and Virtual Earth 0 02-16-2006 05:03 AM
Problem linking MApPoint DB2 - UDL Anonymous MapPoint 2006/2009 Discussion 0 10-08-2004 09:19 AM
Problem with mappoint in Access Dazzer MapPoint 2006/2009 Discussion 0 12-04-2003 04:27 AM
MP 2002/2004 Major problem with non modal forms in VB6 neomoon MapPoint 2006/2009 Discussion 0 10-07-2003 04:13 AM
GetName() problem in 2002 ActiveX in VC++ jvirtue MapPoint 2006/2009 Discussion 0 09-26-2003 01:04 PM


All times are GMT -5. The time now is 01:46 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Catered Ski Holidays
Book catered ski holidays online at Holiday Hypermarket. Our powerful ski holidays search will find you great deals for low prices.

Portugal Holidays
Find great Portugal Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Portugal.

Jamaica Holidays
Jamaica Holidays can include world class business hotels, upscale shopping and top entertainment and dining. Alternatively, hit the beach or hike in the hills. Book online with us.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

Cheap Egypt Holidays
Pick up a bargain cheap Egypt holiday online when you visit ulookubook.com. Just check out our tips to make sure you book at the right time to get a great holiday for a great price. Finding cheap Egypt holidays can be simple when you know how.

Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.

Cheap Portugal Holidays
Hotels of all ratings! Find information on cheap Portugal holidays at On The Beach!


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