By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,179 Members | 2,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,179 IT Pros & Developers. It's quick & easy.

Consumming a WebService in the same time

P: n/a
Hi,

I consume my webservice with the IE browser and all is ok when I call
it with one browser. But when I call it a the same time with two
browsers, the IE page tells me that the apllication server is not
available!!

Any idea ?
Sep 29 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
And is your webservice installed in IIS ???? ( i guess not )

Cause if you are running it from the IDE it runs in Cassini and Cassini
doesn`t allow multiple connections or connections from other computers
so install your service in IIS and everything should work fine

running it from a non virtual directory in the IDE = Cassini

regards

hth

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Hi,

I consume my webservice with the IE browser and all is ok when I call it
with one browser. But when I call it a the same time with two browsers,
the IE page tells me that the apllication server is not available!!

Any idea ?


Oct 5 '08 #2

P: n/a
Michel Posseth [MCP] avait écrit le 05.10.2008 :
And is your webservice installed in IIS ???? ( i guess not )

Cause if you are running it from the IDE it runs in Cassini and Cassini
doesn`t allow multiple connections or connections from other computers
so install your service in IIS and everything should work fine

running it from a non virtual directory in the IDE = Cassini

regards

hth

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>Hi,

I consume my webservice with the IE browser and all is ok when I call it
with one browser. But when I call it a the same time with two browsers, the
IE page tells me that the apllication server is not available!!

Any idea ?

Yes my webservice is installed in IIS 6.0

But is not possible to execute the webservice with two browsers at the
same time, the server becomes unavailable

In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID*: 888) stopped unexpectedly

Any idea ?
Oct 8 '08 #3

P: n/a

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Michel Posseth [MCP] avait écrit le 05.10.2008 :
>And is your webservice installed in IIS ???? ( i guess not )

Cause if you are running it from the IDE it runs in Cassini and Cassini
doesn`t allow multiple connections or connections from other computers
so install your service in IIS and everything should work fine

running it from a non virtual directory in the IDE = Cassini

regards

hth

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>>Hi,

I consume my webservice with the IE browser and all is ok when I call it
with one browser. But when I call it a the same time with two browsers,
the IE page tells me that the apllication server is not available!!

Any idea ?


Yes my webservice is installed in IIS 6.0

But is not possible to execute the webservice with two browsers at the
same time, the server becomes unavailable

In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID : 888) stopped unexpectedly

Any idea ?
Hello,
Does it access a external resource , maybe a file that is locked by the
previous call that is still running
ofcourse above is just wild guessing as you do not provide info about what
your webservice does so the question from my side is
what does your webservice code ?

Michel Posseth [MCP]
http://www.vbdotnetcoder.com


Oct 8 '08 #4

P: n/a
Michel Posseth [MCP] a présenté l'énoncé suivant :
"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>Michel Posseth [MCP] avait écrit le 05.10.2008 :
>>And is your webservice installed in IIS ???? ( i guess not )

Cause if you are running it from the IDE it runs in Cassini and Cassini
doesn`t allow multiple connections or connections from other computers
so install your service in IIS and everything should work fine

running it from a non virtual directory in the IDE = Cassini

regards

hth

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Hi,

I consume my webservice with the IE browser and all is ok when I call it
with one browser. But when I call it a the same time with two browsers,
the IE page tells me that the apllication server is not available!!

Any idea ?


Yes my webservice is installed in IIS 6.0

But is not possible to execute the webservice with two browsers at the same
time, the server becomes unavailable

In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID : 888) stopped unexpectedly

Any idea ?

Hello,
Does it access a external resource , maybe a file that is locked by the
previous call that is still running
ofcourse above is just wild guessing as you do not provide info about what
your webservice does so the question from my side is
what does your webservice code ?

Michel Posseth [MCP]
http://www.vbdotnetcoder.com
In resume, my webservice code calls a function in a DLL. This DLL is
created with a RAD(Clarion). In this function there is a query to a
Oracle Database and it returns the content of a field's table (a
integer number)

Here my webservice code :
<WebMethod()Public Function TotoWait(ByVal intIn As Int32) As String
Dim hInst As Integer
Dim intClock As Int32

