473,511 Members | 12,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange situation ---how is this happening?

I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?

Thanks,

Chris Green

Aug 22 '06 #1
6 2051
As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one DLL.
So if you update the code-behind pages for two pages on the same site, and
compile, and deploy the dll, you've deployed both changes.

That is intentional.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Hannibal111111" <Ha************@hotmail.comwrote in message
news:11*********************@74g2000cwt.googlegrou ps.com...
>I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?

Thanks,

Chris Green

Aug 22 '06 #2

Nick Malik [Microsoft] wrote:
As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one DLL.
So if you update the code-behind pages for two pages on the same site, and
compile, and deploy the dll, you've deployed both changes.

That is intentional.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Hannibal111111" <Ha************@hotmail.comwrote in message
news:11*********************@74g2000cwt.googlegrou ps.com...
I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?

Thanks,

Chris Green
So even if I don't move the code-behind page to the live server,
because I have updated the dll it will still run the updated code from
the code-behind page? Is the code stored in the dll? How do I prevent
the new code from running if I don't want it to but have to update the
dll because of a bug fix somewhere else on the site?

Chris

Aug 23 '06 #3
Our messages are a bit out of order, so I reordered the text of the
conversation to make it easier for me.
>I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?
>As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one
DLL.
So if you update the code-behind pages for two pages on the same site,
and
compile, and deploy the dll, you've deployed both changes.
So even if I don't move the code-behind page to the live server,
because I have updated the dll it will still run the updated code from
the code-behind page?
I'm not sure if I'm understanding correctly. I assume you mean this:
You created a new ASPX page.
The code behind needed a different feature from existing code
You modified existing code to provide this new feature. This work is not
complete.
You also had to fix a bug in existing code. You did so. This work is
complete.
You deployed the bug fix.
Even though the ASPX page itself is not deployed, you are confused as to why
the feature change went into production.

By definition, you have two things here: you have the ASPX page (which is
now fairly light, unless you are in the Ajax model) and you have the
code-behind, which is a shared DLL for the entire site.

You have a classic problem: two bodies of code, one for supporting existing
functionality, while the other is for rolling out new functionality.

There are lots of different ways to work around this, but the most common
are:
1) branch your source control tree to allow bug fixes in one body of code
while allowing new features to be added to the other. Note that bug fixes
have to be made in both branches. This often means making the same
functional change twice.
2) create new classes in your code that the new features will use, and
maintain both the old classes and new classes. Roll out as often as you
want, as long as the new classes are not called. On the date for rolling out
the new feature, either statically (through redeploy) or dynamically
(through logic) the system will call the new classes instead of the old
ones. At some point, remove the old classes from the code and redeploy.

They are variations on the same theme.

I assume you have either VSS or VSTS?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--

Aug 23 '06 #4

Nick Malik [Microsoft] wrote:
Our messages are a bit out of order, so I reordered the text of the
conversation to make it easier for me.
I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?
As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one
DLL.
So if you update the code-behind pages for two pages on the same site,
and
compile, and deploy the dll, you've deployed both changes.
So even if I don't move the code-behind page to the live server,
because I have updated the dll it will still run the updated code from
the code-behind page?

I'm not sure if I'm understanding correctly. I assume you mean this:
You created a new ASPX page.
The code behind needed a different feature from existing code
You modified existing code to provide this new feature. This work is not
complete.
You also had to fix a bug in existing code. You did so. This work is
complete.
You deployed the bug fix.
Even though the ASPX page itself is not deployed, you are confused as to why
the feature change went into production.

By definition, you have two things here: you have the ASPX page (which is
now fairly light, unless you are in the Ajax model) and you have the
code-behind, which is a shared DLL for the entire site.

You have a classic problem: two bodies of code, one for supporting existing
functionality, while the other is for rolling out new functionality.

There are lots of different ways to work around this, but the most common
are:
1) branch your source control tree to allow bug fixes in one body of code
while allowing new features to be added to the other. Note that bug fixes
have to be made in both branches. This often means making the same
functional change twice.
2) create new classes in your code that the new features will use, and
maintain both the old classes and new classes. Roll out as often as you
want, as long as the new classes are not called. On the date for rolling out
the new feature, either statically (through redeploy) or dynamically
(through logic) the system will call the new classes instead of the old
ones. At some point, remove the old classes from the code and redeploy.

They are variations on the same theme.

I assume you have either VSS or VSTS?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
So would I just comment out the calling of the new classes (with the
new functinality) until such time as they are needed?

Thanks,

Chris

Aug 24 '06 #5

