Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP.NET Deployment - I canny do it!

Carl Howarth
Guest
 
Posts: n/a
#1: Nov 17 '05
Hello again everyone..... I'm a real pain and keep posting re the same
thing, but it is possibly the most frustrating issue I've come across.
Please see my original post - can anybody think of a solution to this? The
main error I experience is an sqlexception saying 'General Network Error',
but as this is sporadic, and due to the fact that asp3 apps work fine I am
at a total loss as to what the issue can be.

In addition to this I connect to the database using the following:

The connections in the current activity (SQL) 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 ConnectionString()

Get

ConnectionString = "Data Source=10.200.20.2; Initial Catalog=ClientCAS;User
ID=sa;Password=password; Network Library=dbmssocn;"

End Get

End Property


Public Function GetReader(ByVal strSQL As String) As SqlDataReader

Dim tmpConn As New SqlConnection(Me.ConnectionString)

Dim objCmd As New SqlCommand(strSQL, tmpConn)

objCmd.Connection.Open()

objCmd.CommandTimeout = 300

GetReader = objCmd.ExecuteReader(CommandBehavior.CloseConnecti on)

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

---------------------->
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.netRemuvThis> wrote in
message news:%23nYjrDOXDHA.1004@TK2MSFTNGP12.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$tNXDHA.2392@TK2MSFTNGP10.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]




Ravikanth[MVP]
Guest
 
Posts: n/a
#2: Nov 17 '05

re: ASP.NET Deployment - I canny do it!


Hi

Try to change your SQL Statement by adding/removing ORDER
BY, WHERE..... if it solves the problem, it means that
your sql statement does not return data in the normal
manner.... i.e. slower than ADO.NET expect.

2. If you are using simultanious connections, you might
have some problem about connection pooling, try to add
Pooling=false in Sql connection string. If this is the
problem, make sure that you use the exact same Sql
statement everywhere......

3. But if you are using Trusted Connection and set
pooling to true right now, but you also set
impersonation=true. The problem is that it will login
using different accounts causing the connection pool to
be useless. You might either use SQL account or set
Pooling = false in the connection string to solve the
problem.


Check out the following URL
also:http://forums.devshed.com/archive/52/2003/01/4/49612

Ravikanth[MVP]

