How to allow my Web Application access a network resource?

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

  1. #1

    Default How to allow my Web Application access a network resource?

    All,

    I have an ASP.NET application (with FormAuthentication but it
    shouldn't matter because I may allow unauthenticated user also).

    I want to read a file on a network drive so user can download the
    file.

    What is the best way to achieve this?

    Thanks

    John
    Q. John Chen Guest

  2. Similar Questions and Discussions

    1. Windows authentication with impersonation - network resource access fails
      Hi, I have a question regd. Windows authentication and network file access. My asp.net application doesn't use any of the .NET's authentication...
    2. attachments from network resource in an aspx web mail application
      Hi all There seem to be a problem when i attempt to add attachment from the client machine to the mail message sent from the web aspx server...
    3. can't access ASP web application from another PC in same network
      Hello, all My asp web application work perfectly at web server machine(localhost), but when I try it from another pc, I can see default.html, but...
    4. ASP.NET application cannot access network drive
      My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone...
    5. ASP.NET application cant access network drive
      My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone is...
  3. #2

    Default Re: How to allow my Web Application access a network resource?

    well the "best" way could be debated about here....here are most of your options

    add this to web.config (look up asp.net impersonation for more details)

    <identity impersonate="true" userName="DOMAIN\userwithpermissionstoaccessfile" password="blahblah" />

    or you can impersonate via code from this article (look at second option)
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;306158[/url]

    or, if IIS runs under a domain account that has permissions you can just do this, and avoid the cleartext password issue

    <identity impersonate="true" />

    Good luck!
    --Michael

    "Q. John Chen" <qjchen@email.com> wrote in message news:98456896.0408021259.3ee79670@posting.google.c om...
    > All,
    >
    > I have an ASP.NET application (with FormAuthentication but it
    > shouldn't matter because I may allow unauthenticated user also).
    >
    > I want to read a file on a network drive so user can download the
    > file.
    >
    > What is the best way to achieve this?
    >
    > Thanks
    >
    > John
    Raterus 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