.NET and Office XP but Access Denied

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default .NET and Office XP but Access Denied

    Dear all,

    Platform: Windows 2000 server
    ASP.NET (using VB.NET 2003)
    Office XP

    When I reference to Word 10.0 Object Library (C:\Program
    Files\Microsoft Office\Office 10\MSWORD.OLB), then I just
    wirte:

    Dim WordApp as New Word.Application
    And I got error "System.UnauthorizedAccessException:
    Access is Denied"
    When I change <identity impersonate="false"> to <identity
    impersonate="true" username="administrator" password="">
    in web.config, problem solves, but I don't want to change
    this config because I don't know administrator password in
    production server. Any method to use object library but
    need not change settings?

    Thanks in advanced

    Philip

    Philip Lee Guest

  2. Similar Questions and Discussions

    1. One With Access Denied, Another With Access, But NotFull
      I'm suddenly having access denied/permission problems through Contribute on every page after the templates and their related pages were updated with...
    2. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    3. Access denied when creating Access application object
      In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the...
    4. problems with ASP/Access from Office XP?
      I've got a few sites that I've built and am populating with data from Access 97. My server admin wants to install Office XP Dev Edition for...
    5. access denied on data access pages
      I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got...
  3. #2

    Default Re: .NET and Office XP but Access Denied

    Philip,

    The ASPNET user does not have permission to use the Word. You will need to:
    1) Allow ASPNET to launch word
    2) Create a user on the box with permission to open word and impersonate hat
    user (Recommended)

    Other solutions will follow I'm sure ;)

    Tom
    --
    ==========================================
    = Tom Vande Stouwe MCSD.net, MCAD.net, MCP
    = 45Wallstreet.com ([url]www.45wallstreet.com[/url])
    = (803)-345-5001
    ==========================================
    = If you are not making any mistakes
    ..= ..you are not trying hard enough.
    ==========================================
    This is the spam catching address: [email]gotcha@conpro.net[/email] do not use this address
    or you will be blocked at the server ;)

    "Philip Lee" <leefailam@hotmail.com> wrote in message
    news:051101c370fb$404b6150$a401280a@phx.gbl...
    > Dear all,
    >
    > Platform: Windows 2000 server
    > ASP.NET (using VB.NET 2003)
    > Office XP
    >
    > When I reference to Word 10.0 Object Library (C:\Program
    > Files\Microsoft Office\Office 10\MSWORD.OLB), then I just
    > wirte:
    >
    > Dim WordApp as New Word.Application
    > And I got error "System.UnauthorizedAccessException:
    > Access is Denied"
    > When I change <identity impersonate="false"> to <identity
    > impersonate="true" username="administrator" password="">
    > in web.config, problem solves, but I don't want to change
    > this config because I don't know administrator password in
    > production server. Any method to use object library but
    > need not change settings?
    >
    > Thanks in advanced
    >
    > Philip
    >

    Tom Vande Stouwe MCSD.net Guest

  4. #3

    Default Re: .NET and Office XP but Access Denied

    Thank you very much.

    But I would like to ask what permission should I grant?
    ASPNET user belonged to USERS group already and other
    USERS group user can launch word. I just give ASPNET file
    permission at Office folder or modify some settings in
    local security policy? I don't want to grant administrator
    rights.

    Thanks again

    Philip
    >-----Original Message-----
    >Philip,
    >
    >The ASPNET user does not have permission to use the Word.
    You will need to:
    >1) Allow ASPNET to launch word
    >2) Create a user on the box with permission to open word
    and impersonate hat
    >user (Recommended)
    >
    >Other solutions will follow I'm sure ;)
    >
    >Tom
    >--
    >==========================================
    >= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
    >= 45Wallstreet.com ([url]www.45wallstreet.com[/url])
    >= (803)-345-5001
    >==========================================
    >= If you are not making any mistakes
    >..= ..you are not trying hard enough.
    >==========================================
    >This is the spam catching address: [email]gotcha@conpro.net[/email] do
    not use this address
    >or you will be blocked at the server ;)
    >
    >"Philip Lee" <leefailam@hotmail.com> wrote in message
    >news:051101c370fb$404b6150$a401280a@phx.gbl...
    >> Dear all,
    >>
    >> Platform: Windows 2000 server
    >> ASP.NET (using VB.NET 2003)
    >> Office XP
    >>
    >> When I reference to Word 10.0 Object Library (C:\Program
    >> Files\Microsoft Office\Office 10\MSWORD.OLB), then I
    just
    >> wirte:
    >>
    >> Dim WordApp as New Word.Application
    >> And I got error "System.UnauthorizedAccessException:
    >> Access is Denied"
    >> When I change <identity impersonate="false"> to
    <identity
    >> impersonate="true" username="administrator" password="">
    >> in web.config, problem solves, but I don't want to
    change
    >> this config because I don't know administrator password
    in
    >> production server. Any method to use object library but
    >> need not change settings?
    >>
    >> Thanks in advanced
    >>
    >> Philip
    >>
    >
    >
    >.
    >
    Philip Lee Guest

Posting Permissions

  • You may not post new threads
  • You may 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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139