473,406 Members | 2,713 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,406 software developers and data experts.

ASP.NET does not use latest DLL in bin folder

Help!!

I have been developing an ASP.NET web and loved the fact that deployment of code changes seemed simple in that all I did was replace the bin/myApp.dll and the changes were immediately available.

All of a sudden, today the dll changes do not appear to work. I even deleted the dll from the bin folder and the site still renders with the old dll code. Thus it appears the dll is in memory and does not reload itself as it seemed to do in the past.

I cannot reboot the server since there are other web sites running on it and the owners would not be happy their sites crash just so I can force my site to refresh the dll.

I spent the last hour searching for a solution to this problem and could not find any.

Thanks to anyone who can enlighten me on this perplexing issue.

Rich
Nov 19 '05 #1
5 1945
Richard wrote:
Help!!

I have been developing an ASP.NET web and loved the fact that deployment
of code changes seemed simple in that all I did was replace the
bin/myApp.dll and the changes were immediately available.

All of a sudden, today the dll changes do not appear to work. I even
deleted the dll from the bin folder and the site still renders with the
old dll code. Thus it appears the dll is in memory and does not reload
itself as it seemed to do in the past.

I cannot reboot the server since there are other web sites running on it
and the owners would not be happy their sites crash just so I can force
my site to refresh the dll.

I spent the last hour searching for a solution to this problem and could
not find any.

Thanks to anyone who can enlighten me on this perplexing issue.

Rich


restart that individual site, or if it's 2003 the app pool.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #2
Thank you Curt for the fast reply !!

Yes it is 2003. I had already restarted the site (no change), but
restarting the App Pool solved the problem !!

The strange part is that I had been merrily just updating the dll for the
past 2 months and never had this problem. I used it as a brag point to my
client on how fast I could change the site by just copying the dll - now it
seems I'll have to be logged on to the Server and have the IIS management
console open too in case I have to restart the App Pool too.

Oh well, you have saved my sanity - for the time being at least ;>)

Thanks again!

Rich
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Richard wrote:
Help!!
I have been developing an ASP.NET web and loved the fact that deployment
of code changes seemed simple in that all I did was replace the
bin/myApp.dll and the changes were immediately available.
All of a sudden, today the dll changes do not appear to work. I even
deleted the dll from the bin folder and the site still renders with the
old dll code. Thus it appears the dll is in memory and does not reload
itself as it seemed to do in the past. I cannot reboot the server since
there are other web sites running on it and the owners would not be happy
their sites crash just so I can force my site to refresh the dll.
I spent the last hour searching for a solution to this problem and could
not find any.
Thanks to anyone who can enlighten me on this perplexing issue.
Rich


restart that individual site, or if it's 2003 the app pool.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #3
Richard wrote:
Thank you Curt for the fast reply !!

Yes it is 2003. I had already restarted the site (no change), but
restarting the App Pool solved the problem !!

The strange part is that I had been merrily just updating the dll for the
past 2 months and never had this problem. I used it as a brag point to my
client on how fast I could change the site by just copying the dll - now it
seems I'll have to be logged on to the Server and have the IIS management
console open too in case I have to restart the App Pool too.


If you touch the web.config you will force the site to restart. That's
an easy way, usually, to ensure it. Check the cache settings on the
server also, these can come into play.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #4
Again thanks Curt, I like the "touch web.config" solution - easy one for a
programmer !

I usually stay out of IIS and server settings as much as possible since it's
too easy to mess up security especially in Server 2003 - so I leave that up
to the IT guy who by the way admits he couldn't write a line of code ;>)

Back to the fun part for me of coding as my heart beat has almost returned
to normal ...

Again you rock!

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Richard wrote:
Thank you Curt for the fast reply !!

Yes it is 2003. I had already restarted the site (no change), but
restarting the App Pool solved the problem !!

The strange part is that I had been merrily just updating the dll for the
past 2 months and never had this problem. I used it as a brag point to
my client on how fast I could change the site by just copying the dll -
now it seems I'll have to be logged on to the Server and have the IIS
management console open too in case I have to restart the App Pool too.


If you touch the web.config you will force the site to restart. That's an
easy way, usually, to ensure it. Check the cache settings on the server
also, these can come into play.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #5
IT guy u mean programmer?

"Richard" <ri**@acebartender.com> wrote in message
news:O8**************@TK2MSFTNGP14.phx.gbl...
Again thanks Curt, I like the "touch web.config" solution - easy one for a programmer !

I usually stay out of IIS and server settings as much as possible since it's too easy to mess up security especially in Server 2003 - so I leave that up to the IT guy who by the way admits he couldn't write a line of code ;>)

Back to the fun part for me of coding as my heart beat has almost returned
to normal ...

Again you rock!

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Richard wrote:
Thank you Curt for the fast reply !!

Yes it is 2003. I had already restarted the site (no change), but
restarting the App Pool solved the problem !!

The strange part is that I had been merrily just updating the dll for the past 2 months and never had this problem. I used it as a brag point to
my client on how fast I could change the site by just copying the dll -
now it seems I'll have to be logged on to the Server and have the IIS
management console open too in case I have to restart the App Pool too.


If you touch the web.config you will force the site to restart. That's an easy way, usually, to ensure it. Check the cache settings on the server
also, these can come into play.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com


Nov 19 '05 #6

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

Similar topics

2
by: dave | last post by:
Hi there I wanna write asp code to pick up *.MAI from particular folder and read them. There is no problem with reading the file but how can I pick up the latest file from particular folder? Any...
1
by: Wendy Elizabeth | last post by:
Can you give me some suggestions of why the xml web service is not working? I have an xml web service that works in my visual studio. net 1.1 environment. I setup this project up for deployment...
3
by: Mike Pace | last post by:
When I package my Microsoft Access 2002 application with the Office XP Developer Packaging Wizard, and include the runtime, the resulting OSP1.CAB file that is created does not contain the latest...
9
by: Mike P | last post by:
Problems, problems... Im trying to create DirectX Projects within C# and to also look at the latest DirectX C# Samples. I have just installed MS Visual C# .net Standard Edition on my Windows...
2
by: steve bull | last post by:
I am trying to do a build of an application against the latest .dll file for a library but the compiler insists on trying to load an older version : Graphics2D.dll(1.0.2142.164) instead of...
5
by: Reader | last post by:
Here is the story. I have my ASP.Net web appliacation that when I uninstall an old version and install a new version the old version's assemblies are still in the system somewhere and cause the...
7
by: morrisdn13 | last post by:
I have encountered a very strange problem that makes it look like the page is not recreated in entirety after a postback when I turn on smartnavigation. If I click on a server control, the page...
1
by: MM User | last post by:
Hi, I have a directory which I would like to search and list the latest file together with it date and time, I've found the following from w3schools for a particular file but do not know how to...
8
by: Matthew Wells | last post by:
Hello, I'm working on an ASP.net 2.0 web project using VS 2005. I'm on my laptop running IIS on WinXP SP2 with all the latest updates. The Default web site is set to run on .net 2.0 My...
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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
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...

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.