This code:
private void Submit_Click(object sender, RoutedEventArgs e) { user temp = new user(); temp.Username = UserName.Text; temp.Password = Password.Text
I got a similar problem, it seems that there are problems with the url rewriting.
http://www.lukemelia.com/blog/archives/2007/01/05/aspnet-the-http-verb-post-used-to-access-path-is-not-allowed/
You have to remove the mapping of ‘*’ to aspnet_isapi.dll in yourIIS settings.