Visual Studio 2005 - .vb code-behind pages are not saving even after save/build/rebuild

Frustrating that I cannot figure out why after installing VS2005 that after I make changes to the code-behind save and rebuild ... that nothing changes when I run it.

For example I can ' comment out each of the parameters being passed to
            cmd.CommandText = sSQLInsert
            cn.Open()
            cmd.ExecuteNonQuery()

and still the code runs like nothing was changed.

Please refresh me as to what may be going on?
Dale MassicottePresidentAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SammyConnect With a Mentor Commented:
Delete all dlls from the bin directory then clean solution and build
0
 
bc10Connect With a Mentor Commented:
Did you try Cleaning the solution?  Right click on the Solution in the Solution Explorer and select Clean.  I've found this to solve some strange VS issues.
0
 
Dale MassicottePresidentAuthor Commented:
Yes

I cleaned it also
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Dale MassicottePresidentAuthor Commented:
Some more info

I had the original files created by VS.NET 2003

I tried to modify the .vb code behind page before but it was not working ..  so what I ended up doing was moving the .vb code to the .aspx page and deleting the .vb page.  Finally I got the page to recognize the changes.

This is so frustrating because it seems that I can never get Visual Studio to work the way it is supposed to.

I really wish to avoid putting everything in the .aspx page because the coding gets messy.

This has to be some kind of compiling error....even though it says BUILD SUCCEEDED it is not recognizing the changes made in the .vb code-behind page.
0
 
Dale MassicottePresidentAuthor Commented:
Maybe I just create new pages and copy everything over?  Who knows
0
 
Dale MassicottePresidentAuthor Commented:
Experts!

Reveal yourselves!
0
 
Craig WagnerConnect With a Mentor Software ArchitectCommented:
Have you tried stepping through the code you thought you changed in the debugger and see if it is indeed executing those lines that should have been commented out?

Are you perhaps running a different copy of the executable? For example, maybe you're doing a Debug build but running the version from the Release folder.

Can you upgrade to a more current version of Visual Studio? VS2005 is almost ten years old at this point.
0
 
SriVaddadiConnect With a Mentor Commented:
are you running on your dev web server (that comes with VS) or using a IIS server?  If you are using IIS, unless u publish your changes to IIS (or using your code folder as virtual directory) the changes are not reflected.

If its dev server, use Ctrl+F5 on your browser to refresh.
0
 
Dale MassicottePresidentAuthor Commented:
After I deleted the old dll's in the bin file ... afterwards i had to modify

Inherits="  " (as the project name changed)

on the top line of each .aspx page in order for the project to work.

Thank you experts.
0
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.

All Courses

From novice to tech pro — start learning today.