When debugging my application I get the following runtime error:
Could not load file or assembly 'System, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
The version of System I have is 2.0.0.0.
I'm assuming I've messed up an install or not downloaded something and I'm hoping others have had the same problems and succssfully got it working.
I'm on Vista Business with Visual Studio 2008 Beta 2. My code is as follows (don't laugh) and breaks on the foreach.
using
System;using
System.Collections.Generic;using
System.Linq;using
System.Text;using
System.Data.Objects.DataClasses;using
Microsoft.Astoria.Client;using
DataWebService;using
OrderModel;namespace
AstoriaClientConsoleApplication{
class Program
{
static void Main(string[] args)
{
WebDataContext ctx = new WebDataContext("http://localhost:49177/OrderWebService.svc"); WebDataQuery<SOPOrderReturn> Orders = ctx.CreateQuery<SOPOrderReturn>("/SOPOrderReturn");
foreach (SOPOrderReturn o in Orders)
{
Console.WriteLine(o.DocumentNo);
}
}
}
}