InvalidProgramException

Hello guys,

I am trying to create my own program using Linq. I am using VS 2005 Beta 2. I have installed the required css compiler for C# 3.0 and also installed the IDE support for C# 3.0. When I compile the program I am getting no errors and the build is successful. When I run the program I am getting InvalidProgramException.

When I am trying to run the Samples downloaded from msdn web site, its working fine. I am getting problem when I am trying to create my own project and run it. Do I need to configure something? Please some help me.

Thanks in advance.
Koti.

[587 byte] By [koti] at [2008-2-4]
# 1
Hello guys,

I figured out my mistake. I have opened a normal Console Application Template rather than LINQ Preview Console application. Sorry for the inconvenience.

-Koti.

koti at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...
# 2
You can use LINQ in a non LINQ template by adding the below element to your project file.

<Import Project="$(ProgramFiles)\LINQ Preview\Misc\Linq.targets" />

anthonyy at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...

Visual Studio Orcas

Site Classified