Hi All,
I am trying to upload a file from one machine to other machine across the
network...
then I am using system.io.file library and using saveas method ....
however ... I got the following error...
Description: An unhanded exception occurred during the execution of the current web request. Please review the stack trace for more
information about
the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path "d:\somefolder\hello.txt" is denied.
The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is
'{machinename}
\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click
"Add" to add the
"{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.
Question 1
machine A (Source) has already install the .Net FrameWork SDK ... Do I need to install the .Net FrameWork SDK in Machine B
(destination) too ?
since the "Asp.net account" appear on the file security tab only when you have installed the .Net FrameWork SDK ?
Question 2
The old asp technique is using the window authorization ... but asp.net seems to be separate with the window authorization and have
their own...
just like in webform1.config file, you may set this <authentication mode="Windows" />
Thanks !
Regards,
Charles.
This e-mail (and any attachment (s)) is confidential and for use only by
intended recipient (s). Access by others is unauthorised. Its content
should not be relied upon and no liability or responsibility is accepted by
us, without our subsequent written confirmation of its content. If you are
not an intended recipient, please notify us promptly and delete all copies
and note that any disclosure, copying, distribution or any action taken or
omitted to be taken in reliance on the information it contains is
prohibited and may be unlawful. Further information on Guoco Group is
available from http://www.guoco.com