asp.net security

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john

    #1

    asp.net security

    I am trying to use the excel.applicati on object from within a asp.net page.
    I keep getting access denied on the <machinename>/aspnet account. I have
    added this user to every security group on the machine (Adminstrators,
    <machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
    message suggests.

    Why do I keep getting this security error? I am the administrator on the
    box.

    Any help would be appreciated.


  • Ken Cox [Microsoft MVP]

    #2
    Re: asp.net security

    Hey John,

    You might want to try this to see if it gets things moving...

    In IIS, disable anonymous access and enable Windows integrated authentication.

    In your web.config, use impersonation:

    <identity impersonate="tr ue" />

    This should tell ASPNET to use your authentication when it needs a resource.

    It may be that some tasks are still using the IUSR_<machinena me> account.

    Ken
    MVP [ASP.NET]


    "john" <jsharpe@icsyst em.com> wrote in message
    news:uoOY5rlTDH A.3144@tk2msftn gp13.phx.gbl...
    I am trying to use the excel.applicati on object from within a asp.net page.
    I keep getting access denied on the <machinename>/aspnet account. I have
    added this user to every security group on the machine (Adminstrators,
    <machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
    message suggests.

    Why do I keep getting this security error? I am the administrator on the
    box.

    Any help would be appreciated.



    Comment

    • David Pretorius

      #3
      Re: asp.net security

      How does that work in XP

      I remember when i first started playing with vb 6.0, i had to play with
      dcomcnfg. I am trying to run winfax pro and outlook applications

      Regards
      "Juan Ramon Martinez" <jrmartinez@agr oasemex.gob.mx> wrote in message
      news:OojYdS9TDH A.3192@tk2msftn gp13.phx.gbl...[color=blue]
      > When faced with the same problem I simply gave the aspnet account specific
      > permissions to start and run excel. Go to dcomcnfg-> dcom setup->[/color]
      Microsoft[color=blue]
      > Excel -> properties -> Security Tab -> add startup and access permissions
      > for the asp_net account.
      >
      >
      > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox @sympatico.ca> escribió en el
      > mensaje news:eq8#q1lTDH A.2260@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Hey John,
      > >
      > > You might want to try this to see if it gets things moving...
      > >
      > > In IIS, disable anonymous access and enable Windows integrated[/color]
      > authentication.[color=green]
      > >
      > > In your web.config, use impersonation:
      > >
      > > <identity impersonate="tr ue" />
      > >
      > > This should tell ASPNET to use your authentication when it needs a[/color]
      > resource.[color=green]
      > >
      > > It may be that some tasks are still using the IUSR_<machinena me>[/color][/color]
      account.[color=blue][color=green]
      > >
      > > Ken
      > > MVP [ASP.NET]
      > >
      > >
      > > "john" <jsharpe@icsyst em.com> wrote in message
      > > news:uoOY5rlTDH A.3144@tk2msftn gp13.phx.gbl...
      > > I am trying to use the excel.applicati on object from within a asp.net[/color]
      > page.[color=green]
      > > I keep getting access denied on the <machinename>/aspnet account. I[/color][/color]
      have[color=blue][color=green]
      > > added this user to every security group on the machine (Adminstrators,
      > > <machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
      > > message suggests.
      > >
      > > Why do I keep getting this security error? I am the administrator on[/color][/color]
      the[color=blue][color=green]
      > > box.
      > >
      > > Any help would be appreciated.
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...