AspCompat='True'

Just a reminder. If you're writing an ASP.net page that invokes a RCW (runtime callable wrapper) to a COM component... you may need to include the attribute 'ASPCompat=True' in your page directive.

In particular, if you have this situation:

then it may be because ASP uses a STA (single-threaded-apartment) threading model, which the COM component may rely upon when returning calls.

The way to get the component to behave in ASP.net is to include that attribute, 'ASPCompat=True' in the calling page's page directive.

You already knew that right?

Well, should you accidentally forget... the chances of working it out on your own are very slim indeed, even with Google's help.

(end of comment)

nothing to see here... just move along

 

I'm currently writing a book about how to build your first product. If you want to build your first product, please sign up to be notified when the book is available.

(By the way, I read every comment and often respond.)

Your comment, please?

Your Name
Your Url (optional)
Note: I may edit, reuse or delete your comment. Don't be mean.