• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

ASP.NET and IIS totally ignoring vb codebehind changes

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.


  • 2
1 Solution
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...
JXCovertAuthor Commented:
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.
Use publish feature in Visual Studio or Copy ALL files and directories again, not only your modified file.
JXCovertAuthor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now