22
1
using System;
2
3
using System.Linq;
4
5
namespace ConsoleApplication1
6
{
7
public class Program
8
{
9
public static void Main(string[] args)
10
{
11
string[] delhiResidents = { "Ramesh", "Kapil", "Vikas", "Amit" };
12
string[] kolkataResidents = { "Kapil", "Manmohan", "Deepak", "Amit" };
13
14
var allResidents = delhiResidents.Union(kolkataResidents);
15
16
foreach (var item in allResidents)
17
{
18
Console.WriteLine(item);
19
}
20
}
21
}
22
}
Cached Result
Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Data.Entity.DbContext' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.Main()
Command terminated by signal 6
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.Main()
Command terminated by signal 6