Vb.net 从Tablet调用Web服务时,不会写入日志

Vb.net 从Tablet调用Web服务时,不会写入日志,vb.net,web-services,Vb.net,Web Services,我们的应用程序正在调用一个web服务 通过使用Mozilla Firefox测试的浏览器调用此函数时,此函数会使用我们提供的值正确写入日志文件。但是,当通过在同一网络和不同网络上测试的平板电脑调用此功能时,不会向日志写入任何内容 很简单,看起来像这样: <WebMethod()> _ Public Function CreateClient( _ ByVal strUserID As String, _ ByVal strVehicleID As String, _

我们的应用程序正在调用一个web服务

通过使用Mozilla Firefox测试的浏览器调用此函数时,此函数会使用我们提供的值正确写入日志文件。但是,当通过在同一网络和不同网络上测试的平板电脑调用此功能时,不会向日志写入任何内容

很简单,看起来像这样:

<WebMethod()> _
Public Function CreateClient( _
    ByVal strUserID As String, _
    ByVal strVehicleID As String, _
    ByVal strUnit As String, _
    ByVal strHouse As String, _
    ByVal strStreet As String, _
    ByVal strCity As String, _
    ByVal strContactName As String, _
    ByVal strPhone As String, _
    ByVal strComments As String)

    Dim strReturn As String = "14"

    Dim strLog As String = ""
    strLog = "CreateClient strUserID = " & strUserID & ", strVehicleID = " & strVehicleID & ", strUnit = " & strUnit & ", strHouse = " & strHouse & ", strStreet = " & strStreet & ", strCity = " & strCity
    strLog &= ", strContactName=" & strContactName & ", strPhone=" & strPhone & ", strComments=" & strComments

    Class1.WriteLogEntry(strLog, Class1.LOG_TYPE_DEBUG)

    Return strReturn
End Function
我们知道我们正在访问并调用正确的web服务和函数,因为当我们更改返回值时,平板电脑在每次部署后都会显示正确的值。例如:当返回值设置为1时,平板电脑返回1,将其更改为14后,平板电脑也返回14

有人知道为什么没有写入日志,和/或如何修复吗


注意:如果您需要查看我们如何调用它的android代码,我会发布它,但再次强调,我认为这没有必要,因为我们已经知道我们正确调用了它并获得了正确的返回值。

不确定问题出在哪里,但在更改了2项之后,日志又开始工作了:

将所有代码从Class1移动到一个模块

已更改要保存到的目标文件

是否可能有其他东西锁定在文件上,从而阻止写入此日志?或者类和模块没有相同的文件写入权限