Abinash Behura

Abinash Behura

  • NA
  • 21
  • 3.6k

Error: Could not find a part of the path

Feb 20 2016 1:34 AM

Could not find a part of the path 'C:\HostingSpaces\Admin1\admin.ASDFGH.in\wwwroot\Images\Documents\'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\HostingSpaces\Admin1\admin.

ASDFGH

.in\wwwroot\Images\Documents\'.

Source Error:

Line 59:         // make sure your sheet name is correct, here sheet name is sheet1, so you can change your sheet name if have Line 60:         string path = string.Concat(Server.MapPath("~/Images/Documents/" + FileUpload1.FileName)); Line 61:         FileUpload1.SaveAs(path); Line 62:         string myexceldataquery = "select * from [OR02$]"; Line 63: 

Answers (2)