>Ok, I put back Global.asax file in the application root. The code behind file remained in App_Code. I removed the buildprovider line I added in Web.config. So, by doing it like that, it works. Thanks
Never change more than one thing at a time to come to a conclusion <g>...
>You mentioned that in VS 2005, the global.asax can be self contained. Does this mean we can get rid of the code behind file? If yes, does this mean we simply move the code from the code behind file into Global.asax?
Yes. If you rename global.asax and then add one in VS, you can see what that looks like. You need to have the right headers in plac but otherwise yes that's it.