# Deleting backup task issue

**URL:** <https://forum.duplicati.com/t/deleting-backup-task-issue/2940>\
**Category:** Support\
**Created:** [March 19, 2018, 12:11am UTC](https://forum.duplicati.com/t/deleting-backup-task-issue/2940 "2018-03-19T00:11:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thor263](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@Thor263](https://forum.duplicati.com/u/Thor263)\
**Post date:** [March 19, 2018, 12:11am UTC](https://forum.duplicati.com/t/deleting-backup-task-issue/2940/1 "2018-03-19T00:11:27Z")

</div>

I’m doing some evaluation of Duplicati (currently 2.0.3.1\_experimental\_2018-03-16) on macOS and am attempting to delete my backup task (deleting local database and remote files). Delete remote files is checked. When I select the “Delete Backup \>” button, I get the following popup error - “The type initializer for ‘Duplicati.Server.WebServer.CaptchaUtil’ threw an exception.” It does not perform the delete. I also tried it on the beta version and had the same popup.

Is there other information that I can provide to help diagnose this issue?

---

<div class="post-metadata">

**Author:** ![Thor263](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@Thor263](https://forum.duplicati.com/u/Thor263)\
**Post date:** [March 20, 2018, 3:59am UTC](https://forum.duplicati.com/t/deleting-backup-task-issue/2940/2 "2018-03-20T03:59:33Z")

</div>

Some followup information…the experimental version didn’t seem to log the issue (setting on my part?), but the beta version did. Here is an attempted delete of the backup task from this evening:

Mar 19, 2018 10:29 PM: Request for [http://localhost:8200/api/v1/captcha](http://localhost:8200/api/v1/captcha) gave error

> System.TypeInitializationException: The type initializer for ‘Duplicati.Server.WebServer.CaptchaUtil’ threw an exception. —\> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —\> System.TypeInitializationException: The type initializer for ‘System.Drawing.KnownColors’ threw an exception. —\> System.TypeInitializationException: The type initializer for ‘System.Drawing.GDIPlus’ threw an exception. —\> System.DllNotFoundException: libgdiplus.dylib  
> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)  
> at System.Drawing.GDIPlus…cctor () [0x000b0] in :0  
> — End of inner exception stack trace —  
> at System.Drawing.KnownColors…cctor () [0x0001a] in :0  
> — End of inner exception stack trace —  
> at \<0x00000 + 0x00000\>   
> at System.Drawing.Color.FromKnownColor (System.Drawing.KnownColor color) [0x00007] in :0  
> at System.Drawing.Color.get\_AliceBlue () [0x00000] in :0  
> at System.Drawing.Brushes.get\_AliceBlue () [0x00007] in :0  
> at System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) [0x00000] in <74f935c61a7644fb86746dc61f0f9956>:0 at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x0005f] in <74f935c61a7644fb86746dc61f0f9956>:0 --- End of inner exception stack trace --- at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00073] in <74f935c61a7644fb86746dc61f0f9956>:0 at Duplicati.Server.WebServer.CaptchaUtil+<>c.<.cctor>b__4_1 (System.Reflection.PropertyInfo x) [0x00000] in <a6c0c2089b9a44ec9be5057a44f12116>:0 at System.Linq.Enumerable+WhereSelectArrayIterator`2[TSource,TResult].MoveNext () [0x0003a] in \<1baeaa997fb5480697ea2f9510f7fa43\>:0  
> at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToArray () [0x00033] in <1baeaa997fb5480697ea2f9510f7fa43>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in \<1baeaa997fb5480697ea2f9510f7fa43\>:0  
> at Duplicati.Server.WebServer.CaptchaUtil…cctor () [0x0005a] in :0  
> — End of inner exception stack trace —  
> at Duplicati.Server.WebServer.RESTMethods.Captcha.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x0003f] in :0  
> at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x0026e] in :0

---

<div class="post-metadata">

**Author:** ![Thor263](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@Thor263](https://forum.duplicati.com/u/Thor263)\
**Post date:** [March 20, 2018, 12:53pm UTC](https://forum.duplicati.com/t/deleting-backup-task-issue/2940/3 "2018-03-20T12:53:40Z")

</div>

And I figured it out. I installed **mono** on macOS using **Homebrew**. However, I also needed to install **mono-libgdiplus** as well.

Deleting of backup tasks now displays the captcha and performs the delete.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [March 20, 2018, 8:38pm UTC](https://forum.duplicati.com/t/deleting-backup-task-issue/2940/4 "2018-03-20T20:38:59Z")

</div>

Thanks for taking the time to share your solution!
