Permissions problems with ASPNET account

jordy-jk

New Member
I am encountering problems when trying to access Microsoft's<BR>MapPoint from Visual Basic embedded in a web page. The following<BR>error message is displayed when attempting to access the webpage:<BR><BR>==============================================<BR>Exception Details: System.UnauthorizedAccessException: Access is<BR>denied. <BR><BR>The ASP.NET process is not authorized to access the requested<BR>resource. For security reasons the default ASP.NET process<BR>identity is '{machinename}ASPNET', which has limited<BR>privileges. Consider granting access rights to the resource to<BR>the ASP.NET process identity. <BR><BR>To grant ASP.NET write access to a file, right-click the file in<BR>Explorer, choose "Properties" and select the Security tab.<BR>Click "Add" to add the "{machinename}ASPNET" user. Highlight<BR>the ASP.NET account, and check the Write box in the Allow column.<BR><BR>=================================================<BR><BR>The following is the "Hello World" equivalent webpage that<BR>produced the error message above:<BR><BR>==================================================<BR><BR><%@ Page Language="vb" AutoEventWireup="false"<BR> Codebehind="WebForm1.aspx.vb"<BR> Inherits="WebApplication1.WebForm1"<BR> Trace="True"<BR> aspcompat=true<BR> Debug="True" %><BR><%<BR> Dim objApp<BR> objApp = Server.CreateObject("MapPoint.Application")<BR> <BR> 'Dim objConn<BR> 'objConn = Server.CreateObject("ADODB.Connection")<BR>%><BR><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><BR><html><BR> <head><BR> <title>WebForm1</title><BR> <meta name="GENERATOR"<BR> content="Microsoft Visual Studio.NET 7.0"><BR> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"><BR> <meta name="vs_defaultClientScript"<BR> content="JavaScript"><BR> <meta name="vs_targetSchema"<BR> content="http://schemas.microsoft.com/intellisense/ie5"><BR> </head><BR> <body MS_POSITIONING="GridLayout"><BR> Hello World<BR> </body><BR></html><BR><BR>==================================================<BR><BR>Notes:<BR>1) When I comment out the code that accesses MapPoint and<BR>unccoment the database code it works fine suggesting the problem<BR>is specific to something related to MapPoint.<BR><BR>2) I have included MapPoint in the "References" for this project<BR>in Visual Studio.<BR><BR>3) I get the problem even when I give the "Everyone" group<BR>full permissions to the MapPoint directory in C:Program Files.<BR><BR>4) The ASPNET account is running as a member of the "User"<BR>group.<BR><BR>5) My environment consists of<BR> a) a fresh installation of Win2000 brought completely up to<BR> date with service packs<BR> b) a fresh installation of Visual Basic .NET along with<BR> Service Pack 1<BR> c) a fresh installation of MapPoint 2002<BR> d) no other software installed on this computer<BR><BR>My questions are:<BR><BR>1) What is likely to be the file/whatever that the ASPNET account<BR> is attempting to access but does not have rights to access?<BR><BR>2) If a likely candidate in question 1) cannot be identified how<BR> does one go about determining (via debugger, logs, etc.) to<BR> what access was denied?<BR><BR>3) Is this likely to be a configuration problem in ASP.NET, IIS,<BR> MapPoint, or the application?<BR><BR>Any pointers will be appreciated.provider permissions to that assembly.<BR>you can do this from the .NET Framework configurations<BR>in your administrative tools.
 
Back
Top