Try
intClock = ps_totowait(intIn)'call the Clarion's DLL

TotoWait = intClock.ToString
Catch ax As AccessViolationException
TotoWait = ax.Message
Catch ex As Exception
TotoWait = ex.Message
End Try
End Function

When I run my webservice at the same time, the first call returns the
right result and the second returns this error "Attempted to read or
write protected memory. This is often an indication that other memory
is corrupt."

Any idea ?
Oct 9 '08 #5

P: n/a


"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Michel Posseth [MCP] a présenté l'énoncé suivant :
>"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>>Michel Posseth [MCP] avait écrit le 05.10.2008 :
And is your webservice installed in IIS ???? ( i guess not )

Cause if you are running it from the IDE it runs in Cassini and
Cassini doesn`t allow multiple connections or connections from other
computers
so install your service in IIS and everything should work fine

running it from a non virtual directory in the IDE = Cassini

regards

hth

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Hi,
>
I consume my webservice with the IE browser and all is ok when I call
it with one browser. But when I call it a the same time with two
browsers, the IE page tells me that the apllication server is not
available!!
>
Any idea ?
>
>

Yes my webservice is installed in IIS 6.0

But is not possible to execute the webservice with two browsers at the
same time, the server becomes unavailable

In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID : 888) stopped unexpectedly

Any idea ?

Hello,
Does it access a external resource , maybe a file that is locked by the
previous call that is still running
ofcourse above is just wild guessing as you do not provide info about
what your webservice does so the question from my side is
what does your webservice code ?

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

In resume, my webservice code calls a function in a DLL. This DLL is
created with a RAD(Clarion). In this function there is a query to a Oracle
Database and it returns the content of a field's table (a integer number)

Here my webservice code :
<WebMethod()Public Function TotoWait(ByVal intIn As Int32) As String
Dim hInst As Integer
Dim intClock As Int32

Try
intClock = ps_totowait(intIn)'call the Clarion's DLL

TotoWait = intClock.ToString
Catch ax As AccessViolationException
TotoWait = ax.Message
Catch ex As Exception
TotoWait = ex.Message
End Try
End Function

When I run my webservice at the same time, the first call returns the
right result and the second returns this error "Attempted to read or write
protected memory. This is often an indication that other memory is
corrupt."

Any idea ?
Hello Amirallia

If the source of the exception is source="Oracle.DataAccess"
then the cause is probably that you are not calling .Read() on your
OracleDataReader before calling .GetValue

Michel Posseth [MCP]
http://www.vbdotnetcoder.com


Oct 9 '08 #6

P: n/a
Michel Posseth a exposé le 09.10.2008 :
>
"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>Michel Posseth [MCP] a présenté l'énoncé suivant :
>>"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Michel Posseth [MCP] avait écrit le 05.10.2008 :
And is your webservice installed in IIS ???? ( i guess not )
>
Cause if you are running it from the IDE it runs in Cassini and Cassini
doesn`t allow multiple connections or connections from other computers
so install your service in IIS and everything should work fine
>
running it from a non virtual directory in the IDE = Cassini
>
regards
>
hth
>
Michel Posseth [MCP]
http://www.vbdotnetcoder.com
>
>
>
"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>Hi,
>>
>I consume my webservice with the IE browser and all is ok when I call
>it with one browser. But when I call it a the same time with two
>browsers, the IE page tells me that the apllication server is not
>available!!
>>
>Any idea ?
>>
>>

Yes my webservice is installed in IIS 6.0

But is not possible to execute the webservice with two browsers at the
same time, the server becomes unavailable

In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID : 888) stopped unexpectedly

Any idea ?
Hello,
Does it access a external resource , maybe a file that is locked by the
previous call that is still running
ofcourse above is just wild guessing as you do not provide info about what
your webservice does so the question from my side is
what does your webservice code ?

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

In resume, my webservice code calls a function in a DLL. This DLL is
created with a RAD(Clarion). In this function there is a query to a Oracle
Database and it returns the content of a field's table (a integer number)

