Hi zuvefox,
It's ok to get the key from the networkcredentials.xml file. That's the same key I refer to in my previous post.
I gave an example of a HTTP task. I do not know which type your task is, but you might need a different approach:
t.TASKTYPE....Credential = "1234567-abcd-1234-abcd-1234567890ab";
Please use the intellisense in Visual Studio to find your task type.
You can also use a breakpoint on this line an look in the Locals window for you t variable. Expand this and see where the tasktype is filled. (A lot of tasktypes have the value null, you can skip these)
Expand this and you might see your credential settings there. Use the full path to the credential and you have your code line.
Success guaranteed! 😎
Erik
Edited by user
2011-07-07T06:14:35Z
|
Reason: extra info added
Uses Visualcron since 2006.