I have some code commented out in my application, but when I run the application, it still gets executed. What am I doing wrong? I've rebuilt all my modules.
I could show you a snippet of the commented code but I don't know how that will help. It doesn't matter which module the commented code is in. It can be in the form or some class.
So, if you put a break point on a method where the method call was commented out, the method is still executed. There is only one place where this method is called so it is not as if it is called from any other area.
Just wandering....I'm running from a virtual directory but I don't have the Server Extensions configured. Do they have to be? As far as I know, they don't have to.
Have you made sure to compile your application before you ran it?
You also may have the exact same code in another area of your application. I had problems with this where the aspx page the browser was pointing to was in a different directory than the one the project was debugging on. This happened because I had a copy of the aspx file that was in the root directory and not included in my project. The server still served the page using the new compiled code. I had problems since the old aspx file did have some of the controls the aspx.vb file referenced.
Couple ideas anyway. That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
I deleted the whole Bin folder and then recompiled all the modules. This problem is when I try to run in debug mode (I haven't tried in Release mode). I even deleted the VS cache folder to make sure.
The code that I've commented out is in the Global (loading a dataset) and also in a form (code loading a list box from the dataset).
I agree, it has to be an old module....but I thought all the modules would be located my project folder.
Do you have sub folders? When you step through the code look at the title tab of the open file to see where it is located. Then check your browser to see if the two correspond.
If I come up with something else I'll post That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
Well Mark, I finally got it working. What I did was undo the changes I did a couple of days regarding the BIN folders. Instead of having a DEBUG and RELEASE folder in the BIN for compiled DLLs, I went back to just a BIN folder for both compile types.
Weird. I don't know how VS was getting confused, because I deleted all the files in all the BINs before doing a solution recompile. I did this several times.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.