title: Outlook COMException
body: <p>System.Runtime.InteropServices.COMException  ..Your server administrator has limited the number of items you can open simultaneously...</p>
  
  <p>at Microsoft.Office.Interop.Outlook._AppointmentItem.get_UserProperties()</p>
  
  <pre><code>        var calendar = outlookApplication.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
  
          if (calendar == null || calendar.Items == null)
          {
              return null;
          }
  
          var calendarItems = calendar.Items;
  
          if (calendarItems != null &amp;&amp; calendarItems.Count &gt; 0)
          {
              // Dont convert to LINQ or foreach please -&gt; may cause Outlook memory leaks. 
              for (int counter = 1; counter &lt;= calendarItems.Count; counter++)
              {
                  var appointment = calendarItems[counter] as AppointmentItem;
  
                  if (appointment != null)
                  {
                      var userProperty = appointment.UserProperties.Find("myInformation");
  
                      if (userProperty != null &amp;&amp; userProperty.Value == myValue)
                      {
                          return appointment ;
                      }
                  }
              }
          }
  </code></pre>
  
  <p>Maybe its appointment.UserProperties.Find("myInformation") cause COMException?</p>