Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Storage card in the emulator

Storage card in the emulator

Scheduled Pinned Locked Moved C#
helpquestiondatabase
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bacem smari
    wrote on last edited by
    #1

    Hi, I am a novice in developing mobile applications. The problem is with my mobile database which is saved in the storage card of the emulator. When i execute my program the following error occurs:

    Acces to the database file is not allowed. [File name = \Storage Card\ModeDifféré\BaseGmaoLocale.sdf]

    I have to keep you informed that the connexion string that i made is the following

    @"Data Source =\Storage Card\ModeDifféré\BaseGmaoLocale.sdf;"

    So what is the problem. How can i process to solve this problem. thank you for your help.

    M 1 Reply Last reply
    0
    • B bacem smari

      Hi, I am a novice in developing mobile applications. The problem is with my mobile database which is saved in the storage card of the emulator. When i execute my program the following error occurs:

      Acces to the database file is not allowed. [File name = \Storage Card\ModeDifféré\BaseGmaoLocale.sdf]

      I have to keep you informed that the connexion string that i made is the following

      @"Data Source =\Storage Card\ModeDifféré\BaseGmaoLocale.sdf;"

      So what is the problem. How can i process to solve this problem. thank you for your help.

      M Offline
      M Offline
      Michel Godfroid
      wrote on last edited by
      #2

      Are we still going about this? What you see in the emulator as 'Storage Card', is the directory that you have shared from your PC when you set up the emulator settings. In order to use the database on your emulator (or an device for that matter) you should copy this file somewhere in the '/' hierarchy of your device (the other drive you see in mobile explorer), and refer to it accordingly.

      B 1 Reply Last reply
      0
      • M Michel Godfroid

        Are we still going about this? What you see in the emulator as 'Storage Card', is the directory that you have shared from your PC when you set up the emulator settings. In order to use the database on your emulator (or an device for that matter) you should copy this file somewhere in the '/' hierarchy of your device (the other drive you see in mobile explorer), and refer to it accordingly.

        B Offline
        B Offline
        bacem smari
        wrote on last edited by
        #3

        Hi, I think that you gave me the idea without precision and i thank you. However i don't know how to do it. Can you show me how to do the copy please. thank you in advance. :sigh:

        B 1 Reply Last reply
        0
        • B bacem smari

          Hi, I think that you gave me the idea without precision and i thank you. However i don't know how to do it. Can you show me how to do the copy please. thank you in advance. :sigh:

          B Offline
          B Offline
          bacem smari
          wrote on last edited by
          #4

          thanks to tunisien86 that gave an idea to solve the problem this is the link you can see it if you have problems. thank you. http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/0f32993e-5b16-43b4-b7b6-09a3f66eb2f2/

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups