Making application live HELP!

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

    #1

    Making application live HELP!

    Sorry to repost, but I am fairly desparate to get this issue resolved!

    Please see below, when it hangs if I leave it long enough I get a 'General
    Network Error', or something similar. Could this be down to the web servers
    being on the DMZ, or perhaps some configuration value in the web.config
    file?

    Any help would really be appreciated as I am due to put the system live
    ASAP.

    Many thanks, Carl Howarth


    Hi,

    We have developed a system using VS.NET 2003 in ASP.NET (vb). The system
    runs absolutely fine on my own and my colleague's machine. We are running
    Win XP Pro. We have 2 web servers, each of which have been upgraded to .net
    1.1, and have all the latest updates from windows update.

    When we deploy the application to either web server the performance is
    ridiculous (the servers run asp3 systems fine). Sometimes the system will
    work like a dream, moving from page to page in an instant, others it will
    just hang when a link is selected (even to pages that are not accessing our
    database). It's nothing to do with connections being left open and it's
    bizarre how the issues are completely unpredictable. The systems are
    transferred simply by copying the contents of the web site folder on our
    machines to the web site folder on the server(s).

    Has anybody come across this kind of situation and if so, please please let
    me know how to get around it!

    Thanks very much,

    Carl Howarth
    carl.howarth@m-s-solutions.co.uk


  • Carl Howarth

    #2
    Re: Making application live HELP!

    Hi Gregory,

    Thanks for coming back to me. I am at a loss with this but will run some
    checks as you have suggested. The network issue really is confusing,
    certainly since the 'classic' asp applications that we are running do not
    experience this problem at all.

    Whilst testing, I have noticed that if I log into the system and jump
    between pages at frequent intervals it seems to work perfectly. It seems
    that if I leave a page displayed for any length of time then choose another
    lin k that is when the system freezes up - I don't know if that gives you
    any further clues. I have altered the web.config file to say debug="false",
    which has made no difference and have checked the code and I certainly
    believe that all objects used are being destroyed after use.

    Another clue that may help is that part of the system is 'upgraded' classic
    asp, ie we have simply converted the existing asp pages and got rid of the
    'set' commands, used isdbnull instead of isnull, and have set aspcompat
    accordingly (only on converted pages), I cannot see this as being an issue
    due to the fact that these all work wonderfully on my machine.

    If you have any other ideas (or not!) in relation to this please let me
    know.

    Many thanks again, Carl


    "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netRem uvThis> wrote in
    message news:%23nYjrDOX DHA.1004@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > I don't believe in unpredictable in computers, so it is predictable, but
    > unknown.
    >
    > I would suggest profiling both the machine and the application. Tracing[/color]
    can[color=blue]
    > help some, but you are going to have to examine what the machine is doing
    > when the app is running (along with what other apps are running and what
    > they are doing).
    >
    > The topology of the network can also be a major influence. If you web[/color]
    server[color=blue]
    > has to talk to the database via a firewall, it is at a disavantage from[/color]
    your[color=blue]
    > XP dev box. So, the DMZ can affect your app. You need to know what it is
    > doing when it has a problem (down to the line of code possibly, which is
    > easiest done with logging (which slows down the app while it is
    > instituted)).
    >
    > I wish I had an easy answer, but there are a lot of variables here.
    >
    > --
    > Gregory A. Beamer
    > MVP; MCP: +I, SE, SD, DBA
    > Author: ADO.NET and XML: ASP.NET on the Edge
    >
    >[/color]
    *************** *************** *************** *************** *************** *[color=blue]
    > ****
    > Think Outside the Box!
    >[/color]
    *************** *************** *************** *************** *************** *[color=blue]
    > ****
    > "Carl Howarth" <carl.howarth @m-s-solutions.co.uk > wrote in message
    > news:OClO$tNXDH A.2392@TK2MSFTN GP10.phx.gbl...[color=green]
    > > Sorry to repost, but I am fairly desparate to get this issue resolved!
    > >
    > > Please see below, when it hangs if I leave it long enough I get a[/color][/color]
    'General[color=blue][color=green]
    > > Network Error', or something similar. Could this be down to the web[/color]
    > servers[color=green]
    > > being on the DMZ, or perhaps some configuration value in the web.config
    > > file?
    > >
    > > Any help would really be appreciated as I am due to put the system live
    > > ASAP.
    > >
    > > Many thanks, Carl Howarth
    > >
    > >
    > > Hi,
    > >
    > > We have developed a system using VS.NET 2003 in ASP.NET (vb). The system
    > > runs absolutely fine on my own and my colleague's machine. We are[/color][/color]
    running[color=blue][color=green]
    > > Win XP Pro. We have 2 web servers, each of which have been upgraded to[/color]
    > .net[color=green]
    > > 1.1, and have all the latest updates from windows update.
    > >
    > > When we deploy the application to either web server the performance is
    > > ridiculous (the servers run asp3 systems fine). Sometimes the system[/color][/color]
    will[color=blue][color=green]
    > > work like a dream, moving from page to page in an instant, others it[/color][/color]
    will[color=blue][color=green]
    > > just hang when a link is selected (even to pages that are not accessing[/color]
    > our[color=green]
    > > database). It's nothing to do with connections being left open and it's
    > > bizarre how the issues are completely unpredictable. The systems are
    > > transferred simply by copying the contents of the web site folder on our
    > > machines to the web site folder on the server(s).
    > >
    > > Has anybody come across this kind of situation and if so, please please[/color]
    > let[color=green]
    > > me know how to get around it!
    > >
    > > Thanks very much,
    > >
    > > Carl Howarth
    > > carl.howarth@m-s-solutions.co.uk
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • Carl Howarth

      #3
      Re: Making application live HELP!

      Eric,

      The connections in the current activity show as 'sleeping', which suggests
      to me that the connections have been closed.

      I am using a component to access the database, based on the following:
      Public ReadOnly Property ConnectionStrin g()

      Get

      ConnectionStrin g = "Data Source=10.200.2 0.2; Initial Catalog=ClientC AS;User
      ID=sa;Password= password; Network Library=dbmssoc n;"

      End Get

      End Property


      Public Function GetReader(ByVal strSQL As String) As SqlDataReader

      Dim tmpConn As New SqlConnection(M e.ConnectionStr ing)

      Dim objCmd As New SqlCommand(strS QL, tmpConn)

      objCmd.Connecti on.Open()



      objCmd.CommandT imeout = 300

      GetReader = objCmd.ExecuteR eader(CommandBe havior.CloseCon nection)

      objCmd = Nothing



      End Function


      And then within my pages' back end code I would do something along these
      lines to fill, say, a datagrid:

      dim obj as new cpData
      dim dr as sqldatareader = obj.GetReader(" spStoredProc " & id)
      dg.datasource = dr
      dg.databind
      dr.close
      dr = nothing
      obj = nothing

      Does this all look acceptable to you? It certainly works fine on the
      development machine!

      Many thanks, Carl


      <Eric> wrote in message news:%23J4kIAPX DHA.2476@tk2msf tngp13.phx.gbl. ..[color=blue]
      >
      >
      > You sure there's not a connection left open to the database?
      > Use enterprisemanag er to view SQL's current activity.
      >
      > "no connections being left open"
      > Only thing I can think of is a deadlock.
      >
      >
      >
      > Doe er je voordeel mee :P
      >
      >
      >
      >
      > "Carl Howarth" <carl.howarth @m-s-solutions.co.uk > wrote:[color=green]
      > >Sorry to repost, but I am fairly desparate to get this issue resolved!
      > >
      > >Please see below, when it hangs if I leave it long enough I get a[/color][/color]
      'General[color=blue][color=green]
      > >Network Error', or something similar. Could this be down to the web[/color][/color]
      servers[color=blue][color=green]
      > >being on the DMZ, or perhaps some configuration value in the web.config
      > >file?
      > >
      > >Any help would really be appreciated as I am due to put the system live
      > >ASAP.
      > >
      > >Many thanks, Carl Howarth
      > >
      > >
      > >Hi,
      > >
      > >We have developed a system using VS.NET 2003 in ASP.NET (vb). The system
      > >runs absolutely fine on my own and my colleague's machine. We are[/color][/color]
      running[color=blue][color=green]
      > >Win XP Pro. We have 2 web servers, each of which have been upgraded to[/color][/color]
      ..net[color=blue][color=green]
      > >1.1, and have all the latest updates from windows update.
      > >
      > >When we deploy the application to either web server the performance is
      > >ridiculous (the servers run asp3 systems fine). Sometimes the system[/color][/color]
      will[color=blue][color=green]
      > >work like a dream, moving from page to page in an instant, others it will
      > >just hang when a link is selected (even to pages that are not accessing[/color][/color]
      our[color=blue][color=green]
      > >database). It's nothing to do with connections being left open and it's
      > >bizarre how the issues are completely unpredictable. The systems are
      > >transferred simply by copying the contents of the web site folder on our
      > >machines to the web site folder on the server(s).
      > >
      > >Has anybody come across this kind of situation and if so, please please[/color][/color]
      let[color=blue][color=green]
      > >me know how to get around it!
      > >
      > >Thanks very much,
      > >
      > >Carl Howarth
      > >carl.howarth @m-s-solutions.co.uk
      > >
      > >[/color]
      >[/color]


      Comment

      Working...