ribbons / RadioDownloader

An easy to use application for managing podcast subscriptions and downloads.
https://nerdoftheherd.com/tools/radiodld/
GNU General Public License v3.0
15 stars 11 forks source link

Windows: Fixed crash when the RSS server port is reserved for a different protocol #245

Closed ribbons closed 3 years ago

ribbons commented 3 years ago

If the RSS server is enabled and the port defined to listen on has an existing URL reservation for a different protocol the following unhandled exception occurs:

System.Net.HttpListenerException: Failed to listen on prefix 'http://+:8888/' because it conflicts with an existing registration on the machine.
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at RadioDld.RssServer..ctor(Int32 port) in C:\projects\radiodownloader\Classes\RssServer.cs:line 57
   at RadioDld.Main.Main_Load(Object eventSender, EventArgs eventArgs) in C:\projects\radiodownloader\Forms\Main.cs:line 331
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at RadioDld.GlassForm.WndProc(Message& m) in C:\projects\radiodownloader\Forms\GlassForm.cs:line 72
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The ErrorCode for this exception is 183.