Consumming a WebService in the same time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amirallia

    Consumming a WebService in the same time

    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 ?


  • Michel Posseth  [MCP]

    #2
    Re: Consumming a WebService in the same time

    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]
    ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.




    "Amirallia" <bnob@bluewin.c hschreef in bericht
    news:mn.eb467d8 9e79f872a.55312 @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 ?
    >
    >

    Comment

    • Amirallia

      #3
      Re: Consumming a WebService in the same time

      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]
      ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.

      >
      >
      >
      "Amirallia" <bnob@bluewin.c hschreef in bericht
      news:mn.eb467d8 9e79f872a.55312 @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 ?


      Comment

      • Michel Posseth  [MCP]

        #4
        Re: Consumming a WebService in the same time


        "Amirallia" <bnob@bluewin.c hschreef in bericht
        news:mn.43897d8 a18bd396c.55312 @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" <bnob@bluewin.c hschreef in bericht
        >news:mn.eb467d 89e79f872a.5531 2@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]
        ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.









        Comment

        • Amirallia

          #5
          Re: Consumming a WebService in the same time

          Michel Posseth [MCP] a présenté l'énoncé suivant :
          "Amirallia" <bnob@bluewin.c hschreef in bericht
          news:mn.43897d8 a18bd396c.55312 @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" <bnob@bluewin.c hschreef in bericht
          >>news:mn.eb467 d89e79f872a.553 12@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()Pub lic Function TotoWait(ByVal intIn As Int32) As String
          Dim hInst As Integer
          Dim intClock As Int32

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

          TotoWait = intClock.ToStri ng
          Catch ax As AccessViolation Exception
          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 ?


          Comment

          • Michel Posseth

            #6
            Re: Consumming a WebService in the same time



            "Amirallia" <bnob@bluewin.c hschreef in bericht
            news:mn.4a287d8 a29ba9ec8.55312 @bluewin.ch...
            Michel Posseth [MCP] a présenté l'énoncé suivant :
            >"Amirallia" <bnob@bluewin.c hschreef in bericht
            >news:mn.43897d 8a18bd396c.5531 2@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 " <bnob@bluewin.c hschreef in bericht
            >>>news:mn.eb46 7d89e79f872a.55 312@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()Pub lic Function TotoWait(ByVal intIn As Int32) As String
            Dim hInst As Integer
            Dim intClock As Int32
            >
            Try
            intClock = ps_totowait(int In)'call the Clarion's DLL
            >
            TotoWait = intClock.ToStri ng
            Catch ax As AccessViolation Exception
            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
            OracleDataReade r before calling .GetValue

            Michel Posseth [MCP]
            ASP.NET hosting, SQL hosting, AJAX Hosting, Silverlight hosting, LINQ Hosting, Microsoft Windows 2012 hosting, iis8 hosting, Windows 2012 R2 hosting, iis8.5 hosting.







            Comment

            • Amirallia

              #7
              Re: Consumming a WebService in the same time

              Michel Posseth a exposé le 09.10.2008 :
              >
              "Amirallia" <bnob@bluewin.c hschreef in bericht
              news:mn.4a287d8 a29ba9ec8.55312 @bluewin.ch...
              >Michel Posseth [MCP] a présenté l'énoncé suivant :
              >>"Amirallia" <bnob@bluewin.c hschreef in bericht
              >>news:mn.43897 d8a18bd396c.553 12@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
              >>>>>
              >>>>>
              >>>>>
              >>>>"Amiralli a" <bnob@bluewin.c hschreef in bericht
              >>>>news:mn.eb4 67d89e79f872a.5 5312@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()Pu blic Function TotoWait(ByVal intIn As Int32) As String
              > Dim hInst As Integer
              > Dim intClock As Int32
              >>
              > Try
              > intClock = ps_totowait(int In)'call the Clarion's DLL
              >>
              > TotoWait = intClock.ToStri ng
              > Catch ax As AccessViolation Exception
              > 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
              OracleDataReade r 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.DataAcce ss.

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


              Comment

              • Michel Posseth

                #8
                Re: Consumming a WebService in the same time




                "Amirallia" <bnob@bluewin.c hschreef in bericht
                news:mn.4aad7d8 afeed04c7.55312 @bluewin.ch...
                Michel Posseth a exposé le 09.10.2008 :
                >>
                >"Amirallia" <bnob@bluewin.c hschreef in bericht
                >news:mn.4a287d 8a29ba9ec8.5531 2@bluewin.ch...
                >>Michel Posseth [MCP] a présenté l'énoncé suivant :
                >>>"Amirallia " <bnob@bluewin.c hschreef in bericht
                >>>news:mn.4389 7d8a18bd396c.55 312@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
                >>>>>computer s
                >>>>>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 " <bnob@bluewin.c hschreef in bericht
                >>>>>news:mn.eb 467d89e79f872a. 55312@bluewin.c h...
                >>>>>>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()P ublic Function TotoWait(ByVal intIn As Int32) As String
                >> Dim hInst As Integer
                >> Dim intClock As Int32
                >>>
                >> Try
                >> intClock = ps_totowait(int In)'call the Clarion's DLL
                >>>
                >> TotoWait = intClock.ToStri ng
                >> Catch ax As AccessViolation Exception
                >> 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
                >OracleDataRead er 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.DataAcce ss.
                >
                The StackTrace of the exception pointed to the line intClock =
                ps_totowait(int In).
                >
                >
                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




                Comment

                Working...