Nick Malik [Microsoft] wrote:
Our messages are a bit out of order, so I reordered the text of the
conversation to make it easier for me.
I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?
As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one
DLL.
So if you update the code-behind pages for two pages on the same site,
and
compile, and deploy the dll, you've deployed both changes.
So even if I don't move the code-behind page to the live server,
because I have updated the dll it will still run the updated code from
the code-behind page?

I'm not sure if I'm understanding correctly. I assume you mean this:
You created a new ASPX page.
The code behind needed a different feature from existing code
You modified existing code to provide this new feature. This work is not
complete.
You also had to fix a bug in existing code. You did so. This work is
complete.
You deployed the bug fix.
Even though the ASPX page itself is not deployed, you are confused as to why
the feature change went into production.

By definition, you have two things here: you have the ASPX page (which is
now fairly light, unless you are in the Ajax model) and you have the
code-behind, which is a shared DLL for the entire site.

You have a classic problem: two bodies of code, one for supporting existing
functionality, while the other is for rolling out new functionality.

There are lots of different ways to work around this, but the most common
are:
1) branch your source control tree to allow bug fixes in one body of code
while allowing new features to be added to the other. Note that bug fixes
have to be made in both branches. This often means making the same
functional change twice.
2) create new classes in your code that the new features will use, and
maintain both the old classes and new classes. Roll out as often as you
want, as long as the new classes are not called. On the date for rolling out
the new feature, either statically (through redeploy) or dynamically
(through logic) the system will call the new classes instead of the old
ones. At some point, remove the old classes from the code and redeploy.

They are variations on the same theme.

I assume you have either VSS or VSTS?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
So would I just comment out the calling of the new classes (with the
new functinality) until such time as they are needed?

Thanks,

Chris

Aug 24 '06 #6
"Hannibal111111" <Ha************@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>
Nick Malik [Microsoft] wrote:
>You have a classic problem: two bodies of code, one for supporting
existing
functionality, while the other is for rolling out new functionality.
>There are lots of different ways to work around this, but the most common
are:
>1) branch your source control tree to allow bug fixes in one body of code
while allowing new features to be added to the other. Note that bug
fixes
have to be made in both branches. This often means making the same
functional change twice.
>2) create new classes in your code that the new features will use, and
maintain both the old classes and new classes. Roll out as often as you
want, as long as the new classes are not called. On the date for rolling
out
the new feature, either statically (through redeploy) or dynamically
(through logic) the system will call the new classes instead of the old
ones. At some point, remove the old classes from the code and redeploy.

They are variations on the same theme.
>
So would I just comment out the calling of the new classes (with the
new functinality) until such time as they are needed?

Thanks,

Chris
That would be one interpretation of my second suggestion above. Yes. Just
comment out the calls to the new code, recompile, test, and deploy.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Aug 25 '06 #7

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

Similar topics

4
1535
by: CajunCoiler \(http://www.cajuncoiler.tk\) | last post by:
I have constructed, and packaged a project that works as planned, but for some strange and odd reason, setup fails miserably on SOME Windows ME systems. They get a dialog box about system files...
10
1392
by: Amit | last post by:
Hi I have occured a very strange situation. The scenario is as follows. I have two buttons in the form. First button is Load button and the second one is Delete button. As the name suggests...
4
2167
by: sgurminder | last post by:
Can anyone explain how this shell spawning code works...... I am not able to figure out exactly..... I got this from Aleph1's Smashing the stack file. :) Here it is...
7
2556
by: anushhprabu | last post by:
#define q(k)main(){ return!puts(#k"\nPRABUq("#k")");} q(#define q(k)main(){return!puts(#k"\nq("#k")");}) guys i'm working on this code.. i got it fromnet.. how this is working.. anyone pls.....
3
11181
by: danceli | last post by:
"The log file for database is full. Back up the transaction log for the database to free up some log space." Now I only know this way to deal with that manually, Step1. in option , chance...
3
1269
by: pai | last post by:
Hi , Below is the code . ********************** #include<iostream> using namespace std; class A{
0
938
by: luckilian | last post by:
Hi guys .. Im new around here and i have a problem .. is related to vb.net and mysql ad sound like that : i'm trying to extract a datetime value from a mysql database.The feld is in format ...
1
1420
by: KF4fun | last post by:
Recently i am being given a windows aplication which was made using VB.net . I was asked to remake the windows aplication but i found it quite hard to do so because i am new to VB.net . The codes...
0
7245
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
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
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,...
1
7085
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...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5069
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...
0
3227
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...
0
1577
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 ...
0
449
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...

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.