David Guyer DataFile DirectoryNotFoundException

Please I ask all of you not to answer unless you are sure that this is the answer

Hey David

I publish an application using ClickOnce, in the visual studio I add a folder called:

ProjData and put a file in it and call it Con.xml

Set the file to be DataFile and publish.

It works fine, now I add a nother file to the directory and change the current file again works great, BUT

Now I add another directory, into the other directory and set a file in it and set him as DataFile as well, on the client computer when update I recieve a directory not found exception (For the new directory offcourse) and the application will not work until the user uninstall and install the application.

What do I do Is it a known Bug

Itzik Katzav

Sorry, but I do not like this answer:

http://support.microsoft.com/kb/911792/en-us

Microsoft cannot expect us not to change the DataDirectory structure. Can't she

 



Answer this question

David Guyer DataFile DirectoryNotFoundException

  • John van Kaam

    I'm sorry that I do not know the answer to this issue. The KB article you found points out that this is a known bug... this is not the way we intended it to work.

    I believe it works quite well if you just use files in the root of the project and mark them as "DataFile"s. The problems seem to arise when one uses sub folders.

    I will send this issue to some other team members who are more familiar with this issue, and hopefully they can provide better information.



  • esin gulten

    As always thank you for your response.

    Well for now I created a workaround in two of my companies project where subfolders are required. I created a folder name Junk in the Root, and in the start up I create the structure and copy each file to its folder.

    Hope that this Bug will be fixed and will be part of the next framework

    Itzik Katzav


  • David Guyer DataFile DirectoryNotFoundException