Tagged: asp .net

copy a file into another folder asp .net 0

copy a file into another folder asp .net

copy a file into another folder asp .net string targetFolder = Server.MapPath(“~/PDF”); System.IO.FileInfo fi = new System.IO.FileInfo(Server.MapPath(“~/Bookmark.pdf”)); fi.CopyTo(System.IO.Path.Combine(targetFolder, fi.Name), true);

Prevent HttpContext Current to be null WCF service NET 0

Prevent HttpContext Current to be null WCF service NET

Prevent HttpContext Current to be null WCF service NET add following code in web.config file….. <configuration> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled=”true” /> </system.serviceModel> </configuration>