Hello,
I am using the Code script Component with a C# script. The Script is used to move a Computer in Active Directory to another OU, but using the whole AD path.
Here is my script:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.DirectoryServices;
namespace DynamicNamespace {
public class DynamicClass {
public void DynamicMethod(System.String from, System.String to)
{
DirectoryEntry theObjectToMove = new DirectoryEntry(from);
DirectoryEntry theNewParent = new DirectoryEntry(to);
theObjectToMove.MoveTo(theNewParent);
}
}
}
The script is working. I used the run Test in the Code script Component und debuged the workflow.
The problem is that the Workflow waorks when i debug ist but when i publish the workflow it crashes at the Code Script Component.
Do i have to install somthing an the IIS that it works?
Greetings
Turl