I am getting the following exception while uploading a file using HtmlInputFile.
System.UnauthorizedAccessException: Access to the path "C:\personal\site.gif" is denied.
I am using the following code to upload a file in the button click event.
where txtLogo has been declared as:
protected System.Web.UI.HtmlControls.HtmlInputFile txtLogo;
I guess it has to do something with secutiry persmission to write to some directory but I do not how do I go about doing it. May be I have to impersonate some user account but I am not sure. thanks in advance.