[color=blue]
>-----Original Message-----
>Hello again everyone..... I'm a real pain and keep[/color]
posting re the same[color=blue]
>thing, but it is possibly the most frustrating issue[/color]
I've come across.[color=blue]
>Please see my original post - can anybody think of a[/color]
solution to this? The[color=blue]
>main error I experience is an sqlexception[/color]
saying 'General Network Error',[color=blue]
>but as this is sporadic, and due to the fact that asp3[/color]
apps work fine I am[color=blue]
>at a total loss as to what the issue can be.
>
>In addition to this I connect to the database using the[/color]
following:[color=blue]
>
>The connections in the current activity (SQL) show[/color]
as 'sleeping', which[color=blue]
>suggests
>to me that the connections have been closed.
>
>I am using a component to access the database, based on[/color]
the following:[color=blue]
>Public ReadOnly Property ConnectionString()
>
>Get
>
>ConnectionString = "Data Source=10.200.20.2; Initial[/color]
Catalog=ClientCAS;User[color=blue]
>ID=sa;Password=password; Network Library=dbmssocn;"
>
>End Get
>
>End Property
>
>
>Public Function GetReader(ByVal strSQL As String) As[/color]
SqlDataReader[color=blue]
>
>Dim tmpConn As New SqlConnection(Me.ConnectionString)
>
>Dim objCmd As New SqlCommand(strSQL, tmpConn)
>
>objCmd.Connection.Open()
>
>objCmd.CommandTimeout = 300
>
>GetReader = objCmd.ExecuteReader[/color]
(CommandBehavior.CloseConnection)[color=blue]
>
>objCmd = Nothing
>
>End Function
>
>
>And then within my pages' back end code I would do[/color]
something along these[color=blue]
>lines to fill, say, a datagrid:
>
>dim obj as new cpData
>dim dr as sqldatareader = obj.GetReader("spStoredProc "[/color]
& id)[color=blue]
>dg.datasource = dr
>dg.databind
>dr.close
>dr = nothing
>obj = nothing
>
>---------------------->
>Hi Gregory,
>
>Thanks for coming back to me. I am at a loss with this[/color]
but will run some[color=blue]
>checks as you have suggested. The network issue really[/color]
is confusing,[color=blue]
>certainly since the 'classic' asp applications that we[/color]
are running do not[color=blue]
>experience this problem at all.
>
>Whilst testing, I have noticed that if I log into the[/color]
system and jump[color=blue]
>between pages at frequent intervals it seems to work[/color]
perfectly. It seems[color=blue]
>that if I leave a page displayed for any length of time[/color]
then choose another[color=blue]
>lin k that is when the system freezes up - I don't know[/color]
if that gives you[color=blue]
>any further clues. I have altered the web.config file[/color]
to say debug="false",[color=blue]
>which has made no difference and have checked the code[/color]
and I certainly[color=blue]
>believe that all objects used are being destroyed after[/color]
use.[color=blue]
>
>Another clue that may help is that part of the system[/color]
is 'upgraded' classic[color=blue]
>asp, ie we have simply converted the existing asp pages[/color]
and got rid of the[color=blue]
>'set' commands, used isdbnull instead of isnull, and[/color]
have set aspcompat[color=blue]
>accordingly (only on converted pages), I cannot see this[/color]
as being an issue[color=blue]
>due to the fact that these all work wonderfully on my[/color]
machine.[color=blue]
>
>If you have any other ideas (or not!) in relation to[/color]
this please let me[color=blue]
>know.
>
>Many thanks again, Carl
>
>
>"Cowboy (Gregory A. Beamer)"[/color]
<NoSpamMgbworld@comcast.netRemuvThis> wrote in[color=blue]
>message news:%23nYjrDOXDHA.1004@TK2MSFTNGP12.phx.gbl...[color=green]
>> I don't believe in unpredictable in computers, so it[/color][/color]
is predictable, but[color=blue][color=green]
>> unknown.
>>
>> I would suggest profiling both the machine and the[/color][/color]
application. Tracing[color=blue]
>can[color=green]
>> help some, but you are going to have to examine what[/color][/color]
the machine is doing[color=blue][color=green]
>> when the app is running (along with what other apps[/color][/color]
are running and what[color=blue][color=green]
>> they are doing).
>>
>> The topology of the network can also be a major[/color][/color]
influence. If you web[color=blue]
>server[color=green]
>> has to talk to the database via a firewall, it is at a[/color][/color]
disavantage from[color=blue]
>your[color=green]
>> XP dev box. So, the DMZ can affect your app. You need[/color][/color]
to know what it is[color=blue][color=green]
>> doing when it has a problem (down to the line of code[/color][/color]
possibly, which is[color=blue][color=green]
>> easiest done with logging (which slows down the app[/color][/color]
while it is[color=blue][color=green]
>> instituted)).
>>
>> I wish I had an easy answer, but there are a lot of[/color][/color]
variables here.[color=blue][color=green]
>>
>> --
>> Gregory A. Beamer
>> MVP; MCP: +I, SE, SD, DBA
>> Author: ADO.NET and XML: ASP.NET on the Edge
>>
>>[/color]
>************************************************* ********[/color]
*******************[color=blue][color=green]
>> ****
>> Think Outside the Box!
>>[/color]
>************************************************* ********[/color]
*******************[color=blue][color=green]
>> ****
>> "Carl Howarth" <carl.howarth@m-s-solutions.co.uk>[/color][/color]
wrote in message[color=blue][color=green]
>> news:OClO$tNXDHA.2392@TK2MSFTNGP10.phx.gbl...[color=darkred]
>> > Sorry to repost, but I am fairly desparate to get[/color][/color][/color]
this issue resolved![color=blue][color=green][color=darkred]
>> >
>> > Please see below, when it hangs if I leave it long[/color][/color][/color]
enough I get a[color=blue]
>'General[color=green][color=darkred]
>> > Network Error', or something similar. Could this be[/color][/color][/color]
down to the web[color=blue][color=green]
>> servers[color=darkred]
>> > being on the DMZ, or perhaps some configuration[/color][/color][/color]
value in the web.config[color=blue][color=green][color=darkred]
>> > file?
>> >
>> > Any help would really be appreciated as I am due to[/color][/color][/color]
put the system live[color=blue][color=green][color=darkred]
>> > ASAP.
>> >
>> > Many thanks, Carl Howarth
>> >
>> >
>> > Hi,
>> >
>> > We have developed a system using VS.NET 2003 in[/color][/color][/color]
ASP.NET (vb). The system[color=blue][color=green][color=darkred]
>> > runs absolutely fine on my own and my colleague's[/color][/color][/color]
machine. We are[color=blue]
>running[color=green][color=darkred]
>> > Win XP Pro. We have 2 web servers, each of which[/color][/color][/color]
have been upgraded to[color=blue][color=green]
>> .net[color=darkred]
>> > 1.1, and have all the latest updates from windows[/color][/color][/color]
update.[color=blue][color=green][color=darkred]
>> >
>> > When we deploy the application to either web server[/color][/color][/color]
the performance is[color=blue][color=green][color=darkred]
>> > ridiculous (the servers run asp3 systems fine).[/color][/color][/color]
Sometimes the system[color=blue]
>will[color=green][color=darkred]
>> > work like a dream, moving from page to page in an[/color][/color][/color]
instant, others it[color=blue]
>will[color=green][color=darkred]
>> > just hang when a link is selected (even to pages[/color][/color][/color]
that are not accessing[color=blue][color=green]
>> our[color=darkred]
>> > database). It's nothing to do with connections[/color][/color][/color]
being left open and it's[color=blue][color=green][color=darkred]
>> > bizarre how the issues are completely[/color][/color][/color]
unpredictable. The systems are[color=blue][color=green][color=darkred]
>> > transferred simply by copying the contents of the[/color][/color][/color]
web site folder on our[color=blue][color=green][color=darkred]
>> > machines to the web site folder on the server(s).
>> >
>> > Has anybody come across this kind of situation and[/color][/color][/color]
if so, please please[color=blue][color=green]
>> let[color=darkred]
>> > me know how to get around it!
>> >
>> > Thanks very much,
>> >
>> > Carl Howarth
>> > carl.howarth@m-s-solutions.co.uk
>> >
>> >[/color]
>>
>>[/color]
>
>
>
>.
>[/color]
John Saunders
Guest
 
