[
  {
    "Id": "1445686",
    "ThreadId": "645414",
    "Html": "Hi, I download a zipfile from an Internet source and I store it in a folder. Then I call the Unzip sub-routine and it than I get this error: Could not find file...\r<br />\n<br />\nThis is the calling statement:\r<br />\n<br />\nUnzipFromFile(&quot;\\inetpub\\wwwroot\\MyModule\\Portals\\0\\SensorFiles\\LocationID#&quot; &amp; TextBox_Objects13_ObjectLocation0_ID_LSOB.Text &amp; &quot;<em>RCA</em>&quot; &amp; TextBox_Objects9_Object_SQLSEL_SQLSRTA_GRD_OCSCD_LKTRID_FBN_NXTWFL.Text &amp; &quot;.zip&quot;, &quot;c:\\inetpub\\wwwroot\\MyModule\\Portals\\0\\SensorFiles\\&quot;)\r<br />\n<br />\nThis is the sub:<br />\n<pre><code>Public Sub UnzipFromFile(ByVal zipFileIn As String, ByVal outFolder As String)\n    strTraceCode = &quot;#00;&quot;\n    '================  Start TraceLog  ================\n    strItem = &quot; #00; Special Functions: UnzipFromFile&quot;\n    strDetail = &quot;Unzip file(s): &quot; &amp; zipFileIn\n    strResult = &quot;To folder: &quot; &amp; outFolder\n    TraceLog(strModule, strItem, strDetail, strResult)\n    '=================  End TraceLog  =================\n    Try\n        Dim ZipToUnpack As String = zipFileIn\n        Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)\n            Dim e As ZipEntry\n            For Each e In zip1\n                 e.Extract(outFolder, ExtractExistingFileAction.OverwriteSilently)\n            Next\n        End Using\n    Catch Exc As System.Exception\n        mErrMessage += &quot; &quot; &amp; Exc.Message\n        '================  Start TraceLog  ================\n        strItem = &quot;### ERROR; TraceCode: &quot; &amp; strTraceCode &amp; &quot;; Special Functions: UnzipFromFile&quot;\n        strDetail = &quot;Unzip error&quot;\n        strResult = &quot;### ERROR: &quot; &amp; mErrMessage\n        TraceLog(strModule, strItem, strDetail, strResult)\n        '=================  End TraceLog  =================\n    End Try\nEnd Sub\n</code></pre>\n\nThis is the errorlog:<br />\n<h3>ERROR; TraceCode: #00;; Special Functions: UnzipFromFile; Detail: Unzip error; Result: ### ERROR: -1 Could not find file 'C:\\inetpub\\wwwroot\\MyModule\\Portals\\0\\SensorFiles\\LocationID#44_PH1_Air.zip'.</h3>\nMy question:\r<br />\n1st: Why is this file not found?\r<br />\n2nd: What should I do to to resolve this error; other words: do I need to insert the folder's path?\r<br />\n<br />\nThanks,\r<br />\nJos<br />\n",
    "PostedDate": "2015-09-24T02:03:36.477-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]