我刚刚为clickonce应用程序部署了一个更新.我已经部署了几十个更新,没有任何问题.现在突然间,通过此更新,我的所有用户都报告此错误:
错误摘要
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\XXX\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\XXX\XXX\XXX.appref-ms| resulted in exception. Following failure messages were detected:
+ Activation failed.
+ The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Run Code Online (Sandbox Code Playgroud)
在此操作期间检测到以下错误.
* [3/15/2012 3:22:34 PM] System.Deployment.Application.DeploymentException (Activation)
- Activation failed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, …Run Code Online (Sandbox Code Playgroud) 我在ubuntu服务器14.04,mono 3.2.8上通过Owin运行非常简单的信号服务器.(以下代码).
连接/断开连接在远程Windows服务器和我将位部署到Linux服务器时都能正常工作.但是当客户端意外死亡而不是告诉信号器他正在断开连接时,那就是我只在linux服务器上得到一个永无止境的SocketException.Windows服务器在大约30秒左右后断开客户端,但是linux服务器每隔10秒左右就会发出socketexception(也在下面).
如何在运行相同的代码时使linux服务器像windows服务器一样,在设置超时后断开用户并且不抛出socketexceptions?
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR;
using Owin;
namespace signalrtestserver
{
class Program
{
static void Main(string[] args)
{
var uri = System.Configuration.ConfigurationManager.AppSettings["startup_uri"] ?? "http://*:7890";
using (Microsoft.Owin.Hosting.WebApp.Start<Startup>(uri))
{
Console.WriteLine(string.Format("Server started on {0}. Press enter to close.", uri));
Console.ReadLine();
}
}
}
class Startup
{
static Hub hub;
public void Configuration(IAppBuilder app)
{
app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);
var configuration = new HubConfiguration();
configuration.EnableDetailedErrors = true;
app.MapSignalR("/signalr", configuration);
hub = new MyHub();
}
}
public class MyHub : Hub
{ …Run Code Online (Sandbox Code Playgroud)