PC Review


Reply
Thread Tools Rate Thread

adonet with web-service

 
 
Mr. x
Guest
Posts: n/a
 
      26th Sep 2003
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




 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Fredrik_Norm=E9n_NSQUARED?=
Guest
Posts: n/a
 
      26th Sep 2003
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...lus/doc/webser
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
>
>
>
>
>.
>

 
Reply With Quote
 
 
 
 
Mr. x
Guest
Posts: n/a
 
      26th Sep 2003
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
>>
>>
>>
>>
>>.
>>

>.
>



 
Reply With Quote
 
=?iso-8859-1?Q?Fredrik_Norm=E9n_NSQUARED?=
Guest
Posts: n/a
 
      26th Sep 2003
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

>-----Original Message-----
>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
>>>
>>>
>>>
>>>
>>>.
>>>

>>.
>>

>
>
>.
>

 
Reply With Quote
 
Mr. x
Guest
Posts: n/a
 
      26th Sep 2003
Can you give me a little sample for using ado.net in webservice, please.

Thanks

"Fredrik Normén NSQUARED" <(E-Mail Removed)> wrote in message
news:12cd101c38444$12b54ce0$(E-Mail Removed)...
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

>-----Original Message-----
>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
>>>
>>>
>>>
>>>
>>>.
>>>

>>.
>>

>
>
>.
>



 
Reply With Quote
 
=?iso-8859-1?Q?Fredrik_Norm=E9n_NSQUARED?=
Guest
Posts: n/a
 
      27th Sep 2003
On this site, you can read about ADO.Net and how to use it.

http://www.dotnetjunkies.com/quickst.../doc/adoplus/a
doplusoverview.aspx

/Fredrik Normén NSQUARED2


>-----Original Message-----
>Can you give me a little sample for using ado.net in

webservice, please.
>
>Thanks
>
>"Fredrik Normén NSQUARED" <(E-Mail Removed)> wrote in

message
>news:12cd101c38444$12b54ce0$(E-Mail Removed)...
>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
>
>>-----Original Message-----
>>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...pplus/doc/webs

e
>>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
>>>>
>>>>
>>>>
>>>>
>>>>.
>>>>
>>>.
>>>

>>
>>
>>.
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Run Big SQL File in ADONET =?Utf-8?B?Sm9obiBDcm9zcyBbTVNGVF0=?= Microsoft ADO .NET 2 6th Mar 2004 12:51 AM
format ? in ADONET? Grant Microsoft ADO .NET 0 10th Nov 2003 04:12 PM
truble!Oracle with adonet tiger liu Microsoft ADO .NET 4 16th Oct 2003 03:45 AM
some clarifications about adonet and access database Mr. x Microsoft ADO .NET 1 27th Sep 2003 05:50 PM
AdoNet quivalent to ADO Fields Optimize property Thomas Paquette Microsoft ADO .NET 0 11th Aug 2003 04:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:24 PM.