Click Once Data Directory
Click Once Data Directory Source: http://blogs.msdn.com/b/winformsue/archive/2006/04/26/584559.aspx Under ClickOnce, the data directory is a long, garbled path, such as C:\Documents and Settings\ username \Local Settings\Apps\2.0\Data\DXQV72TZ.3GR\EERQ26OC.Y91\test..tion_9d0ab10300fca701_0001.0000_edbfed2eeae795d5\Data . I can find the value of this path (deliberately obscured to foil easy discovery of my app's data) by calling Application.UserAppDataPath . However , when I'm debugging my app in Visual Studio, the data directory path is set to C:\Documents and Settings\ username \Application Data\ Publisher Name \ App Name \ Version Number . Private Function GetDataDirectory() As String Dim _ExeDir As String Dim _PathStr As String If (ApplicationDeployment.IsNetworkDeployed) Then ...