1

In my application (c# with mvc4) I have following error when trying to build the project so please any one help me to solve the problem.

Error 1 Files has invalid value "C:\Users\Sample\Documents\Solution\Solution\project folder\bin\Debug/_HomePage.cshtml", 32, 11, true);". Illegal characters in path.

5
  • This is not i am mentioning Error shown like this and also this is not my current working solution This is the location of my previous solution Commented Feb 3, 2017 at 10:54
  • 1
    @Abi, delete bin and obj folders from solution and rebuild project Commented Feb 3, 2017 at 10:56
  • / is not a valid path character. Have you modified your project file by hand perhaps? Search the entire solution for _HomePage.cshtml with the *.* file filter. Is there a result with / prepended or generally funny? Commented Feb 3, 2017 at 11:49
  • How was _HomePage.cshtml created? The convention is that only layout pages start with _. Did you use a custom template or generator perhaps? There may be a problem with the project or generator template Commented Feb 3, 2017 at 11:51
  • This is the partial page that why I created like this way Commented Feb 3, 2017 at 11:53

1 Answer 1

1

Pleasse Try "Clean Solution" and "Build Solution"/"Rebuild solution".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.