adonet with web-service

  • Thread starter Thread starter Mr. x
  • Start date Start date
M

Mr. x

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 :)
 
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 :)

The AspCompat directive (used by Web applications when
they call apartment threaded COM objects) is not
available to Web services.

/Fredrik Normén NSQUARED2
 
If you use the ADO componentes you must have
aspcompat="true", but why don't you simply use ADO.Net
instead? If you set AspCompat to true, your asp.net
application will run in singel threaded mode and this will
affect the performance badly.

/Fredrik Normén NSQUARED2
 
Can you give me a little sample for using ado.net in webservice, please.

Thanks :)

If you use the ADO componentes you must have
aspcompat="true", but why don't you simply use ADO.Net
instead? If you set AspCompat to true, your asp.net
application will run in singel threaded mode and this will
affect the performance badly.

/Fredrik Normén NSQUARED2
 
Back
Top