Ask a Question related to ASP.NET Security, Design and Development.
-
Q. John Chen #1
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
-
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... -
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... -
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... -
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... -
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... -
Raterus #2
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
>
> JohnRaterus Guest



Reply With Quote