Posts: n/a
#3: Nov 17 '05

re: ASP.NET Deployment - I canny do it!


Carl, my idea is that this may be an ADO.NET issue and not an ASP.NET issue.
Perhaps you should post to
microsoft.public.dotnet.framework.adonet?
--
John Saunders
Internet Engineer
john.saunders@surfcontrol.com


"Carl Howarth" <carl.howarth@m-s-solutions.co.uk> wrote in message
news:esjSTkZXDHA.1580@tk2msftngp13.phx.gbl...[color=blue]
> Hello again everyone..... I'm a real pain and keep posting re the same
> thing, but it is possibly the most frustrating issue I've come across.
> Please see my original post - can anybody think of a solution to this?[/color]
The[color=blue]
> main error I experience is an sqlexception saying 'General Network Error',
> but as this is sporadic, and due to the fact that asp3 apps work fine I am
> at a total loss as to what the issue can be.
>
> In addition to this I connect to the database using the following:
>
> The connections in the current activity (SQL) 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 ConnectionString()
>
> Get
>
> ConnectionString = "Data Source=10.200.20.2; Initial[/color]
Catalog=ClientCAS;User[color=blue]
> ID=sa;Password=password; Network Library=dbmssocn;"
>
> End Get
>
> End Property
>
>
> Public Function GetReader(ByVal strSQL As String) As SqlDataReader
>
> Dim tmpConn As New SqlConnection(Me.ConnectionString)
>
> Dim objCmd As New SqlCommand(strSQL, tmpConn)
>
> objCmd.Connection.Open()
>
> objCmd.CommandTimeout = 300
>
> GetReader = objCmd.ExecuteReader(CommandBehavior.CloseConnecti on)
>
> 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
>
> ---------------------->
> 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[/color]
another[color=blue]
> 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[/color]
debug="false",[color=blue]
> 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'[/color]
classic[color=blue]
> 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.netRemuvThis> wrote[/color]
in[color=blue]
> message news:%23nYjrDOXDHA.1004@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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=green]
> > help some, but you are going to have to examine what the machine is[/color][/color]
doing[color=blue][color=green]
> > 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=green]
> > has to talk to the database via a firewall, it is at a disavantage from[/color]
> your[color=green]
> > 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]
************************************************** **************************[color=blue][color=green]
> > ****
> > Think Outside the Box!
> >[/color]
>[/color]
************************************************** **************************[color=blue][color=green]
> > ****
> > "Carl Howarth" <carl.howarth@m-s-solutions.co.uk> wrote in message
> > news:OClO$tNXDHA.2392@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > 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=green][color=darkred]
> > > Network Error', or something similar. Could this be down to the web[/color]
> > servers[color=darkred]
> > > being on the DMZ, or perhaps some configuration value in the[/color][/color][/color]
web.config[color=blue][color=green][color=darkred]
> > > file?
> > >
> > > Any help would really be appreciated as I am due to put the system[/color][/color][/color]
live[color=blue][color=green][color=darkred]
> > > ASAP.
> > >
> > > Many thanks, Carl Howarth
> > >
> > >
> > > Hi,
> > >
> > > We have developed a system using VS.NET 2003 in ASP.NET (vb). The[/color][/color][/color]
system[color=blue][color=green][color=darkred]
> > > runs absolutely fine on my own and my colleague's machine. We are[/color][/color]
> running[color=green][color=darkred]
> > > Win XP Pro. We have 2 web servers, each of which have been upgraded[/color][/color][/color]
to[color=blue][color=green]
> > .net[color=darkred]
> > > 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=green][color=darkred]
> > > work like a dream, moving from page to page in an instant, others it[/color][/color]
> will[color=green][color=darkred]
> > > just hang when a link is selected (even to pages that are not[/color][/color][/color]
accessing[color=blue][color=green]
> > our[color=darkred]
> > > database). It's nothing to do with connections being left open and[/color][/color][/color]
it's[color=blue][color=green][color=darkred]
> > > bizarre how the issues are completely unpredictable. The systems are
> > > transferred simply by copying the contents of the web site folder on[/color][/color][/color]
our[color=blue][color=green][color=darkred]
> > > machines to the web site folder on the server(s).
> > >
> > > Has anybody come across this kind of situation and if so, please[/color][/color][/color]
please[color=blue][color=green]
> > let[color=darkred]
> > > me know how to get around it!
> > >
> > > Thanks very much,
> > >
> > > Carl Howarth
> > > carl.howarth@m-s-solutions.co.uk
> > >
> > >[/color]
> >
> >[/color]
>
>
>[/color]


