我尝试执行WebClient,但出现错误。
我已经在浏览器中直接测试了PHP表单是否有效,这很好。
http://localhost/CreateContact.php?Name=Abc&Number=123
我正在运行Apache24和PHP7.3.5
在 php.ini 中,我加载以下扩展名:
extension = php_pdo_sqlsrv_73_ts_x64
extension = php_sqlsrv_73_ts_x64
因此它是线程安全的。
WebClient client = new WebClient();
Uri uri = new Uri("http://localhost/CreateContact.php");
NameValueCollection parameters = new NameValueCollection();
parameters.Add("Name", "Abc");
parameters.Add("Number", "123");
client.UploadValuesCompleted += client_UploadValuesCompleted;
client.UploadValuesAsync(uri, "POST", parameters);
enter code here
该应用程序在我的Android上停止运行。显示的错误是:
05-24 18:57:38.045 E/mono-rt (27754): 71c6a000-71c6d000 rw-p 00000000 fe:01 5913 /data/dalvik-cache/arm64/system@framework@boot-android.hidl.manager-V1.0-java.art
05-24 18:57:38.045 E/mono-rt (27754): 71c6d000-71c6e000 rw-p 00000000 fe:01 5353 /data/dalvik-cache/arm64/system@framework@boot-oneplus_sdk_utils.art
05-24 18:57:38.045 E/mono-rt (27754): 71c6e000-71c6f000 rw-p 00000000 fe:01 4844 /data/dalvik-cache/arm64/system@framework@boot-oneplus_sdk_wrapper.art
05-24 18:57:38.045 E/mono-rt (27754): 71c6f000-71c70000 rw-p 00000000 fe:01 2949 /data/dalvik-cache/arm64/system@framework@boot-tcmiface.art
05-24 18:57:38.045 E/mono-rt (27754): 71c70000-71c72000 rw-p 00000000 fe:01 2224 /data/dalvik-cache/arm64/system@framework@boot-telephony-ext.art
05-24 18:57:38.045 E/mono-rt (27754): 71c72000-71c78000 rw-p 00000000 fe:01 197160 /data/dalvik-cache/arm64/system@framework@boot-WfdCommon.art
05-24 18:57:38.045 E/mono-rt (27754): 71c78000-71c79000 rw-p 00000000 fe:01 197091 /data/dalvik-cache/arm64/system@framework@boot-oem-services.art
05-24 18:57:38.045 E/mono-rt (27754): 71c79000-71c7e000 rw-p 00000000 fe:01 193760 /data/dalvik-cache/arm64/system@framework@boot-qcom.fmradio.art
05-24 18:57:38.046 E/mono-rt (27754): 71c7e000-71c85000 rw-p 00000000 fe:01 188449 /data/dalvik-cache/arm64/system@framework@boot-qcnvitems.art
05-24 18:57:38.047 F/libc (27754): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x20 in tid 28958 (Thread Pool Wor)
请帮助。有什么建议么?非常感谢。