Hi,
This is my scenario:
1. Someone created a SharePoint site and saved it as a template.
2. The template was used to create another site programmatically:
// web is my SPWeb // siteUrl, siteTitle, siteDescription, siteTemplate are parameters SPWebCollection subsites = web.Webs; SPWeb newWeb = subsites.Add(siteUrl, siteTitle, siteDescription, web.RegionalSettings.LocaleId, siteTemplate, UseUniquePermissions, false);
3. When users try to work with the new site, they often receive an error: "No connection could be made because the target machine actively refused it".
4. Upon investigation in ULS, I have found that the underlying error is "No available sandboxed code execution server could be found".
5. I made sure that the Microsoft SharePoint Server Sandboxed Code Service was running. I also tried both options in Central Admin / Sandbox Solution Management: "All sandboxed code runs on the same machine as a request" and "Requests to run sandboxed code are routed by solution affinity" with no avail.
Any idea what might be wrong?
Thanks,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com