0
你能給的你如何在Azure中的Web應用程序跑APPCMD與SignalR更多的細節,因爲它需要管理員權限?我不認爲下面會出於這個原因。配置SignalR與Appcmd.exe的Azure上的Web應用程序
protected void Application_Start()
try
{
var windowsDir = Environment.GetEnvironmentVariable("windir");
var command = System.IO.Path.Combine(windowsDir, @"System32\inetsrv\appcmd.exe set config/section:system.webserver/serverRuntime/appConcurrentRequestLimit:10000");
Process.Start(command);
}
catch (Exception ex)
{
Trace.WriteLine(ex.GetBaseException().Message);
}
}