This is a common scenario… it works on my machine but on another environment the application just refuses to work…
Well, I had a tough problem to solve lately. I was using WSS Application Pages and whenever I visit my application page, it gave me an error 404. I could even debug the code on the machine but it completes without an error and afterwards it just turned out to be a 404 in the browser.
The other pages were working fine… only this one was failing. I almost gave up on this but then I remembered it was the only page using AJAX.
The AjaxControlToolkit.dll wasn’t in the GAC. I really don’t understand why this isn’t logged anywhere. EventViewer? SharePoint Logs? Failure on debug? Nothing.
Anyways, make sure you have all your dlls in your bin folder or GAC.