Change "CodeBehind" to "CodeFile" in the Line1 and it should now run also on IIS without any errors.
If you get the same error after changing you may have a diffrent .NET version as in your ApplicationPool defined.
Sorry for english, dont have a persian keyboard on my workstation here :-)