w0051977
w0051977

Reputation: 15817

LINQPAD - TypeLoadException

I am seeing the following error in LINQPad (typeloadexception in first screenshot):

enter image description here

Here are the connection properties:

enter image description here

The 'Test' button works as expected i.e. it prompts: "Successful". What is the problem? Here is the web.config in the app:

<add name="AdventureWorks2012Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mypc;initial catalog=AdventureWorks2012;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

I have read a few answers on here, which suggest setting the assembly to 32 bit etc.

Upvotes: 1

Views: 301

Answers (1)

Joe Albahari
Joe Albahari

Reputation: 30964

Your custom assembly is named LINQPad.dll, which is likely to get confused with LINQPad.exe. You will need to change the assembly name in Visual Studio's project properties dialog.

Upvotes: 2

Related Questions