I am writing an event handler that will create a new site whenever the new item is added to the list. My issue is it creates a new site everytime but it does and does not (randomly) execute the code following the Webs.Add(..). It looks like creating a new site somehow explodes without being caught by try catch.
This issue is on a Sharepoint Online environment (so impossible to debug) but works perfectly fine on a sandbox solution(on the developer machine VM).We are using team site templates.
I initially suspected to be some kind of threading related issue so my even handler is singlton, but that didnt help.