I am receiving an ArgumentException when invoking the index action of one of my controllers and I am not sure why. The error message is the following:
Server Error in '/' Application.
Illegal characters in path.
[ArgumentException: Illegal characters in path.]
System.IO.Path.CheckInvalidPathChars(String path) +126
System.IO.Path.Combine(String path1, String path2) +38
I am not sure why this is happening. here is the code from the controller:
public ActionResult Index()
{
var glaccounts = db.GLAccounts.ToString();
return View(glaccounts);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…