stigzler Posted August 9, 2022 Share Posted August 9, 2022 OK, so maybe that was a bit dramatic. So, I was tinkering (again..I know, I know - they always said I'd break it if I played with it too much) and I think I might have broked Ben's Repository Manager with one of my plugin WIPs. Here's how it's looking: As you can see - nil, zilch, nada. Everything's disappeared. Also, all of the different item types have disappeared from the drop drop down. Had a scootch around the Config folder - couldn't find a way to reset it. Any ideas? Link to comment Share on other sites More sharing options...
Tom Speirs Posted August 9, 2022 Share Posted August 9, 2022 I had some server issues. It should be working now. Link to comment Share on other sites More sharing options...
stigzler Posted August 9, 2022 Author Share Posted August 9, 2022 Thanks Tom - yep sorted. On an associated issue - I'm having a bit of an issue with launching my new plugin from RepoManager. It launches fine from the old PluginManager.exe and also from SetupPlugins in SetupWizard. However, it crashes when launched from RepoManager. I've attached VS debugger and it's looking like something in RepoManager itself. The specific error: System.AppDomainUnloadedException HResult=0x80131014 Message=The application domain in which the thread was running has been unloaded. Source=<Cannot evaluate the exception source> StackTrace: <Cannot evaluate the exception stack trace> (tried code block - but the syntax highlighting was unreadable - not sure of the markdown) To be honest, I'm guessing it's going to be easier just to insist that any users launch config from Setup Wizard rather then delve into Ben's code? This would involve detecting if launched from RepoManager and giving the user a msg to launch from SetupWizard. Is there any way to detect in the plugin class library who instantiated/referenced it (i.e. RepoManager or SetupWizard)? The alternative rough method would be to scan processes for RepoManager, but this could give false positives of course if running, but config run from Setup Wizard. Happy to send you over the alpha if you want to see it in action for yourself. Link to comment Share on other sites More sharing options...
stigzler Posted August 10, 2022 Author Share Posted August 10, 2022 Figured it: Assembly.GetEntryAssembly Returns PluginManager.exe or SetupWizard.exe or Nothing for Repository Manager. Link to comment Share on other sites More sharing options...
Recommended Posts