Scott Woodgate's OutBursts

Debugging adapters hints

Seeing as though I just worked through this one-off. Adapter don't need to be in the GAC for the run-time to find them (we do a look-up on the registry key). Adapters DO need to be in the GAC for VS to find them when debugging so make sure you “GAC” them before attaching to the BTSNTSvc.exe to debug them. If you want to debug the design-time then attach to VS.NET (yes VS.NET).
Published Wednesday, July 14, 2004 12:04 PM by scottwoo

Comments

 

ds said:

I have a question about debugging the initialization of Isolated Receive adapters. If I am using a custom HTTP adapter how does an instance of the adapter get created and initialized?

If you look at the sample HTTP Adapter that ships with the SDK the HTTPReceive.aspx.cs file contains the following line of code.
- HttpReceiveAdapter httpAdapter = (HttpReceiveAdapter)context.Application["HttpReceiveAdapter"];

So at this point in the code an instance of the HTTP adapter must have been created initialized and stored on the Application context. Is there a configuration file that controls this process? What is the naming convention for the key? Is there any situation where the httpAdapter variable will be undefined after the call to context?
August 9, 2004 8:31 AM
 

ds said:

I have a question about debugging the initialization of Isolated Receive adapters. If I am using a custom HTTP adapter how does an instance of the adapter get created and initialized?

If you look at the sample HTTP Adapter that ships with the SDK the HTTPReceive.aspx.cs file contains the following line of code.
- HttpReceiveAdapter httpAdapter = (HttpReceiveAdapter)context.Application["HttpReceiveAdapter"];

So at this point in the code an instance of the HTTP adapter must have been created initialized and stored on the Application context. Is there a configuration file that controls this process? What is the naming convention for the key? Is there any situation where the httpAdapter variable will be undefined after the call to context?
August 9, 2004 8:42 AM
New Comments to this post are disabled

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker