ASP.NET and IIS totally ignoring vb codebehind changes

Posted on 2008-11-17
Medium Priority
Last Modified: 2013-11-08
I have a page MyPage.aspx

I have a codebehind MyPage.aspx.vb

I deployed to IIS box, it ran okay, I saw something I wanted to change, so I modified the vb file.  IIS is ignoring the change, same content is displayed WITH THE EXCEPTION of a time label I put on the form to ensure that the page content wasn't cached locally.

Every time I refresh, the time changes, but new code changes are ignored.  I even renamed the vb codebehind file and the app still runs.

It appears to me that IIS is not sensing the code change and is running a compiled version of my code.  I am deploying just by copying local aspx, vb, etc files to the server.

Stopping IIS no effect.  Recycling app pool no effect.

This is VS 2008 3.5 framework IIS 6 VB.NET

Regards, all.


Question by:JXCovert
  • 2
LVL 37

Expert Comment

ID: 22978251
try deleting the server cache, for asp.net 2.0+, on the web server, it's located at:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Everything in there can be deleted...if you find a file is locked....try stopping IIS before you delete...

Author Comment

ID: 22979950
Thanks Sam..

Tried it, but No Dice.  I have recreated the Virtual Dir.  Stopped IIS,  Deleted temp files.  Stopped the web site.  Renamed files.  Nothing works.  

I even rebooted my web server, then renamed the code behind file to comething other than what is referred to in the aspx.  IIS insists on running some phantom piece of code somewhere.

Expert Comment

ID: 22980534
Use publish feature in Visual Studio or Copy ALL files and directories again, not only your modified file.

Accepted Solution

JXCovert earned 0 total points
ID: 23128860
This remains a mystery, at least to some extent.  The project was a Web Application, when we "converted" to a Web Site, it began to behave in a more expected manner.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question