Posted on: 6/19/2014 10:27:15 PM | Views : 604

Hi,
I am trying to upload an image to two different servers in my network.
But I keep getting an error; The filename, directory name, or volume label syntax is incorrect.
Web.Config <add key="svr1" value="\\\\SRV1\\c$\\inetpub\\webdirectory\\documents\\photos\\" /> <add key="svr2" value="\\\\SRV1\\c$\\inetpub\\webdirectory\\documents\\photos\\" /> Upload Button string svrPath1 = ConfigurationManager.AppSettings["svr1"]; string svrPath2 = ConfigurationManager.AppSettings["svr2"]; fup.SaveAs(svrPath1 + fup.FileName); fup.SaveAs(svrPath12 + fup.FileName);

Go to the complete details ...