I'm trying to find sample code and IIS configuration information to create a file repository on an IIS server and downloading files in a directory after the user is authenticated in a C# application.
(sorry for some reason its not letting me use the code tags)
WebClient wbcWeb = new WebClient();
Uri webLocation = new Uri("http://filedownload.thedomain.com
NetworkCredential nwCredendials = new NetworkCredential(@"lUpdat
wbcWeb.Credentials = nwCredendials;
I'm not sure if the code is good/bad but I'm thinking it's probably my web.config. Does anyone have a sample web.config handy for basic authentication to be used in the fashion. In addition, how about some sample code in C# for downloading the file?