This solution works. You probably won't encounter this error when working with windows projects. But when you open large Web application project (about 1300 code files) on slow computer (or Virtual PC) the exception may appear. In our case, loading of solution took too long. So commands after DTE.Solution.Open caused the 'Call was Rejected By Callee' exception.
For anyone interested, here is VB
Last modified by Peter Macej on 10/22/2007 1:52:58 PM