I don't think the problem lies within the codes but..
The last thing I did was use datediff.. and show the result on a label.. and when I wasn't satisfied with the result I changed a few lines, and I noticed it was still the same whenever I run it.
I've tried changing/deleting the codes to my forms but whenever I run the program, it still works. I even tried deleting the form and it still works. Anyone know what could be the problem?

Dani AI

Generated

Most likely the binary that actually runs is not the source file you are editing: Visual Studio can be launching an older build, a different project in the solution, or a deployed copy (IIS/published folder). was on the right track — starting fresh isolates those possibilities — but try the checklist below first to avoid unnecessary work.

Quick checks: confirm the file you edit is the file on disk (right‑click the tab -> Open Containing Folder); save all files before running; verify the correct project is set as the startup project; search the whole solution for the control or code string to catch duplicate pages or included libraries; check Project Properties -> Build -> Output path to make sure output DLL/EXE goes where you expect. For ASP.NET, verify whether the site is served by the VS dev server or by IIS and that you are not hitting a published copy.

If the above does not help, force a full rebuild and purge caches. From Visual Studio do Build -> Clean Solution then Build -> Rebuild Solution. Close VS and manually delete the project bin and obj folders. For ASP.NET you may also need to clear the Temporary ASP.NET Files and restart IIS (run as admin):

rmdir /s /q "%windir%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files"
rmdir /s /q "%windir%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files"
iisreset

Advanced checks: look at timestamps of the DLLs in the bin folder to see what was last built; ensure you are not referencing a prebuilt DLL in the GAC or a class library project that wasn’t rebuilt; attach the debugger to the running process to confirm which assembly is loaded. If these steps still fail, move the code into a new project as suggested — that will prove whether the problem is environmental. Avoid running destructive commands on production servers.

Recommended Answers

All 5 Replies

Are you getting an errors at all? If you have an error it will not update the forms code until the error is fixed so that may be the issue. If not, then I am not sure what the issue may be.

Nope, there are no errors in the error list box. Oh well.. Thanks anyways. :)

Try to create a New Project and just copy and paste the working code into that project. I have had the same issue before and this seemed to do the trick.

May be you are dreaming, you need to wake up and check your application code.

day dreaming . maybe you can just make a new project.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.