title: Illegal characters in path when calling the index view from my controller
body: <p>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: </p>
  
  <p>Server Error in '/' Application.</p>
  
  <p>Illegal characters in path.</p>
  
  <pre><code>[ArgumentException: Illegal characters in path.]
   System.IO.Path.CheckInvalidPathChars(String path) +126
   System.IO.Path.Combine(String path1, String path2) +38
  </code></pre>
  
  <p>I am not sure why this is happening. here is the code from the controller:</p>
  
  <pre><code>    public ActionResult Index()
      {
          var glaccounts = db.GLAccounts.ToString();
          return View(glaccounts);
      }
  </code></pre>