The ScriptModule proposed by SP is probably missing you.
One more thing: your data parameter is not valid. I do not think this will cause the problem that you are seeing right now, but it may start to cause an invalid JSON primitive error after fixing the current problem. Change it like this:
data: '{"test":"test"}'
Key names must always be quotation marks, and quotes around keys and JSON values ββmust be double quotes (although ASP.NET more forgives this last point).
source share