{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "I have a project within a solution for updating an application in C # with WPF. \nto pass the value of the URI to a variable, an error is displayed: URI Format not suported. \nExample URI:\n```\n\"http://www.meusite.org.br/Cantina\" \n```\nNow if I put the server address as instance runs. \nExample server address:\n```\n @ \"\\\\myserver\\wwwroot\\meusite.org.br\\Cantina\" \n```\n\nThe code below shows how it is done this update and the error is shown in the row where the file variable is passed as the Zipfile.read method (file) parameter. \n\n```\nusing System.Diagnostics;\nusing Ionic.Zip;\nusing System.Xml;\nusing System.IO;\n\n\nnamespace Updater\n{\n    public class Program\n    {\n        private static void Main()\n        {\n           Process[] process = Process.GetProcessesByName(\"IASD.ASCS.WPF\");\n            foreach (Process proc in process)\n            {\n                if (!proc.HasExited)\n                    proc.Kill();\n            }\n            XmlDocument doc = new XmlDocument();\n            doc.Load(\"http://www.meusite.org.br/Cantina/arquivoXML.xml\");\n            if (doc.DocumentElement != null)\n            {\n                XmlNode node1 = doc.DocumentElement.SelectSingleNode(\"/Application/ZipFile\");\n                if (node1 != null)\n                {\n                    File.Create(@\"\\Temp\");\n                    string exePath = System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;\n                    string dir = Path.GetDirectoryName(exePath);\n                    string zipfile = node1.InnerText;\n                    const string end = (\"http://www.meusite.org.br/Cantina/\");\n                    string file = (end + zipfile);\n                    string path2 = (dir + @\"\\Temp\");\n\n                    ZipFile zipFile = ZipFile.Read(file);\n                    {\n                        foreach (var zipEntry in zipFile)\n                        {\n                            zipEntry.Extract(path2, ExtractExistingFileAction.OverwriteSilently);\n                        }\n                    }\n                    \n                    string[] arquivos = Directory.GetFiles(path2);\n                    foreach (string item in arquivos)\n                    {\n                        string nomedoarquivo = Path.GetFileName(item);\n                        if (nomedoarquivo != null)\n                        {\n                            string destino = Path.Combine(dir, nomedoarquivo);\n                            File.Copy(item, destino, true);\n                        }\n                    }\n                    string[] arquivosApagar = Directory.GetFiles(path2);\n                    foreach (string item in arquivosApagar)\n                    {\n                        File.Delete(item);\n                    }\n\n                    Process.Start(exePath);\n                }\n            }\n            const string nomeExecutavel2 = \"Updater.exe\";\n            foreach (Process pr2 in Process.GetProcessesByName(nomeExecutavel2))\n            {\n                if (!pr2.HasExited) pr2.Kill();\n            }\n        }\n    }\n}\n```\nI need to pass the host address instead of passing the address of the server as if the user is outside the network it can upgrade the system.",
    "LastUpdatedDate": "2014-04-16T11:38:33.587-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2014-04-16T11:29:05.46-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "URI format are not supported",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16812
  },
  "FileAttachments": [],
  "Comments": []
}