public void uploadnow(HttpPostedFileWrapper upload)
{
if (upload != null)
{
string ImageName = upload.FileName;
string path = System.IO.Path.Combine(Server.MapPath("~/Uploads/Admin/"), ImageName);
upload.SaveAs(path);
}
}


Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 16, 2015, 1:12 AM EDT
Shuvojit HalderRank #2,827 · 503 reputationPosted May 16, 2015, 1:29 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 16, 2015, 3:03 AM EDT
Shuvojit HalderRank #2,827 · 503 reputationPosted May 16, 2015, 3:19 AM EDT
Server Error in '/' Application.
Runtime Error
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration><!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 16, 2015, 3:23 AM EDT
That's not helpful still, In your web.config file, turn off customError to see the real error generated.