title: EnvDTE iterate through subfolders within solution
body: <p>Have a below structure within VS Solution:</p>
  
  <p>Now, I want to get reference to "Catalogs" folder and store it in variable:</p>
  
  <pre><code>        //Solution_Name
          //    ConfigurationObjects
          //        Catalogs
          //        Documents
  
      foreach (Project item1 in AttachedSolution.Projects)
      {
          if (item1.Kind == ProjectKinds.vsProjectKindSolutionFolder)
          {
              if (item1.Name == "ConfigurationObjects")
              {
                  SolutionFolder catalogBaseFolder = (SolutionFolder)item1.Object;
  
                  foreach (ProjectItem item2 in item1.ProjectItems)
                  {
                      if ( item2.Name == "Catalogs")
                      {
                          this.CatalogObjectsFolder = (SolutionFolder)item2;
                      // raises error here: Unable to cast COM object of type                   
                      //'System.__ComObject' 
                      //to interface type 'EnvDTE80.SolutionFolder'.
                      };
                  };
              };
          };
      };
  </code></pre>
  
  <p>Thanks for help.</p>