单击一次部署错误
我是 Click Once 应用程序部署的新手,所以我认为我可能遇到一个简单的问题。我有一个窗口应用程序,我使用 Vis 创建并成功部署为 ClickOnce 应用程序。 Studio 2010 并部署到 Web 服务。我对应用程序进行了一些更改并更改了部署位置,因此我开始单击“一次处理”。现在,当我部署时出现错误。当我创建部署文件时,该应用程序构建良好,在 VS 2010 中运行良好。双击 App.application 文件将开始安装应用程序,并出现 .Net Framework 错误。
“您的应用程序中发生了未处理的异常。如果您单击“继续”,应用程序将忽略此错误并尝试继续。如果您单击“退出”,应用程序将立即关闭。System.UriFormatException
:无效的 URI:URI 为空... “
我对发布文件夹位置和安装文件夹 URL 进行了两次检查和三次检查,以确保它们指向正确的位置并使用正确的格式。当您单击“更新”按钮时,我两次检查了“更新”对话框。应用程序更新的组合框与安装文件夹 URL 匹配。 “\MyServer\Users\Administrator\Desktop\Transfer\Deploy\”我仔细检查以确保所需的文件正确。安全设置没有改变。
我可能会错过什么?
I am new to Click Once Application deployment so I think I may have a simple problem. I have a window app that I created and deployed successfully as a ClickOnce App using Vis. Studio 2010 and deploying to a web service. I made some changes to the app and changed the deployment location so I started the click Once Process over. Now when I deploy I get an error. The app builds fine, runs fine in VS 2010, when I deploy files are created. Double clicking the App.application file will start the install of the app with a .Net framework error.
"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
System.UriFormatException: Invalid URI: The URI is empty..."
I have double checked and triple checked the Publish Foldre Location and INstallation Folder URL to make sure they are pointing in the correct places and using the correct format. I double and triple checked the Updates dialog box when you click the Updates button. The combobox for the Application Updates matches the Installation Folder URL. "\MyServer\Users\Administrator\Desktop\Transfer\Deploy\" I double checked to make sure the required files are correct. Security settings did not change.
What could I be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您似乎在安装文件夹 URL 中漏掉了一个反斜杠:
It seems you missed one backslash in your installation folder URL:
请确保如果您正在使用某些图像/声音或日志文件,则其构建操作必须是“内容”类型。
Please make sure that if you are using some image/sound or log files then its Build Action must be "Content" type.