无法在Windows 8 Consumer Preview上从ClickOnce创建的快捷方式运行已安装的程序 [英] Unable to run installed program from ClickOnce created shortcut on Windows 8 Consumer Preview

查看:67
本文介绍了无法在Windows 8 Consumer Preview上从ClickOnce创建的快捷方式运行已安装的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很快就会发布我们目前部署到我们的投注测试人员的应用程序 使用ClickOnce。在win xp sp3和wind 7上一切正常,但在Windows 8上,ClickOnce在桌面上创建的快捷方式检查更新,但之后不启动
app。 

I have soon to be released application which we deploy currently to our bet testers using ClickOnce. On win xp sp3 and wind 7 everything works fine, but on windows 8 the shortcut which is created on desktop by ClickOnce check for updates but don't start app after that. 

当我去C:\ Users \ xxx \ AppData \ Local \ Apps \\\\\\\\\\\\\\\\\以管理员身份安装并运行应用程序,一切正常。

When I go to C:\Users\xxx\AppData\Local\Apps\2.0\xxx\poss..tion... where application is installed and run application as administrator, everything works fine.

以下是下载链接: http://bit.ly/xs7mCK   ;所以你可以测试它。

Here is download link: http://bit.ly/xs7mCK  so you can test it.

推荐答案

  ClickOnce从Internet区域启动的应用程序可能无法运行:

从Internet区域启动的ClickOnce应用程序似乎可以正确下载和安装,但可能无法运行。这是由应用程序信誉服务在ClickOnce应用程序检查更新时返回错误引起的。

 ClickOnce apps launched from the Internet zone may fail to run:

ClickOnce applications that are launched from the Internet zone will appear to download and install correctly but may not run. This is caused by the Application Reputation service returning an error when the ClickOnce app checks for updates.

要解决此问题:

To resolve this issue:

1。打开应用程序磁贴的快捷菜单,然后选择"打开文件位置"。记下位置和文件名。

2.打开命令提示符窗口。

3.在记事本中打开步骤1中标识的文件。该文件将具有".application"。延期。在此示例中,"MyApp.application"表示"MyApp.application"。是文件名:

1. Open the shortcut menu for the application tile and choose Open File Location. Note the location and the file name.
2. Open the Command Prompt window.
3. Open the file identified in step 1 in Notepad. The file will have an ".application" extension. In this example, "MyApp.application" is the file name:

http://www.contoso.com/apps/MyApp.application#MyApp.application,Culture = neutral,PublicKeyToken = 1234567890123456,processorArchitecture = x86

http://www.contoso.com/apps/MyApp.application#MyApp.application, Culture=neutral, PublicKeyToken=1234567890123456, processorArchitecture=x86

4。在命令提示符下,输入以下内容:

4. At the command prompt, enter the following:

    cd / d%userprofile%\ appdata\local\apps \2.0
$
5.在命令提示符下,输入以下内容,使用与步骤3中相同的名称,但使用" .manifest的"延期:

    cd/d %userprofile%\appdata\local\apps\2.0
5. At the command prompt, enter the following, using the same name as in step 3 but with a ".manifest" extension:

    dir / s"MyApp.manifest"

    dir/s "MyApp.manifest"

6。在记事本中,打开步骤5中找到的文件。

7.找到< file> element,并注意name属性的值。这是可执行文件的名称。

8.在与步骤6中的文件相同的目录中找到此可执行文件。

9.删除Web标记( MOTW)。

6. In Notepad, open the file found in step 5.
7. Find the <file> element, and note the value of the name attribute. This is the name of the executable file.
8. Find this executable in the same directory as the file in step 6.
9. Remove the Mark of the Web (MOTW).

   - 或 -



      在Windows资源管理器中双击可执行文件。将显示"应用程序信誉"对话框。在此对话框中,选择"取消阻止",然后选择"确定"。

   -or-

       Double-click the executable file in Windows Explorer. The Application Reputation dialog box is displayed. In this dialog box, choose Unblock, and then choose OK.

完成这些步骤后,可以从"开始"按钮成功启动应用程序。

After you complete these steps, the app can be launched successfully from the Start button.

有关详细信息:请访问
.NET 4.5 beta
下载页面并在上面读取我的文件。

For more information: Please visit .NET 4.5 beta download page and read me file on it.


这篇关于无法在Windows 8 Consumer Preview上从ClickOnce创建的快捷方式运行已安装的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