Here my webservice code :
<WebMethod()Public Function TotoWait(ByVal intIn As Int32) As String
Dim hInst As Integer
Dim intClock As Int32

Try
intClock = ps_totowait(intIn)'call the Clarion's DLL

TotoWait = intClock.ToString
Catch ax As AccessViolationException
TotoWait = ax.Message
Catch ex As Exception
TotoWait = ex.Message
End Try
End Function

When I run my webservice at the same time, the first call returns the right
result and the second returns this error "Attempted to read or write
protected memory. This is often an indication that other memory is
corrupt."

Any idea ?

Hello Amirallia

If the source of the exception is source="Oracle.DataAccess"
then the cause is probably that you are not calling .Read() on your
OracleDataReader before calling .GetValue

Michel Posseth [MCP]
http://www.vbdotnetcoder.com
Thanks for your help !!!!

The source of the exception is the name of the web service and ot
Oracle.DataAccess.

The StackTrace of the exception pointed to the line intClock =
ps_totowait(intIn).
Oct 9 '08 #7

P: n/a

"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Michel Posseth a exposé le 09.10.2008 :
>>
"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
>>Michel Posseth [MCP] a présenté l'énoncé suivant :
"Amirallia" <bn**@bluewin.chschreef in bericht
news:mn***********************@bluewin.ch...
Michel Posseth [MCP] avait écrit le 05.10.2008 :
>And is your webservice installed in IIS ???? ( i guess not )
>>
>Cause if you are running it from the IDE it runs in Cassini and
>Cassini doesn`t allow multiple connections or connections from other
>computers
>so install your service in IIS and everything should work fine
>>
>running it from a non virtual directory in the IDE = Cassini
>>
>regards
>>
>hth
>>
>Michel Posseth [MCP]
>http://www.vbdotnetcoder.com
>>
>>
>>
>"Amirallia" <bn**@bluewin.chschreef in bericht
>news:mn***********************@bluewin.ch.. .
>>Hi,
>>>
>>I consume my webservice with the IE browser and all is ok when I
>>call it with one browser. But when I call it a the same time with
>>two browsers, the IE page tells me that the apllication server is
>>not available!!
>>>
>>Any idea ?
>>>
>>>
>
Yes my webservice is installed in IIS 6.0
>
But is not possible to execute the webservice with two browsers at the
same time, the server becomes unavailable
>
In the event viewer, I've got an error on ASP.NET 2.0.50727.0 with the
message :aspnet_wp.exe (PID : 888) stopped unexpectedly
>
Any idea ?
>

Hello,
Does it access a external resource , maybe a file that is locked by the
previous call that is still running
ofcourse above is just wild guessing as you do not provide info about
what your webservice does so the question from my side is
what does your webservice code ?

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

In resume, my webservice code calls a function in a DLL. This DLL is
created with a RAD(Clarion). In this function there is a query to a
Oracle Database and it returns the content of a field's table (a integer
number)

Here my webservice code :
<WebMethod()Public Function TotoWait(ByVal intIn As Int32) As String
Dim hInst As Integer
Dim intClock As Int32

Try
intClock = ps_totowait(intIn)'call the Clarion's DLL

TotoWait = intClock.ToString
Catch ax As AccessViolationException
TotoWait = ax.Message
Catch ex As Exception
TotoWait = ex.Message
End Try
End Function

When I run my webservice at the same time, the first call returns the
right result and the second returns this error "Attempted to read or
write protected memory. This is often an indication that other memory is
corrupt."

Any idea ?

Hello Amirallia

If the source of the exception is source="Oracle.DataAccess"
then the cause is probably that you are not calling .Read() on your
OracleDataReader before calling .GetValue

Michel Posseth [MCP]
http://www.vbdotnetcoder.com

Thanks for your help !!!!

The source of the exception is the name of the web service and ot
Oracle.DataAccess.

The StackTrace of the exception pointed to the line intClock =
ps_totowait(intIn).

I am confused now ,,, did you solved the error or is it still occuring ?
as you mentioned Oracle i had a lightbulb moment as the combination Oracle
is known to throw this error
if read is not called before getvalue . in the data access code

HTH

Michel


Oct 9 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.