
[07/11/2014 10:58:44 > cbec50: SYS INFO] Status changed to Running[07/11/2014 10:58:45 > cbec50: ERR ] Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.httpListenerException: Access is denIEd
我想控制台应用程序需要以提升的权限运行.有没有办法让这个工作?
先决条件:
Install-Package Microsoft.Azure.Jobs -preInstall-Package Microsoft.AspNet.SignalR.SelfHost
完整来源:
using System;using Microsoft.Azure.Jobs;using Microsoft.Owin.Hosting;using Owin;namespace ConsoleApplication2{ class Startup { public voID Configuration(IAppBuilder app) { app.MapSignalR(); } } class Program { static voID Main(string[] args) { using (WebApp.Start<Startup>("http://localhost:8080/")) { Console.Writeline("Server running at http://localhost:8080/"); var host = new JobHost(); host.RunAndBlock(); } } }}解决方法 得到了 response from David Ebbo(@davIDebbo): "...you can only Listen on a port through IIS. WebJobs are more to do work and not run services."
我认为Web作业是一个很好的方式来主持Signalr Hub而没有整个网站的足迹,但我需要找到一个替代方案.
总结以上是内存溢出为你收集整理的Azure Web作业中的Signalr自托管Hub需要提升吗?全部内容,希望文章能够帮你解决Azure Web作业中的Signalr自托管Hub需要提升吗?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)