Offline problems

I am implementing LimeLM in an excel-addin I am developing based on the example c# code and using TurboActivate. Everything is working fine except when there is no internet connection. From what I read here on the site I get the impression that what should happen is that TurboActivate should show an error message and give the option of offline activation. What actually happens is that the addin throws an unhandled exception.

How can I fix this?

What actually happens is that the addin throws an unhandled exception.

Well, the way you handle this is the same way you handle any exception. For example:

try{    TurboActivate.Activate();}catch (InternetException ex){    //TODO: show a dialog giving the user the option to offline activate}

Does that make sense?

Sure it makes sense. I just somehow gotten the impression that this was something that would be handled by the TurboActivate wizard.

You might want to think about updating your guide for using Turboactivate with c# at (at https://wyday.com/limelm/help/using-turboactivate-with-csharp/) to at least mention the fact that this is an error that must be handled.

Sure it makes sense. I just somehow gotten the impression that this was something that would be handled by the TurboActivate wizard.

You can do that is you want, but you have to launch the TurboActivate wizard (that is, run the TurboActivate.exe). See the example C# code.

You might want to think about updating your guide for using Turboactivate with c# at (at https://wyday.com/limelm/help/using-turboactivate-with-csharp/) to at least mention the fact that this is an error that must be handled.

Well, if you're using C# then we recommend using the TurboActivate wizard, not using the Activate() function. But even if you use the Activate() function the exceptions it throws are shown.

In the near future we'll be adding an online API list show all possible exceptions and all the behavior. But right now it's in the code (e.g. for C# it's all in the TurboActivate.cs file).