It's probably a security issue.
The ASPNET user account must have write permission to the folder.
Or you can use impersonation to have ASP.NET run under a different user
account that does have the necessary permission.
For example, you can add a line similar to this to your web.config file:
<identity impersonate="true" userName="domain\MyUserName">
password="password"/>
Here's more info on impersonation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp
And here's another article that may help:
http://SteveOrr.net/articles/EasyUploads.aspx --
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net [quoted text, click to view] <anonymous@discussions.microsoft.com> wrote in message
news:05ce01c53691$05e811e0$a501280a@phx.gbl...
> Hello there,
> Yes what I mean by localhost is my virtual server which
> is located at C:\Inetpub\wwwroot etc. But once I upload
> my file to the particular path its always error.
> any idea?
>
>
>>-----Original Message-----
>>Hi,
>>
>>what do you mean by localhost. That's a virtual
> directory, mapping to some
>>real one, e.g. http://localhost commonly maps to
> C:\Inetpub\wwwroot etc.
>>Just make sure wherever you are uploading, ASP .NET has
> relevant permission
>>to do so.
>>
>>Let me know if you need anything else.
>>
>>Thanks
>>
>>Joyjit
>>
>>
>>"jackson" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:05b001c5368a$ed453650$a501280a@phx.gbl...
>>> Hi all,
>>> Im having problem when uploading file to localhost.
>>> but I can upload to drive c:
>>> any idea
>>>
>>> thanks
>>
>>
>>.
>>