This is a clear example of what happens when you do things without knowing/understanding why it's done in a given way. You saw that VS created an App_Code folder and put the class there, you are trying to do the same on LIVE site! Awesome!
Have a look at this article:
Beginner's Guide to ASP.NET Application Folder[
^]
If we store any class files (like .cs or .vb), ASP.NET handles files in special ways - compiler compiles them automatically. Putting class file now by creating App_Code will not do anything as its a compile time thing! This article would be a good read for you:
Shared Code Folders in ASP.NET Web Site Projects [
^]
Avoid doing 'shortcuts' with code changes next time.