jQuery Ajax to asp.net asmx web service throws Request format is invalid: application/json

前端 未结 2 1280
别那么骄傲
别那么骄傲 2021-01-05 04:54

I have jquery call an asp.net webservice with an integer. On our legaacy application which was ported to .net 4.0 I cannot get this call to work. I can call a method which h

2条回答
  •  清酒与你
    2021-01-05 05:35

    I had the same problem and ending up running this command...

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -i
    

    Note that you will need your command prompt in Administrator mode for it to work.

提交回复
热议问题