title: Visual Basic application returning a 550 error
body: <p>I have a Visual Basic .net desktop application that was originally designed to find Windows CE 5.0 devices on an ethernet network via IP address.</p>
  
  <p>When it finds a device, it will copy the SQL Compact database ( 3.5 SP1) .sdf file out of the device and onto the users local PC for manipulation using the WebClient class.</p>
  
  <p>Recently, we had to change the Windows device and it is now running Compact Embedded 7 with SQL Compact database version 3.5 SP2.</p>
  
  <p>Now, when the Visual Basic application is run, it finds the device via IP address, but throws an exception of 550, file not found or no access.</p>
  
  <p>The file is in the correct location, and as far as I can tell, all the correct file access rights are in place on the device.</p>
  
  <p>Does anyone know of any potential issues migrating from CE 5.0 to EC 7 or with SQL Compact Embedded 3.5 SP1 to 3.5 SP2 that could be causing an exception of 550 being thrown?</p>
  
  <p>Here is the code that is throwing the exception: <em>fileTransfer.DownloadFile(IPAddr, localTempFile)</em></p>
  
  <p>IPAddr is a string that is passed that contains the database file path on the CE device.  localTempFile is the location to store a copy of the database on the users local PC.</p>
  
  <p>'Retrieve physical location info to create folder name for backups
      Public Shared Function retrieveFolderInfo(ByVal IPAddr As String, ByVal localTempFile As String)</p>
  
  <pre><code>    Dim fileTransfer As WebClient = New WebClient()
      Dim dataReader As SqlCeDataReader
      Dim folderName As String = ""
  
     fileTransfer.DownloadFile(IPAddr, localTempFile)
  </code></pre>