我有一个相对简单的支持应用程序,我选择通过单击一次将其部署到我们的支持人员。
我认为它仍然称为Click-Once。我正在使用VS2008中项目属性的“发布”选项卡。
几个用户设法点击进入URL,下载并运行该应用程序。
一位特定用户不能。
他已经安装了.Net 3.5 SP1,并且确实到达了发布页面,并提供了安装选项。单击此后,他会收到一条错误消息
该错误信息包含以下短语
我想知道是什么原因造成的...
我不明白为什么我发布到的服务器会对该用户给予不同的对待。
有任何想法吗?
我正在使用ClickOnce部署应用程序,问题是配置文件(xxx.exe.config)没有嵌入到包中,并且没有选项可以包含它.配置的另一个问题是,当我试图手动将其写入它被删除的目录(Environment.CurrentDirectory)时,我得到一个异常 - 我没有权限这样做.
有关如何将应用程序与配置文件一起部署的任何想法?(并使其可写,因为ti运行时的应用程序会改变配置值.)
提前致谢
我想知道 HRESULT 错误究竟是什么意思?当用户尝试从我们的服务器下载 clickonce 应用程序时,就会发生这种情况。因此,为了弄清楚它背后的问题是什么,我想知道这个 HRESULT 数字指的是什么。我尝试使用错误查找工具,但它说找不到消息。有什么办法可以找到这个错误信息吗?如果 HRESULT 以十进制数给出,如果有人能告诉我如何查找错误消息,那也太好了?
作为参考,这里是简短的错误日志:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.3 {version}
Running checks for package '.NET Framework 3.5 SP1', phase BuildList
Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35SP'
The following properties have been set for package '.NET Framework 3.5 SP1':
Property: [DotNet35SP] = 1 {int}
Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
Result of running …Run Code Online (Sandbox Code Playgroud) 我正在研究的应用程序(.NET C#)正在我们客户自己的服务器上部署,因此我们可以使用ClickOnce在客户工作计算机上安装应用程序.由于它是客户自己的服务器,因此IP永远不会相同.这是标准ClickOnce更新机制的问题.这是我最终想要的场景:
这可能吗?如何?
我已经阅读了如何移动ClickOnce部署包,这可能有效,但有时客户决定更改服务器IP.
应用程序图标在任务栏上正确显示:

但是在开始菜单上它不是:

该图标已在XAML中定义,如下所示:
<Window Icon="icon.png">
Run Code Online (Sandbox Code Playgroud)
应用程序使用Visual Studio中的Build,Publish菜单中的ClickOnce发布.
在开始菜单中正确显示应用程序缺少什么?
我有一个C#应用程序,我正在使用ClickOnce进行部署.在Windows 7(或8)上,所有工作都很完美,但在Windows XP上,安装.NET框架4(完整)时部署失败
我做了一个错误的截图:http://filevoid.net/#9323.png 日志文件如下所示:
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.2 {version}
Running checks for package 'Microsoft .NET Framework 4 (x86 and x64)', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Unable to read registry value
Not setting value for property 'DotNet40Full_TargetVersion'
The following properties have been set for package 'Microsoft .NET Framework 4 (x86 …Run Code Online (Sandbox Code Playgroud) 当应用程序文件具有*.deploy扩展名时,如何使用mage.exe创建ClickOnce部署清单?有些人放弃并使用MSBuild.exe和GenerateDeploymentManifest任务.如果你想直接使用mage.exe怎么办?
我知道已经问过类似的问题,并且我已经阅读过,但是我不明白为什么框架4.5.2会发生这种情况。我已经发布ClickOnce,并且在安装4.5.2时需要.net Framework 4.5 。我可以在调试模式下运行它或构建它而没有任何问题。有人可以回答为什么会发生这种情况吗,我该如何解决呢?
我的安装日志
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [NTProductType] = 1 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Microsoft .NET Framework 4.5 (x86 ? x64)', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read string value '4.5.51209'
Setting value '4.5.51209 {string}' for property 'DotNet45Full_TargetVersion'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full\1049'
Unable to …Run Code Online (Sandbox Code Playgroud) 我在这个问题上摸不着头脑,并花了很长时间研究它。我基于这个问题查看的每个问题看起来都与调试有关(我也有这个调试问题)。然而,这并不是这背后的原因。
In my application I gave the user the option to create a shortcut so that the application will run automatically in startup (I found this a much easier approach than editing the registry).
string copyPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\";
using (StreamWriter writer = new StreamWriter(copyPath + "\\" + "ZApp.url"))
{
string app = System.Reflection.Assembly.GetExecutingAssembly().Location;
writer.WriteLine("[InternetShortcut]");
writer.WriteLine("URL=file:///" + app);
writer.WriteLine("IconIndex=0");
string icon = app.Replace('\\', '/');
writer.WriteLine("IconFile=" + icon);
writer.Flush();
}
Run Code Online (Sandbox Code Playgroud)
This code works great. However, whenever the application checks for …