Publish app with sdf file: App cant find sdf file on startup

I tried different Connection Strings:
string SqlCeConnectionString = ("Data Source=" + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)) + "\\MyDB.sdf;Persist Security Info=False;");
string SqlCeConnectionString = "Data Source=.\\MyDB.sdf;Persist Security Info=False;";
string SqlCeConnectionString = "Data Source=|DataDirectory|\\MyDB.sdf";
nothing works.
the setup installs the exe in
C:\Users\username\AppData\Local\Apps\2.0\1C1EGPV1.P4R\56LLV010.2KD\visu..tion_c62c64a8a0dbac4c_0001.0000_5ebabaeba8908fad
and the sdf in
C:\Users\username\AppData\Local\Apps\2.0\1C1EGPV1.P4R\56LLV010.2KD\visu...exe_c62c64a8a0dbac4c_0001.0000_de-de_38ebd03188c0d379
isnt that strange?
henry

Hello,
You can refer to the following thread about how to configure and publish application including a SQL Compact database file (.sdf):
http://social.msdn.microsoft.com/Forums/vstudio/en-US/f26911c7-b225-4ac2-a7bb-dd2fc477b01c/how-to-deploy-windows-application-with-attached-sdf-db-files?forum=vbgeneral
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support

Similar Messages

  • I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • I can't get my music to play in my itunes. It comes with a exclamation mark next to the song numbers and says that the original songs can't be played cause cant find the file. How do I get the songs back? (I found the files)

    I can't get my music to play in my itunes. It comes with a exclamation mark next to the song numbers and says that the original songs can't be played cause cant find the file. How do I get the songs back? (I found the files

    You get exclamation marks or dead tracks because  iTunes can’t find the file. This can happen for a number of reasons:
    The song file or a folder in its path was renamed
    The song file or the folder it is in has been moved
    The song file has been deleted
    The device containing the song files e.g. external drive is not accessible or the drive letter has changed.
    If you use an external drive, a change in drive letter is a common cause and you need to change it back.
    AS a way of working out what has happened, right click on a track and select the summary tab (you will have to go past an error message). The summary tab will tell you where iTunes thinks the track is located. How does that compare with where the track actually is?
    The xml library file is not used by iTunes, it is created to allow other programs to access the library. You can recreate the iTl file from the xml file, but there is no point if the location of the files is wrong.
    There is a simple way of getting you music back in iTunes, but it loses all playlists counts and rating. To do this drag iTunes library.itl and iTunes Library.xml to your desktop. Then open iTunes and an empty library is created. Add you iTunes Media folder to it.
    If you can't work out what went wrong and how to fix it, you may have to do this.

  • I downloaded a .zip file. It ate up my space and i cant find the file. How do i get this file off my phone?

    I downloaded a .zip file. It ate up my space and i cant find the file. How can i get this file off my phone?

    Not possible. Safari won't download and save a Zip file. You either had to use a 3rd party app, or as wjosten suggests, your phone is jailbroken. If the former, you'll need to use that app to find it. If the latter, you'll have to look elsewhere for assistance.

  • Cant find the file for approval

    Hi Guys,
    I have selected service application tool package for download.it requires approval which is to be done in MOPZ.
    When i login to our solman i cant find the file for approval in MOPZ.
    steps that i follow
    1. Tcode DSWP.
    2 go to change mdmt
    3 select Maintanence optimize.
    I cant find the file to approve.
    Do i need to create  a new maintaince tcode...?
    Please help

    Hello,
    Please make sure that the S user password is not in initial state. Please also make sure that you can login with no issues in the SAP Service Marketplace , and that the 'authorization test' for SAP-OSS  works OK.
    I am not sure about when you report the error message as: "Logon information is not write." . What do you mean?
    Also, you say that you go to DSWP and the file is not there to approve. The correct way to approve files from Maintenance Optimizer when downloading manually, is to create the Maintenance Optimizer document, then choose the manual selection option, then select the files from within Maintenance Optimizer, and then proceed with the download from Maintenance Optimizer.
    Best regards,
    Miguel Ariñ

  • GB3 BUG or 10.4.4 BUG  or BOTH Bugged! cant find Audio Files (APPLE READ)

    my set ups; G5 QUAD 4GB OS X.4.4 GB 3.0 same exact GB song
    G5 2.5DP 2.5GB RAM OS x.3.9 GB 2.02 same song
    when i load some GB2 songs done on OS 10.3.9 into new up to date set up the QUAD with GB 3.0 and 10.4.4 i get this message while the song is loading alot ( one example )
    EXS 24 instrument "Funk HOrn Section.exs"
    Audio file "Brass fall Sh 2 C#.AIF" not found, yet it is there in the sampler files of the Gb 3 folder as well as in the Gb 2 folder on both computers. These are software instruments that when clicked on ( in track ) are silent. double click and they open up in the new GB3 track info window and are silent. apparently for some reason in
    Gb3 or in 10.4.4 they are not being read. this is happening more than once!!!!!!!!!! will tell APPLE

    Yes I have the same issue and have had it occur whenever I upgrade and clone my hardrive. Everything else works but random loops are 'lost' from existing songs even when the track is saved as an archive. I am using GB 2 and OS 10.3.9
    I've noted it occurs with
    1) loops that I edit and use just a portion of
    2) loops with filenames longer than 32 characters
    I've also noted that while 32+ character named loops appear correctly in the loop browser they do not appear with the full name when dragged into a track. There they appear in the trunicated garbaged ending. Note that this is EXACTLY what long file names look like when viewd in OS 9 which has a 32 character limit. So what does that mean?
    I'm just sick of every time I upgrade a hardrive and clone the drive having to check each and every song and then manually tinker with those who suddenly cant find the loops within them. Everything else works so what is breaking in GB?
    I have a thread concerning this posted on macjams.com:
    http://www.macjams.com/forum/viewtopic.php?forum=1;showtopic=41262
    17" 1gz powerbook   Mac OS X (10.3.9)  

  • Downloaded photoshop elements 13 with windows 8.1. cant find it

    downloaded photoshop elements 13 with windows 8.1. cant find it

    restart the download and note where you're storing the file.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Cant find .mcp files

    hai,
    i want to create plugin for adobe indesign cs2. i installed 4.0.2 sdk and 4.0.3 sdk in my mac 10.4.8 machine. for use the code warrior i search for .mcp files inside the sdk folders i cant find any file has such extension. how to get the file with .mcp extension?
    thanks
    subha

    Don't waste your time trying to edit wordpress template.  You just have to login to your wordpress account and edit the template from within it.
    The reason DW can't find the file is because the file is called index.php (NOT index.html OR index.htm)  Wordpress uses php and mysql database and trying to edit [pages in DW is completely stu***.  I don't want to use this word here just in case some people have sore nerves.
    hth

  • Are there any free apps with the same app iPhoto?

    Are there any free apps with the same app iPhoto?

    Do you want to get iPhoto for free, or are you looking for supplemental apps that are working well with iPhoto?
    I do not know of any free third party replacement for iPhoto. For add-ons browse the Store - there are some nice camera apps, image editors,  and panorama stitchers, some are free (cam wow, pic collage, Photo splash, pixlr-o-matic).

  • Excel cant find this file when double clicking to open

    Hi,
    Our Imacs 10.8.2 and 10.7.3 joined to windows 2008 domain cant open certain excel files from the network share. When double clicking the file or opening from excel -> file open it says it cant find the file. If I drag the file to the desktop then it will open when double clicked. I have tried disconnecting the network drive and reconnecting. I checked permissions and even tried a few cleaner products such as mac keeper and ccleaner and still the same issue. I even upgraded one of the macs from 10.6.8 to 10.7.3 and the issue persisted. Its very strange as some users can open but others cant. Any insight greatly appreciated.
    Thanks
    Lorne

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • My itunes will not update.  and i can not uninstall becuse of some supid file it cant find

    My I tunes will not update.  and i can not uninstall becuse of some supid file it cant find. hence i cant connect to my iphone now that i hav the latest software on my phone.

    and i can not uninstall becuse of some supid file it cant find.
    What's the name of the file? (Precise text, please.)

  • I am getting an exclamation point in front of all tracks and message itunes cant find original file. How do I resolve

    I am getting an exclamation point in front of all tracks and message itunes cant find original file. How do I resolve

    Hey waltee911,
    It sounds like you're seeing something similar to this picture:
    If that's the case, the following article has troubleshooting steps to solve the issue:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Welcome to Apple Support Communities!
    Sincerely,
    Delgadoh

  • Can I exchange a multi app with a single app?

    Is it possible to update/replace a multi-folio app with a single-app version ?

    the key to sharing apps is that they all have to be on the same Apple ID. So if you have the same Apple ID on all the devices, they can share apps.
    You may want to research into messages, etc because that can be one of the pitfalls of sharing the ID's.

  • How can I re-export files when lightroom cant find the files?

    I am needing help locating my files after I have already exported them.  I orginally saved the photos on my desktop then moved them to my external hard drive.  I am needing to re-export the photos in High Res and lightroom cant find the files.

    There are two possible solutions I know of:
    1. Adobe Lightroom - Find moved or missing files and folders
    2. robcole.com - LrRelocationServices
    R

  • Office 365 App using NAPA - "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"

    Hello,
    I am creating an app using NAPA tool in Office 365. I am trying to "Add an attachment" to a custom list item using SPServices. When I am using my code  (jquery code) in content editor web part on a page, its working fine, but when I am adding
    the same code in an app, its giving me error :  "The system cannot find the file specified. (Exception from HRESULT:
    0x80070002)" - 500 Internal Server error.
    (function () {
    // This code runs when the DOM is ready and creates a context object which is
    // needed to use the SharePoint object model
    $(document).ready(function () {
    //alert('In doc ready');
    $('.attachmentButton').change(function(event){
    var listName = 'UploadTest',
    itemId = 2;
    handleFileChange(listName,itemId,event.target.files);
    function handleFileChange(listName,itemId,files){
    alert('In handleFileChange :=' + listName + "" + itemId + "" + files[0]);
    alert('files.length :=' + files.length);
    var filereader = {},
    file = {},
    i=0;
    //loop over each file selected
    for(i = 0; i < files.length; i++) {
    alert('In for loop');
    file = files[i];
    filereader = new FileReader();
    filereader.filename = file.name;
    alert('filereader.filename :=' + filereader.filename);
    filereader.onload = function() {
    var data = this.result;
    var n=data.indexOf(";base64,") + 8;
    //alert('n :=' + n);
    //removing the first part of the dataurl give us the base64 bytes we need to feed to sharepoint
    data= data.substring(n);
    //alert('data :=' + data);
    alert('Above SPServices this.filename :=' + this.filename);
    $().SPServices({
    operation: "AddAttachment",
    listName: listName,
    asynch: false,
    listItemID:itemId,
    fileName: this.filename,
    attachment: data,
    completefunc: function (xData, Status) {
    console.log('attachment upload complete',xData,status);
    alert('Status :=' + Status);
    if (Status.toLowerCase() == "error"){
    alert(xData.responseText);
    alert(xData.status);
    alert(xData.statusText);
    filereader.onabort = function() {
    alert("The upload was aborted.");
    filereader.onerror = function() {
    alert("An error occured while reading the file.");
    //fire the onload function giving it the dataurl
    filereader.readAsDataURL(file);
    alert(xData.responseText); - gives error - " "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)""
    alert(xData.status); - gives error - "500"
    alert(xData.statusText); - gives error - "Internal server error"
    Server Publishing infrastructure and Server publishing features are activated on site collection and site respectively.
    Any suggestions, why I am getting this error in NAPA ?

    Hi,
    According to your post, my understanding is that you have an issue about adding attachments to list items in app.
    To add attachment to list item in the host web, we should first get the list and the list items from the host web, then add the attachments to the list items.
    There are two articles about retrieve the list and list items in the host web, you can refer to them.
    http://www.dotnetcurry.com/showarticle.aspx?ID=1028
    http://www.c-sharpcorner.com/UploadFile/93cb27/retrieve-sharepoint-app-host-web-list-items-in-sharepoint-ho/
    What’s more, we can also use the REST API to achieve the same scenario.
    http://www.c-sharpcorner.com/UploadFile/472cc1/add-attachments-to-list-items-in-sharepoint-2013-using-rest/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Getting error FF with my extension: cant find the file at jar:file in omni.jar!/chrome/browser/content/browser/ some junk text

    After installing my plugins to ff4 and ff5 I am getting error File not found.
    Firefox can't find the file at jar:file:///Applications/Firefox.app/Contents/MacOS/omni.jar!/chrome/browser/content/browser/%E6%A5%A6%E6%95%AC%E2%BC%BA%E2%BC%AF%E7%8D%95%E7%89%A5%E2%BD%B3%E6%B5%A1%E6%B1%AF%E4%B0%AF%E6%89%A9%E6%85%B2%E7%A5%B2%E4%84%AF%E7%81%B0%E6%A5%AC%E6%85%A3%E6%A5%B4%E6%B9%AF%E3%88%A5%E5%8C%B0%E7%81%B5%E6%BD%B0%E7%91%B2%E4%84%AF%E6%BD%A4%E6%95%A2%E4%8C%AF%E6%B9%AF%E7%89%B4%E6%89%A9%E7%91%B5%E2%95%A5%E3%80%B2%E5%8D%83%E2%B8%B5%E2%BC%B1%E6%BD%83%E6%99%AE%E6%9D%A9%E7%89%B5%E7%91%A1%E6%BD%A9%E2%BD%AE%E4%89%89%E5%91%85%E6%B5%A5%E2%BD%B0%E6%BD%83%E7%91%AE%E6%A5%B2%E7%95%A2%E6%95%B4%E3%84%B6%E3%9C%B8%E3%90%B4%E2%B8%B3%E6%89%A9e%E3%90%B4%E2%B8%B3%E6%89%A9e%08%01%EC%92%B0%E0%B0%BE%EC%92%B8%E0%B0%BE%EC%92%BC%E0%B0%BE%EF%BF%BF%EC%93%80%E0%B0%BE.

    Try:
    "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    * http://kb.mozillazine.org/Resetting_preferences
    Delete the files extensions.* (extensions.sqlite, extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.
    Create a new profile as a test to check if your current profile is causing the problems.
    See:
    * [https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile Basic Troubleshooting: Make a new profile]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Login timeout at boot

    When I restart my Mac Mini Lion Server, it only completes boot after I authenticate as an administrator. How do I configure the system to boot without local login? If I restart it remotely, or if it restarts when I'm not around to type in my username

  • Photoshop CS6 Crashing while Iddle

    I leave my computer on all day.  This is a new system Windows 7 Pro, 6 core i7 64 bit, 32MB of ram.  Using CS 6 64 bit as well.  I've had two crashes happen while being away from the house when returning to my computer and logging back on I have a cr

  • Can't Burn CD in iPhoto 6

    I'm trying to burn a CD in iPhoto 6. I'm only trying to back up 117 MB of photos in an album. However, I keep getting this error message: The burn to the MATSHITA DVD-R UJ-845E drive failed. The burn failed because of a medium write error." Any sugge

  • Visa communication

    Hiii I am using VISA write.vi & VISA read.vi for writing & reading data from device based on RS232 TO 485 Modbus protocol. My communication is working properly & i ma getting data perfectly. My question is: Is there any relation between VISA operatio

  • ICloud Add-in for OUtlook 2013 not loading

    I am tryng to sync Outlook 2013 (WIndows 7 Ultimate 64 bit)  with iCloud. It will just not load the Add-in! I cna see the Add-in reference in the Registry. Apple.DAV.Addin is in  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins. Load behav