Hi everyone,
Recently I've created a Custom Code Activity to copy a file from Site A to Site B. I've tested the code first in a Console Application: works; I've added it to the CodeActivity, added it to a SharePoint 2013 workflow: doesn't work (I'm getting the message that the Web Application could not be found?!). It goes wrong when I'm using this:
using (SPSite site = new SPSite("http://")) { }
I've checked the following:
- Platform target: x64 (correct one) (there were issues if it was x86)
- Checked .NET framework version: 4.5, check
- Checked permissions of the user executing the workflow/URL: check, full control and URL exists (also resolvable)
- Added DisableLoopbackCheck in registry: check
I'm clueless! It's just a simple Code Activity to copy a file.
Hopefully someone can help me with this, help is appreciated!
Thanks in advanced!
M. Hekman