Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

Closed Unassigned: "Error The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced." [11090]

$
0
0
Hello,

I am not sure if I should be posting this under issue, but it seems right.

I would like to use your wrapper for a project of mine, but something weird is happening when I try to run it. I am using the latest version (today is 2013/06/18, using the Release 1.9.4).

When I run this piece of code:

```
using (TaskService ts = new TaskService())
{
TimeTrigger tt = new TimeTrigger { StartBoundary = new DateTime(2013, 6, 18, 19, 35, 00) };
ts.AddTask("TaskName",
tt,
new ExecAction("notepad.exe", null, null));

}
```
it works perfectly fine. But if I change TimeTrigger to DailyTrigger, and nothing else, I get a compile error.

The exact error message is "Error 1 The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."


Please let me know what's the reason for this.
I am using Visual Studio 2012 Ultimate, and I created an empty project, with one Program.cs file in whose main I call this piece of code.

Best regards!

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>