Dear All,
I am using the ASDK to execute a Task Server Task in a WebService:
C:\PROGRA~1\Altiris\ALTIRI~4\Bin\AltirisASDKTask.exe cmd:ExecuteTask taskGuid:"<Task GUID>" executionName:"<Task Name>" inputParameters:"<inputParameters><parameter><name>@AssignedResources</name><value><Machine Guid></value></parameter><parameter><name>@CompRequirements</name><value><minWaitTime>1 minutes</minWaitTime><maxWaitTime>60 minutes</maxWaitTime><minCompletion>1 %</minCompletion></value></parameter></inputParameters>"
When I run this in Debug, it works and gives me back a GUID. However, when I run it via a WebService, I get the following error:
An Exception occured. Failed to construct DatabaseContext object. Connection to database failed.
I am wondering if this is a permissions issue for the user that the WebService is running as in IIS, but I do not know what it might be permissions for? Is it the IIS User needing a login on the SQL Server 2008 Server? What does the ASDK use for this?
Does anyone else know what the problem is?
Kindest regards,
QuietLeni