clickonce xml data file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Wong

    #1

    clickonce xml data file

    Hi,

    I have some XML config file in my VB project.

    When I use clickonce to publish my project, the execute files and the xml
    data files are not in the same folder of the client computer. How can I get
    the real path of my xml data files? Thanks

    for example,
    execute file path:
    C:\Documents and Settings\ABC\Lo cal
    Settings\Apps\2 .0\ATYXOMR1.MJO \3MBQ94PV.A0L\c lic..tion_4593a 29cad7ddd6d_000 1.0000_8d6cefa7 f90cf08d

    xml data path:
    C:\Documents and Settings\ABC\Lo cal
    Settings\Apps\2 .0\ATYXOMR1.MJO \3MBQ94PV.A0L\c lic...exe_4593a 29cad7ddd6d_000 1.0000_none_d9f 1875ab364a710


  • Linda Liu [MSFT]

    #2
    RE: clickonce xml data file

    Hi James,

    Thank you for posting here!

    I noticed that you have posted the same question in our
    microsoft.publi c.dotnet.genera l newsgroup, which I have already responded.
    So please check my answer there and if you need any further assistance on
    this particular issue, please reply to me in that thread so I can follow up
    with you in time.

    For your convenience, I have included my reply as follows.

    Have you set the Publish Status of the xml file to "Data File"? If so,
    after installation, the xml file will be located in the Data directory in
    the end user's Local Settings folder. For information on reading from and
    writing to the Data directory, you could refer to the following link.

    http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx

    However, you have another option to publish the xml file. You could set the
    Publish Status of the xml file to "Include". In this case, after
    installation, the xml file will be located in the same path where the
    application's executable (.exe) files and assemblies reside. Thus you
    could access this xml file directly in your program.

    Thank you and have a nice day!


    Sincerely,
    Linda Liu
    Microsoft Online Community Support

    Comment

    Working...