Skip to content

SVN Manager crashes when configuration is reloaded #15

@ahwm

Description

@ahwm

SVN Manager crashes when re-instantiating NancyHostControl object

host = new NancyHostControl(InterfaceUrlHost, InterfaceUrlPort, InterfaceUrlHttps);

_host = new NancyHost(new Uri($"{scheme}://{host}:{port}"));

Application: SvnManager.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
   at System.ThrowHelper.ThrowArgumentException(System.ExceptionResource)
   at System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Insert(System.__Canon, System.__Canon, Boolean)
   at System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Add(System.__Canon, System.__Canon)
   at SvnManager.WebUI.Bootstrapper.ConfigureApplicationContainer(Nancy.TinyIoc.TinyIoCContainer)
   at Nancy.Bootstrapper.NancyBootstrapperBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Initialise()
   at Nancy.Hosting.Self.NancyHost..ctor(Nancy.Bootstrapper.INancyBootstrapper, Nancy.Hosting.Self.HostConfiguration, System.Uri[])
   at Nancy.Hosting.Self.NancyHost..ctor(System.Uri[])
   at SvnManager.WebUI.NancyHostControl..ctor(System.String, Int32, Boolean)
   at SvnManager.SvnManagerService.Monitor_Reloaded(System.Object, System.EventArgs)
   at SvnManager.ConfigMonitor.Watcher_Changed(System.Object, System.IO.FileSystemEventArgs)
   at System.IO.FileSystemWatcher.OnChanged(System.IO.FileSystemEventArgs)
   at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32, System.String)
   at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions