brayant
Feb 2nd, 2007, 01:50 AM
I have problem with the upload the file to the diffrent server with the web application server. How to write the File1.PostedFile.SaveAs()????? to located to other server.
IF the normal case for upload is to own server same with the web application the code is below
//string FilePath="c:\\Inetpub\\wwwroot\\Nanya\\Upload\\";
File1.PostedFile.SaveAs(FilePath+"KTCMA\\"+myFile);
BUT for my case i want to upload my file to the server that not same as my web application that means my web application is at Server A but i want upload my file to Server B from Server A
and i write the code below
string FilePath="\\Server B\\C$\\Inetpub\\wwwroot\\Nanya\\Upload\\";
File1.PostedFile.SaveAs(FilePath+"KTCMA\\"+myFile);
and the error is "Cant find the part of C:\ServerB\C$\Inetpub\wwwroot\Nanya\Upload\"
Any one can help me urgent??
IF the normal case for upload is to own server same with the web application the code is below
//string FilePath="c:\\Inetpub\\wwwroot\\Nanya\\Upload\\";
File1.PostedFile.SaveAs(FilePath+"KTCMA\\"+myFile);
BUT for my case i want to upload my file to the server that not same as my web application that means my web application is at Server A but i want upload my file to Server B from Server A
and i write the code below
string FilePath="\\Server B\\C$\\Inetpub\\wwwroot\\Nanya\\Upload\\";
File1.PostedFile.SaveAs(FilePath+"KTCMA\\"+myFile);
and the error is "Cant find the part of C:\ServerB\C$\Inetpub\wwwroot\Nanya\Upload\"
Any one can help me urgent??