Asp.net with c# website chages from localhost to hosting site

i have a problem while i am hosting my website using iis, when i am clicking the buttons which will communicate database showing server error / application but no problem with site when i am execute as a local host