gpt4 book ai didi

android - SoapFault - system.UnauthorizedAccessException : Access to the path 'C:\inetpub\wwwroot\ErrorLogs\ErrorLog20141017.txt' is denied

转载 作者:行者123 更新时间:2023-11-29 21:00:00 31 4
gpt4 key购买 nike

在使用 soap 网络服务将数据传输到网络时出现以下错误。

            envelope.setOutputSoapObject(request);

httpTransport.call(SOAP_ACTION_DATA, envelope);

DBServiceNew.LoadXmlString(String projectName, String formName, String userId, String xmlData)

httpTransport.call(SOAP_ACTION_DATA, envelope); 上出现 GETTING 错误时,所有参数都很好,我在 log cat 上遇到了这个错误。

10-17 10:21:42.724: W/System.err(6575): SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\ErrorLogs\ErrorLog20141017.txt' is denied.
10-17 10:21:42.724: W/System.err(6575): at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
10-17 10:21:42.724: W/System.err(6575): at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575): at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575): at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575): at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575): at System.IO.StreamWriter..ctor(String path, Boolean append)
10-17 10:21:42.724: W/System.err(6575): at CreateLogFiles.ErrorLog(String sPathName, String sErrMsg)
10-17 10:21:42.724: W/System.err(6575): at DBServiceNew.LoadXmlString(String projectName, String formName, String userId, String xmlData)
10-17 10:21:42.724: W/System.err(6575): --- End of inner exception stack trace ---' faultactor: 'null' detail: org.kxml2.kdom.Node@42d34eb8
10-17 10:21:42.724: W/System.err(6575): at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:136)
10-17 10:21:42.724: W/System.err(6575): at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:137)
10-17 10:21:42.724: W/System.err(6575): at org.ksoap2.transport.Transport.parseResponse(Transport.java:96)
10-17 10:21:42.734: W/System.err(6575): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:189)
10-17 10:21:42.734: W/System.err(6575): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95

任何人都知道这种类型的错误,请给我一些如何解决此类问题的提示。谢谢。

最佳答案

看起来您的服务器有问题,您是否能够使用类似 SOAP UI 的东西直接访问服务器。我不认为您的 Android 代码有问题。

关于android - SoapFault - system.UnauthorizedAccessException : Access to the path 'C:\inetpub\wwwroot\ErrorLogs\ErrorLog20141017.txt' is denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26420889/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com