473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Xcopy deployment drops user connections

When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.

Anyone?
Nov 17 '05 #1
4 1552
Matt,

It does if you don't change two files: the global.asax and the web.config
file.

You could for example change one .aspx page, compile, deploy that .aspx page
and the application's main .dll file and the transition would be flawless.
But if you xcopy everything the server restarts sessions. Another solution
would be to switch session state over to the database or a session server.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Matt Anderson" <an************@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.

Anyone?

Nov 17 '05 #2
Matt,

It does if you don't change two files: the global.asax and the web.config
file.

You could for example change one .aspx page, compile, deploy that .aspx page
and the application's main .dll file and the transition would be flawless.
But if you xcopy everything the server restarts sessions. Another solution
would be to switch session state over to the database or a session server.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Matt Anderson" <an************@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.

Anyone?

Nov 17 '05 #3
Thanks Marina!

Am I correct though that if the sessions are set to run from the database
this wouldn't occurr?

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
That is not completely true.

Uploading into the bin directory (i.e. updating dll's) will cause an
application restart.

So will changing the .aspx after a certain number of updates (I believe this is specified in machine.config).

Also, if you are using the 'src' attribute in your .aspx files, changing any source .cs or .vb files will cause a recompile, and thus an application
restart.

What gets dropped are sessions. However - this is not the same as dropping a user connection.

Any requests that began before the XCopy, will finish with the old copy of
the code. Any requests after the copy, will use the new code.

However, since the sessions are dropped, this may cause code to
malfunction - and this needs to be planned for.

There is no workaround - this is life. Try to schedule updates when there
will be few users using your site.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
Matt,

It does if you don't change two files: the global.asax and the web.config file.

You could for example change one .aspx page, compile, deploy that .aspx

page
and the application's main .dll file and the transition would be flawless. But if you xcopy everything the server restarts sessions. Another solution would be to switch session state over to the database or a session server.
Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Matt Anderson" <an************@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.

Anyone?



Nov 17 '05 #4
Thanks Marina!

Am I correct though that if the sessions are set to run from the database
this wouldn't occurr?

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
That is not completely true.

Uploading into the bin directory (i.e. updating dll's) will cause an
application restart.

So will changing the .aspx after a certain number of updates (I believe this is specified in machine.config).

Also, if you are using the 'src' attribute in your .aspx files, changing any source .cs or .vb files will cause a recompile, and thus an application
restart.

What gets dropped are sessions. However - this is not the same as dropping a user connection.

Any requests that began before the XCopy, will finish with the old copy of
the code. Any requests after the copy, will use the new code.

However, since the sessions are dropped, this may cause code to
malfunction - and this needs to be planned for.

There is no workaround - this is life. Try to schedule updates when there
will be few users using your site.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
Matt,

It does if you don't change two files: the global.asax and the web.config file.

You could for example change one .aspx page, compile, deploy that .aspx

page
and the application's main .dll file and the transition would be flawless. But if you xcopy everything the server restarts sessions. Another solution would be to switch session state over to the database or a session server.
Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Matt Anderson" <an************@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.

Anyone?



Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part...
6
by: Zeya | last post by:
I am developing a ASP.Net(Web) based deployment tool, which requires XCOPY functionality. Here is the code for the method: public static int ExecuteProcess ( string ProcessName, string...
6
by: Cristian Suazo | last post by:
Hi, I deployed my application but got a strange error when doing the deployment using the xcopy method. A strange thing is that when I try to do the same steps on another machine that has the...
0
by: Matt Anderson | last post by:
When I use Xcopy to deploy my changes to IIS, it seems to drop the user connections; i.e., empties out their Session variables, etc. I thought ASP.NET was supposed to use shadow deployment and...
2
by: Bruce Schechter | last post by:
Whereas Microsoft highlights the concept of "xcopy deployment" for .NET applications, I gather that it is not necessarily possible to move an ASP.NET application from one computer to another via...
1
by: Richard K Bethell | last post by:
Hi, Want to know if anyone else encounters this issue. I maintain several asp.net websites over the Internet. Now I love xcopy deployment. It makes it easy to do date based change management. ...
2
by: Grigs | last post by:
Hello, I am attempting to write a Web Method in my Web Service that starts a process that runs the XCOPY command with passed in parameters. It is failing on me through code. However, if I take...
1
by: lizii | last post by:
At the moment my company have asked me to look into installations. We use pure .NET applications and although i have looked into installer programs (installshield...wise..etc) none of them are...
3
by: Liz | last post by:
I was intending to use an XCOPY install for a VS2005 C# WinForms app but when I copied the files and ran the app on a clean machine it failed when it needed Crystal Reports. Can you not use XCOPY...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.