Thanks ...
I thought so, what do I use instead of aspcompat, if I want to use the
command (VB.NET) ?
....
dim conn
....
conn = server.CreateObject("ADODB.Connection")
....
when I run the above, computer shout that I should declare :
<%@ page aspcompat = "true" %>
the above line, as you have said, doesn't work for web-service.
Thanks
"Fredrik Normén NSQUARED" <(E-Mail Removed)> wrote in message
news:1bcd01c3841a$b42007c0$(E-Mail Removed)...
The AspCompat directive (used by Web applications when
they call apartment threaded COM objects) is not
available to Web services.
/Fredrik Normén NSQUARED2
>-----Original Message-----
>You declare the AspCompat attribute in the <%@Page> of
>you ASP.Net page. But what I know you need only to set
>this attribute if you use COM/COM+ calls within an
>ASP.Net page.
>
>You can find an example on this site:
>
>http://www.dotnetjunkies.com/quickst...plus/doc/webse
r
>vicesintro.aspx
>
>/Fredrik Normén NSQUARED2
>
>>-----Original Message-----
>>I am using webservice with adonet.
>>
>>I need to declare aspcompat = "true", but I don't know
>where, and what is
>>the syntax for that.
>>
>>I need a tiny sample of use of ADO.NET in web-services,
>please.
>>
>>Thanks 
>>
>>
>>
>>
>>.
>>
>.
>