Subscribe
|
About Me
|
Weekly Podcast
|
Tools List
|
Archives
|
Calendar
|
ASP.NET MVC 1.0 Book
|
ASP.NET 3.5 SP1 Book
Scott Hanselman's ComputerZen.com
Programming Life and the Zen of Computers
Latest Tweet:
« "Kill Bill"/2 = "Wound Bill"
|
Main
|
Recovering passwords from old locked Win... »
ASP.NET WebServices calling Apartment-Threaded COM Components...
Posted 2003-07-17 09:53 AM in
Web Services
|
ASP.NET
|
XML
|
Tools
.
If you've ever had to call a VB6 Component from an ASP.NET (ASMX) XML Web Service, you may (
most probably
) get threading errors. In ASP.NET Apps you can mark
the Page directive with "ASPCompat='true'" but there is not a equivalent tag for Web Services. So, there's a few things you can do:
Put the
VB Component in COM
+ (
Preferred if the COM Object is part of a larger interaction, and you want fine control over your SOAP
)
Figure out a different way to expose the COM Object as a Web Service, perhaps with Classic ASP and
SOAP Toolkit 3.0
(
Quick if you just want to get your component, but has larger design ramifications for big systems
)
Thursday, July 17, 2003 7:10:03 PM (Pacific Standard Time, UTC-08:00)
Hey Scott...presumably you could reflect on the VB COM object and use the code DOM to generate a dynamic assembly that would expose the same interface. Then you could write a delegating wrapper class that created a thread, created the VB COM component on the thread, expose the original interface, and then forwarded all calls on the thread so that apartment model would work ... right? ;-) Well, yeah, by the time you got this all working it would be easier to just rewrite the COM component, but think how much fun it would be!
Jeff Berkowitz
Comments are closed.
Contact
Photo by
GoldenEarth
Email
Learn to Tweet!
Advanced Twitter
My Greatest Hits
Sponsors
Ads by The Lounge
Hosting By
Silverlight Store
Hot Topics
Tags
Africa (94)
Agile (5)
Arcade (8)
ASP.NET (664)
ASP.NET Ajax (9)
ASP.NET Dynamic Data (24)
ASP.NET MVC (89)
BabySmash (18)
Back to Basics (19)
BCL (2)
Bugs (169)
Channel9 (15)
Cloud (1)
CodeRush (21)
Coding4Fun (40)
Corillian (26)
DasBlog (131)
Deployment (2)
DevCenter (1)
DevDays (5)
Diabetes (61)
DLR (6)
eFinance (14)
Gaming (115)
Home Server (9)
HttpHandler (16)
HttpModule (21)
Identity (3)
IIS (18)
INETA (8)
Internationalization (44)
IOC (1)
Javascript (72)
Learning .NET (121)
LINQ (17)
Longhorn (11)
Microsoft (88)
Mix (18)
Mobile (2)
Mono (3)
Movies (44)
MSBuild (1)
MSDN (6)
Musings (508)
Nant (39)
NCover (12)
NDC (11)
NDoc (6)
NerdDinner (4)
NotNorthwind (2)
NUnit (47)
OData (2)
Open Source (32)
PDC (68)
Personal (3)
PHP (3)
Podcast (224)
PowerShell (63)
Programming (260)
Python (4)
Remote Work (12)
Reviews (151)
Ruby (62)
Screencasts (25)
Silverlight (41)
Source Code (69)
Speaking (197)
Subversion (15)
TechEd (128)
Thabo (3)
Tools (433)
VB (8)
ViewState (19)
Vista (2)
VS2010 (8)
Watir (21)
Web Services (434)
Win7 (21)
Windows Client (59)
WinPhone (1)
WPF (42)
XML (292)
XmlSerializer (32)
Zenzo (38)
Calendar
<
March 2010
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
Posts in timeline
Posts in Large Calendar
Archives
March, 2010 (10)
February, 2010 (17)
January, 2010 (13)
December, 2009 (13)
November, 2009 (7)
October, 2009 (19)
September, 2009 (11)
August, 2009 (12)
July, 2009 (21)
June, 2009 (26)
May, 2009 (16)
April, 2009 (13)
March, 2009 (17)
February, 2009 (17)
January, 2009 (18)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)
Google Ads