ClickOnce Error - File already exists

I have a pair of files in my program that have the same base filename, but different extensions -- ftn95lib.dll and ftn95lib.mdl. When I include both files in my clickOnce installation, the installation fails during the install saying:

The file 'C:\Documents and Settings\yi002949\Local Settings\Temp\Deployment\1DA5TE93.QLP\64Z4BZV1.LPN\ftn95lib.mdl' already exists.

If I remove either the mdl or the dll file from the installation, I no longer get the error message. Of course I can't run my program either.

Am I doing something wrong Or can someone suggest a workaround

Thanks,

Rob Miller



Answer this question

ClickOnce Error - File already exists

  • Matt_Bruce

    Rob,

    I have exactly the same problem in my deployment. Did you ever find a reasonable explanation for this

    Thanks,

    Robin


  • Aaronru

    This is likely due to, same file being listed multiple times, may be once as <file>, again as <dependency>. Or listed multiple times with different <dependency> identity but same codebase. I can confirm this if you paste application manifest.

    You can also search the entire application manifest (.exe.manifest) for presence of string ftn95lib.mdl, and see where it is repeated.



  • yyjjtt

    Is it possible that you paste here the ClickOnce installation log
  • M-Force

    Hi folks,

    I am having the same problem, except with a .pdb file I'm including in the deployment. My error message is:

    Code Block

    The file 'C:\Documents and Settings\Judah Himango\Local Settings\Temp\Deployment\X1DDMYR8.AKL\XJOC6MLE.5P4\MyCompany.MyProduct.Client.Presenters.pdb' already exists.



    I searched the application manifest for duplicates; there are no duplicates of this file.


  • ClickOnce Error - File already exists