Greeting,
I developed a website using ASP.Net 3.5 and C#. It is working good with Visual Stdio 2010. I uploaded my website to my domain under the public folder.
Have you configured the virtual directory as an ASP.NET application for the right framework version?
See IIS Setup