Permissions problems with ASPNET account

Results 1 to 2 of 2

Thread: Permissions problems with ASPNET account

  1. #1
    Join Date
    Dec 1969

    Default Permissions problems with ASPNET account

    I am encountering problems when trying to access Microsoft&#039;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 &#039;{machinename}ASPNET&#039;, 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>&#060;%@ Page Language="vb" AutoEventWireup="false"<BR> Codebehind="WebForm1.aspx.vb"<BR> Inherits="WebApplication1.WebForm1"<BR> Trace="True"<BR> aspcompat=true<BR> Debug="True" %&#062;<BR>&#060;%<BR> Dim objApp<BR> objApp = Server.CreateObject("MapPoint.Application")<BR> <BR> &#039;Dim objConn<BR> &#039;objConn = Server.CreateObject("ADODB.Connection")<BR>%&#062; <BR>&#060;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&#062;<BR>&#060;html&#062;<BR> &#060;head&#062;<BR> &#060;title&#062;WebForm1&#060;/title&#062;<BR> &#060;meta name="GENERATOR"<BR> content="Microsoft Visual Studio.NET 7.0"&#062;<BR> &#060;meta name="CODE_LANGUAGE" content="Visual Basic 7.0"&#062;<BR> &#060;meta name="vs_defaultClientScript"<BR> content="JavaScript"&#062;<BR> &#060;meta name="vs_targetSchema"<BR> content=""&#062;<BR> &#060;/head&#062;<BR> &#060;body MS_POSITIONING="GridLayout"&#062;<BR> Hello World<BR> &#060;/body&#062;<BR>&#060;/html&#062;<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.

  2. #2
    Join Date
    Dec 1969

    Default sounds like you need to provide...

    provider permissions to that assembly.<BR>you can do this from the .NET Framework configurations<BR>in your administrative tools.

Posting Permissions

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