Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Custom Code Activity (new SPSite) - The Web application at http:// could not be found - why?!

$
0
0

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



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>