Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi to all,
Here i deploy my project in my local IIS.When i click for file upload i got below error.

{"success":false,"Error":"File Upload failed :Could not find a part of the path \u0027F:\\troyerp\\troyerp\\troyerp\\App_Data\\ExcelFiles\\testbranchmodule in host.xlsx\u0027."}

In coding file path is in my controller with in form tag:
C#
if (fileExtension == ".xls" || fileExtension == ".xlsx")
               {
                   string fileLocation = string.Format("{0}/{1}, Server.MapPath("~/App_Data/ExcelFiles"), fileName);


how to i resolve for this task.
Posted
Updated 5-Nov-14 0:12am
v2

1 solution

can u share the code with View and complete controller actions ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900