Domanda

I using jquery validation and jquery v1.9.1.Everything works fine on locall host but when publish website on test server it's not work complete.

If I enter a word like 'hello' or '$#-' another symbol in a userName on test server it's work fine, but if enter 'سلام' (Persian) not work.(in local host 'hello' and 'سلام' work fine) in rules check active user name,but when type persian word it's not fire and show this error: 'Error Code: 500 Internal Server Error. The request was rejected by the HTTP filter. Contact the server administrator. (12217) '

 $("#signupForm").validate({
            onkeyup: false,
            rules: {
                username:
                {
                    required: true,
                    remote: {
                        url: "AuthenticateHandler.ashx?type=checkusername",
                        dataFilter: function (data) {
                            if (data == "wrong") {
                                return "\"" + "Username not correct" + "\"";
                            }
                            else if (data == "inactive") {
                                return "\"" + "Username not active" + "\"";
                            }
                            else {
                                return true;
                            }
                        }
                    }
                },
                password: "required",
            },
            messages: {
                username:
                {
                    required: "enter username",
                    remote: "Username not active",
                },
                password: "enter pass",
            },
            submitHandler: function () {
                $.ajax
                    ({
                        type: "GET",
                        url: "AuthenticateHandler.ashx?type=checkauthenticate&username=" + encodeURIComponent($("#username").val())
                            + "&password=" + encodeURIComponent($("#password").val()) + "",
                        async: false,
                        data: {},
                        success: function (message) {
È stato utile?

Soluzione

I change publish role settings in ISA following:

Configure HTTP in general tab in section 'URL Protection' set uncheck 'block high bit characters'. enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top