By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,966 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,966 IT Pros & Developers. It's quick & easy.

Internal Server Error (500) in Upload File method

P: n/a
I am using a WebClient.Upload File method on the Client side and, to accept
posted files on the Server side, I am using an ASP.NET page with the
following code:

void Page_Load(object sender, EventArgs e)
foreach(string f in Request.Files.AllKeys)
HttpPostedFile file = Request.Files[f];
file.SaveAs("c:\\WUTemp\\" + file.FileName);

When Client and Server side are on the same machine (localhost/
everything runs ok but when using a different server and call it from the
WebClient.UploadFile method:

it returns the error: "(500) Internal Server Error". I've already tried to
solve this problem with all the instructions I found in Microsoft and MSDN
but with no results.
Is there any way to have a more detailed error when using 'catch
(System.Exception ex)' ?
I have no idea what to try now and I would appreciate if someone could help
me to follow in the right direction.
Thanks for your help

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Today i've been looking also to '' and tried all their
instructions without any positive result.
I'm trying to solve this for some days now and I don't know what else to do...
Thanks for any help.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.