ASP.NET and IIS totally ignoring vb codebehind changes

Posted on 2008-11-17
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
    LVL 37

    Expert Comment

    try deleting the server cache, for 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

    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.
    LVL 8

    Expert Comment

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

    Accepted Solution

    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

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now