我通过 C# 和 asp.net 创建了一个时间表。它在开发服务器中工作,但实时服务器给出了以下问题
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
public Task CreateTask(string name)
{
Task tester = OpenTask(name);
if (tester != null) {
tester.Close();
throw new ArgumentException("The task \"" + name + "\" already exists.");
}
try {
object o;
//Error Occrured at this below line of Code
its.NewWorkItem(name, ref CTaskGuid, ref ITaskGuid, out o);
ITask iTask = (ITask)o;
return new Task(iTask, name);
}
catch (Exception objException)
{
throw objException;
}
}