Carl Howarth
Guest
 
Posts: n/a
#4: Nov 17 '05

re: ASP.NET Deployment - I canny do it!


Ravikanth,

Point 2 has made the system work - which is good.... However what will
happen when I start to get numerous users of the system?

Many thanks, Carl

"Ravikanth[MVP]" <dvravikanth@hotmail.com> wrote in message
news:07b101c35d9d$ba7e3db0$a601280a@phx.gbl...[color=blue]
> Hi
>
> Try to change your SQL Statement by adding/removing ORDER
> BY, WHERE..... if it solves the problem, it means that
> your sql statement does not return data in the normal
> manner.... i.e. slower than ADO.NET expect.
>
> 2. If you are using simultanious connections, you might
> have some problem about connection pooling, try to add
> Pooling=false in Sql connection string. If this is the
> problem, make sure that you use the exact same Sql
> statement everywhere......
>
> 3. But if you are using Trusted Connection and set
> pooling to true right now, but you also set
> impersonation=true. The problem is that it will login
> using different accounts causing the connection pool to
> be useless. You might either use SQL account or set
> Pooling = false in the connection string to solve the
> problem.
>
>
> Check out the following URL
> also:http://forums.devshed.com/archive/52/2003/01/4/49612
>
> Ravikanth[MVP]
>
>[color=green]
> >-----Original Message-----
> >Hello again everyone..... I'm a real pain and keep[/color]
> posting re the same[color=green]
> >thing, but it is possibly the most frustrating issue[/color]
> I've come across.[color=green]
> >Please see my original post - can anybody think of a[/color]
> solution to this? The[color=green]
> >main error I experience is an sqlexception[/color]
> saying 'General Network Error',[color=green]
> >but as this is sporadic, and due to the fact that asp3[/color]
> apps work fine I am[color=green]
> >at a total loss as to what the issue can be.
> >
> >In addition to this I connect to the database using the[/color]
> following:[color=green]
> >
> >The connections in the current activity (SQL) show[/color]
> as 'sleeping', which[color=green]
> >suggests
> >to me that the connections have been closed.
> >
> >I am using a component to access the database, based on[/color]
> the following:[color=green]
> >Public ReadOnly Property ConnectionString()
> >
> >Get
> >
> >ConnectionString = "Data Source=10.200.20.2; Initial[/color]
> Catalog=ClientCAS;User[color=green]
> >ID=sa;Password=password; Network Library=dbmssocn;"
> >
> >End Get
> >
> >End Property
> >
> >
> >Public Function GetReader(ByVal strSQL As String) As[/color]
> SqlDataReader[color=green]
> >
> >Dim tmpConn As New SqlConnection(Me.ConnectionString)
> >
> >Dim objCmd As New SqlCommand(strSQL, tmpConn)
> >
> >objCmd.Connection.Open()
> >
> >objCmd.CommandTimeout = 300
> >
> >GetReader = objCmd.ExecuteReader[/color]
> (CommandBehavior.CloseConnection)[color=green]
> >
> >objCmd = Nothing
> >
> >End Function
> >
> >
> >And then within my pages' back end code I would do[/color]
> something along these[color=green]
> >lines to fill, say, a datagrid:
> >
> >dim obj as new cpData
> >dim dr as sqldatareader = obj.GetReader("spStoredProc "[/color]
> & id)[color=green]
> >dg.datasource = dr
> >dg.databind
> >dr.close
> >dr = nothing
> >obj = nothing
> >
> >---------------------->
> >Hi Gregory,
> >
> >Thanks for coming back to me. I am at a loss with this[/color]
> but will run some[color=green]
> >checks as you have suggested. The network issue really[/color]
> is confusing,[color=green]
> >certainly since the 'classic' asp applications that we[/color]
> are running do not[color=green]
> >experience this problem at all.
> >
> >Whilst testing, I have noticed that if I log into the[/color]
> system and jump[color=green]
> >between pages at frequent intervals it seems to work[/color]
> perfectly. It seems[color=green]
> >that if I leave a page displayed for any length of time[/color]
> then choose another[color=green]
> >lin k that is when the system freezes up - I don't know[/color]
> if that gives you[color=green]
> >any further clues. I have altered the web.config file[/color]
> to say debug="false",[color=green]
> >which has made no difference and have checked the code[/color]
> and I certainly[color=green]
> >believe that all objects used are being destroyed after[/color]
> use.[color=green]
> >
> >Another clue that may help is that part of the system[/color]
> is 'upgraded' classic[color=green]
> >asp, ie we have simply converted the existing asp pages[/color]
> and got rid of the[color=green]
> >'set' commands, used isdbnull instead of isnull, and[/color]
> have set aspcompat[color=green]
> >accordingly (only on converted pages), I cannot see this[/color]
> as being an issue[color=green]
> >due to the fact that these all work wonderfully on my[/color]
> machine.[color=green]
> >
> >If you have any other ideas (or not!) in relation to[/color]
> this please let me[color=green]
> >know.
> >
> >Many thanks again, Carl
> >
> >
> >"Cowboy (Gregory A. Beamer)"[/color]
> <NoSpamMgbworld@comcast.netRemuvThis> wrote in[color=green]
> >message news:%23nYjrDOXDHA.1004@TK2MSFTNGP12.phx.gbl...[color=darkred]
> >> I don't believe in unpredictable in computers, so it[/color][/color]
> is predictable, but[color=green][color=darkred]
> >> unknown.
> >>
> >> I would suggest profiling both the machine and the[/color][/color]
> application. Tracing[color=green]
> >can[color=darkred]
> >> help some, but you are going to have to examine what[/color][/color]
> the machine is doing[color=green][color=darkred]
> >> when the app is running (along with what other apps[/color][/color]
> are running and what[color=green][color=darkred]
> >> they are doing).
> >>
> >> The topology of the network can also be a major[/color][/color]
> influence. If you web[color=green]
> >server[color=darkred]
> >> has to talk to the database via a firewall, it is at a[/color][/color]
> disavantage from[color=green]
> >your[color=darkred]
> >> XP dev box. So, the DMZ can affect your app. You need[/color][/color]
> to know what it is[color=green][color=darkred]
> >> doing when it has a problem (down to the line of code[/color][/color]
> possibly, which is[color=green][color=darkred]
> >> easiest done with logging (which slows down the app[/color][/color]
> while it is[color=green][color=darkred]
> >> instituted)).
> >>
> >> I wish I had an easy answer, but there are a lot of[/color][/color]
> variables here.[color=green][color=darkred]
> >>
> >> --
> >> Gregory A. Beamer
> >> MVP; MCP: +I, SE, SD, DBA
> >> Author: ADO.NET and XML: ASP.NET on the Edge
> >>
> >>[/color]
> >************************************************* ********[/color]
> *******************[color=green][color=darkred]
> >> ****
> >> Think Outside the Box!
> >>[/color]
> >************************************************* ********[/color]
> *******************[color=green][color=darkred]
> >> ****
> >> "Carl Howarth" <carl.howarth@m-s-solutions.co.uk>[/color][/color]
> wrote in message[color=green][color=darkred]
> >> news:OClO$tNXDHA.2392@TK2MSFTNGP10.phx.gbl...
> >> > Sorry to repost, but I am fairly desparate to get[/color][/color]
> this issue resolved![color=green][color=darkred]
> >> >
> >> > Please see below, when it hangs if I leave it long[/color][/color]
> enough I get a[color=green]
> >'General[color=darkred]
> >> > Network Error', or something similar. Could this be[/color][/color]
> down to the web[color=green][color=darkred]
> >> servers
> >> > being on the DMZ, or perhaps some configuration[/color][/color]
> value in the web.config[color=green][color=darkred]
> >> > file?
> >> >
> >> > Any help would really be appreciated as I am due to[/color][/color]
> put the system live[color=green][color=darkred]
> >> > ASAP.
> >> >
> >> > Many thanks, Carl Howarth
> >> >
> >> >
> >> > Hi,
> >> >
> >> > We have developed a system using VS.NET 2003 in[/color][/color]
> ASP.NET (vb). The system[color=green][color=darkred]
> >> > runs absolutely fine on my own and my colleague's[/color][/color]
> machine. We are[color=green]
> >running[color=darkred]
> >> > Win XP Pro. We have 2 web servers, each of which[/color][/color]
> have been upgraded to[color=green][color=darkred]
> >> .net
> >> > 1.1, and have all the latest updates from windows[/color][/color]
> update.[color=green][color=darkred]
> >> >
> >> > When we deploy the application to either web server[/color][/color]
> the performance is[color=green][color=darkred]
> >> > ridiculous (the servers run asp3 systems fine).[/color][/color]
> Sometimes the system[color=green]
> >will[color=darkred]
> >> > work like a dream, moving from page to page in an[/color][/color]
> instant, others it[color=green]
> >will[color=darkred]
> >> > just hang when a link is selected (even to pages[/color][/color]
> that are not accessing[color=green][color=darkred]
> >> our
> >> > database). It's nothing to do with connections[/color][/color]
> being left open and it's[color=green][color=darkred]
> >> > bizarre how the issues are completely[/color][/color]
> unpredictable. The systems are[color=green][color=darkred]
> >> > transferred simply by copying the contents of the[/color][/color]
> web site folder on our[color=green][color=darkred]
> >> > machines to the web site folder on the server(s).
> >> >
> >> > Has anybody come across this kind of situation and[/color][/color]
> if so, please please[color=green][color=darkred]
> >> let
> >> > me know how to get around it!
> >> >
> >> > Thanks very much,
> >> >
> >> > Carl Howarth
> >> > carl.howarth@m-s-solutions.co.uk
> >> >
> >> >
> >>
> >>[/color]
> >
> >
> >
> >.
> >[/color][/color]


Closed Thread