Print Page | Close Window

LINQPad Driver compatible ?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3765
Printed Date: 08-Oct-2025 at 5:52pm


Topic: LINQPad Driver compatible ?
Posted By: Walid
Subject: LINQPad Driver compatible ?
Date Posted: 05-Nov-2012 at 8:11am
Hi,

Is the Linqpad driver compatible with Devforce 2012 ?
I am getting an error while it was working before : "ApplicationException: Cannot obtain Default EntityManager

Note : I have a config file to specify my database connection and in the log I can see Devforce has a problem with it 

IdeaBladeConfig resolution: File: D:\Dev\ProjectA\Dev\Framework\LinqPad\LinqPad.config - found but failed to deserialize

the config file :

<?xml version="1.0"?>
<configuration>
  <connectionStrings>
    <add name="DBAdmin" connectionString="data source=SRV-DB;initial catalog=MainDB;persist security info=True;user id=****;password=****;multipleactiveresultsets=True" providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

The log file :  http://www.ideablade.com/forum/uploads/998/Backup.DevForceDebugLog.xml.zip - uploads/998/Backup.DevForceDebugLog.xml.zip

The InnerException :




Replies:
Posted By: kimj
Date Posted: 05-Nov-2012 at 10:53am
We haven't yet updated the LINQPad driver to work with DevForce 2012.  The error you're seeing is because the driver is trying to call a Login method on the EntityManager, and this method was removed in DF2012. 
 
The source code for the driver is still available from the DRC ( http://drc.ideablade.com/xwiki/bin/view/Documentation/linqpad-driver - http://drc.ideablade.com/xwiki/bin/view/Documentation/linqpad-driver ), and we'll also be putting it on GitHub soon.  So, until we upgrade the driver, tweaking the source code is your best option.


Posted By: Walid
Date Posted: 06-Nov-2012 at 3:02am
I commented out the Login and LinkForAuthentication parts and that worked.

Thanks



Print Page | Close Window