473,748 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1582
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.goo gle.com...
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.goo gle.com...
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*******@nosp am.hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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*****@aboutf ortunate.com> wrote in message
news:uw******** ******@TK2MSFTN GP10.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.goo gle.com...
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*******@nosp am.hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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*****@aboutf ortunate.com> wrote in message
news:uw******** ******@TK2MSFTN GP10.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.goo gle.com...
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
2110
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 of the installation needs to "dump" a bunch of files (third party product's project files) to the user's system. These files are transient in nature in that the user may choose
6
22507
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 ProcessArguments ) { string ErrorStream = ""; Process DOSProcess = new Process();
6
2177
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 same configuration (it should have it atleast) it works perfectly. After been testing a while I found out that everything worked if I first put the folder with the web application as a readonly first (applying it to all the subitems) and then...
0
316
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 gracefully have new connections use the new code, while the old code is cached for current connections. Anyone?
2
1751
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 xcopy. After doing some simple development via vs.net I found that xcopy'ing my app from a development workstation to the production server didn't work, but I easily dealt with that problem via vs.net's "copy project" menu command. I assume that...
1
1711
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. But I do find some files slip through, especially if you are using standard libraries that may not have been recently compiled. And some of my staff routinely overlook the update procedures and will not deploy files they've changed to all copies...
2
2205
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 the exact same string it is passing and past it into a Command prompt, it works perfectly. That told me it may be a permissions/impersonation issue. I am now running it as a special ServiceAccount I have created that is a Domain Admin. It...
1
2406
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 able to do exactly what we want them to do - or at least not easily. So now i am looking into the possibly of using an xcopy deployment. However - i can find very little information about the major disadvantages of this method. Does anyone...
3
2068
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 deployment if you have Crystal Reports dependencies? Is there an available Crystal redistribution package I can run before doing my XCOPY deployment? TIA
0
8983
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4592
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3298
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.