Q:
What do you know about this error?

It happens sometimes after clicking “Start Debuging” triangle button on VSTA IDE window.
A:
Add InitializeLifetimeService() method to the class that implements IExternalDebugHost as shown below.
==
ShapeAppMacroRecordingCSharp sample should add InitializeLifetimeService() method with infinite timeout to the class VstaDesignTimeIntegration as shown below.
/// <summary>
/// Provides Designtime VSTA Integration for ShapeAppCSharp
/// </summary>
internal sealed class VstaDesignTimeIntegration : MarshalByRefObject, IExternalDebugHost
{
#region MarshalByRefObject
public override object InitializeLifetimeService()
{
return null; // Allows remoting from VS as long as we live.
}
#endregion MarshalByRefObject public override object InitializeLifetimeService()
Posted
Jun 03 2009, 01:12 PM
by
BillL