im trying to start signalR Server on Mono. On windows works.
.NET 4.0.
"File not found" but.. which file?
Someone any idea?
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: File not found
at System.Diagnostics.PerformanceMonitor.GetData(String item)
at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item)
at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
at Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.LoadCounter(String categoryName, String counterName, String instanceName)
at Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.SetCounterProperties(String instanceName)
at Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.Initialize(String instanceName, CancellationToken hostShutdownToken)
at Microsoft.AspNet.SignalR.DependencyResolverExtensions.InitializeHost(IDependencyResolver resolver, String instanceName, CancellationToken hostShutdownToken)
at Owin.OwinExtensions.UseTypeT
at Owin.OwinExtensions.MapHubs(IAppBuilder builder, String path)
at yServer.connection.SingalR.Converter.webStartUp.Configuration(IAppBuilder app)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Owin.Loader.DefaultLoader.<>c__DisplayClass1c.b__15(IAppBuilder builder)
at Owin.Loader.DefaultLoader.<>c__DisplayClass3.b__1(IAppBuilder builder)
at Microsoft.Owin.Hosting.KatanaEngine.ResolveApp(StartContext context)
at Microsoft.Owin.Hosting.KatanaEngine.Start(StartContext context)
at Microsoft.Owin.Hosting.KatanaStarter.DirectStart(StartParameters parameters)
at Microsoft.Owin.Hosting.KatanaStarter.Start(StartParameters parameters)
at Microsoft.Owin.Hosting.WebApplication.StartTStartup
at yServer.connection.SingalR.Converter.webSocketServer.start()
at yServer.Program.Main(String[] args)
Steven147
0 Points
4 Posts
Selfhosted Server dont start
Jan 28, 2013 04:25 PM|LINK
Hi,
im trying to start signalR Server on Mono. On windows works.
.NET 4.0.
"File not found" but.. which file?
Someone any idea?
<?xml version="1.0"?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.Owin.Host.SystemWeb" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration>class webStartUp { public void Configuration(IAppBuilder app) { app.MapHubs("/webhub"); } }public void start() { // return; this.startTime = DateTime.Now; string rAddress = "http://localhost:" + Program.WebSocketPort; using (WebApplication.Start<webStartUp>(rAddress)) { this.running = true; Logger.write( string.Format("Server started at Location: '{0}'", rAddress), Logger.method.info, Logger.from.signalr ); Console.Read(); } }Thanks.
DamianEdward...
Member
234 Points
37 Posts
Microsoft
Re: Selfhosted Server dont start
Jan 28, 2013 06:15 PM|LINK
Did you build SignalR from source using the Mono solution?
Senior Program Manager, ASP.NET
Microsoft
Steven147
0 Points
4 Posts
Re: Selfhosted Server dont start
Jan 28, 2013 07:05 PM|LINK
No. How its work? I use wine on Debian.
davidfowl
Contributor
2695 Points
609 Posts
Microsoft
Re: Selfhosted Server dont start
Feb 02, 2013 09:18 AM|LINK
This is totally unsupported and untested.
Senior SDE, ASP.NET Team, Microsoft
Steven147
0 Points
4 Posts
Re: Selfhosted Server dont start
Feb 02, 2013 09:40 AM|LINK
Are there any alternative?
davidfowl
Contributor
2695 Points
609 Posts
Microsoft
Re: Selfhosted Server dont start
Feb 02, 2013 09:49 AM|LINK
Yes running it on windows is fully supported and tested.
Senior SDE, ASP.NET Team, Microsoft
Steven147
0 Points
4 Posts
Re: Selfhosted Server dont start
Feb 03, 2013 08:15 AM|LINK
Okay, I'll upgrade my servers to Windows. Do I need a special version? If so, what?
davidfowl
Contributor
2695 Points
609 Posts
Microsoft
Re: Selfhosted Server dont start
Feb 05, 2013 03:13 AM|LINK
Windows Server 2012 is you want websocket support. Otherwise Windows Server 2008 R2 is the standard server infrastructure you'd run.
Senior SDE, ASP.NET Team, Microsoft