PC Review


Reply
Thread Tools Rate Thread

ASP.NET does not use latest DLL in bin folder

 
 
Richard
Guest
Posts: n/a
 
      9th Aug 2005
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
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      9th Aug 2005
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
 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      9th Aug 2005
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:%(E-Mail Removed)...
> 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



 
Reply With Quote
 
Curt_C [MVP]
Guest
Posts: n/a
 
      9th Aug 2005
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
 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      9th Aug 2005
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$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Patrick.O.Ige
Guest
Posts: n/a
 
      11th Aug 2005
IT guy u mean programmer?

"Richard" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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$(E-Mail Removed)...
> > 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

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move all except latest to another folder DavidH56 Microsoft Excel Programming 2 26th Apr 2010 03:47 PM
Find latest file in folder & Open Les Microsoft Excel Programming 2 26th Mar 2008 07:01 AM
How do I get the latest folder created (Help!!!) =?Utf-8?B?T3JpZ2luYWxTdGVhbHRo?= Microsoft Dot NET 3 23rd Aug 2007 06:18 PM
Find folder with next to latest date Ed Microsoft Excel Programming 2 28th Jul 2004 08:51 PM
Latest Security Update Breaks Folder Properties AndyC Windows XP General 4 12th Nov 2003 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:31 AM.