saving XmlDocument using Windows Authentication

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

  1. #1

    Default saving XmlDocument using Windows Authentication

    hello.
    We have a web application that has identity impersonation
    set to true in the web.config file.
    We have a share on a server that we want the application
    to write a file to. We have permissions on the share set
    for "Everyone" to have full control.
    When the XmlDocument.Save(\\myserver\myshare\myfile) line
    runs, it gives an access denied error.
    The funny thing is that if I run the web page from one of
    the servers, which writes to the share on another server,
    it works. But when I run it from my local machine, it
    errors. BOTH USING THE SAME DOMAIN LOGIN. I'm even writing
    out the current identity information in order to verify
    that the page is running under the same windows account in
    both instances. ????

    Any help would be great!

    Thanks, Mark
    maxmann Guest

  2. Similar Questions and Discussions

    1. ASP.NET Authentication and Windows Authentication
      Hello, I'm developing a web application that will run on an Intranet. I'll use Windows Authentication, so users can access the application...
    2. Saving a PDF from Windows and viewing it on a PC.
      We export several InDesign documents as PDFs from Windows XP and Mac 10.3. Some PDF icons show the correct icon and work fine. Making no changes on...
    3. Authentication under Windows?
      Manual quote: "The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI...
    4. Forms authentication with Windows authentication
      Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication...
    5. loading xmlcontent from one xmldocument into another xmldocument
      Hi, I get xml data into one xmldocument and other xml data into a second xmldocument. Let's say the structure of the first is <Table>...
  3. #2

    Default Re: saving XmlDocument using Windows Authentication

    On Tue, 5 Oct 2004 16:11:37 -0700, "maxmann" <anonymous@discussions.microsoft.com> wrote:

    ¤ hello.
    ¤ We have a web application that has identity impersonation
    ¤ set to true in the web.config file.
    ¤ We have a share on a server that we want the application
    ¤ to write a file to. We have permissions on the share set
    ¤ for "Everyone" to have full control.
    ¤ When the XmlDocument.Save(\\myserver\myshare\myfile) line
    ¤ runs, it gives an access denied error.
    ¤ The funny thing is that if I run the web page from one of
    ¤ the servers, which writes to the share on another server,
    ¤ it works. But when I run it from my local machine, it
    ¤ errors. BOTH USING THE SAME DOMAIN LOGIN. I'm even writing
    ¤ out the current identity information in order to verify
    ¤ that the page is running under the same windows account in
    ¤ both instances. ????

    You said you have permissions set on the share. Does this mean you also have the appropriate access
    rights set by the ACL on the underlying folder or files?

    Just to verify, the account you're using is a domain account and not a local account on the web
    server? The domain account must of course have access to both servers. If it's a local account then
    there must be a mirrored account (with the same password) on the server directed to by the UNC
    share.


    Paul ~~~ [email]pclement@ameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

  4. #3

    Default Re: saving XmlDocument using Windows Authentication

    Yes, the permissions are set to Everyone on both the share
    and the underlying folder for full control.
    We're not using a single account for impersonation. We're
    just setting impersonation=true, which means that it uses
    the login of whoever is accessing the page on our domain.
    And if Everyone has permissions, then it seems that the
    file should be able to be created by everyone. right?
    So yeah, none of this is local accounts.

    >-----Original Message-----
    >On Tue, 5 Oct 2004 16:11:37 -0700, "maxmann"
    <anonymous@discussions.microsoft.com> wrote:
    >
    >¤ hello.
    >¤ We have a web application that has identity
    impersonation
    >¤ set to true in the web.config file.
    >¤ We have a share on a server that we want the
    application
    >¤ to write a file to. We have permissions on the share
    set
    >¤ for "Everyone" to have full control.
    >¤ When the XmlDocument.Save(\\myserver\myshare\myfile)
    line
    >¤ runs, it gives an access denied error.
    >¤ The funny thing is that if I run the web page from one
    of
    >¤ the servers, which writes to the share on another
    server,
    >¤ it works. But when I run it from my local machine, it
    >¤ errors. BOTH USING THE SAME DOMAIN LOGIN. I'm even
    writing
    >¤ out the current identity information in order to verify
    >¤ that the page is running under the same windows account
    in
    >¤ both instances. ????
    >
    >You said you have permissions set on the share. Does this
    mean you also have the appropriate access
    >rights set by the ACL on the underlying folder or files?
    >
    >Just to verify, the account you're using is a domain
    account and not a local account on the web
    >server? The domain account must of course have access to
    both servers. If it's a local account then
    >there must be a mirrored account (with the same password)
    on the server directed to by the UNC
    >share.
    >
    >
    >Paul ~~~ [email]pclement@ameritech.net[/email]
    >Microsoft MVP (Visual Basic)
    >.
    >
    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