The exception seems clear enough.
You should pass a valid connection string to the method
ConnectionString() as reported here 
http://www.connectionstrings.com/sql-server-2005-ce

On Dec 30, 10:23 pm, Yoav <[email protected]> wrote:
> Hi, I'm trying to return a session factory using this code:
> return Fluently.Configure()
> .Database(MsSqlCeConfiguration.Standard.ShowSql().ConnectionString(path))
> .Mappings(m => m.FluentMappings.AddFromAssemblyOf<Project>())
> .BuildSessionFactory();
>
> Path is the full path to an .sdf file.
> And get this exception:
>
> System.ArgumentException: Format of the initialization string does
> not
> conform to specification starting at index 0.
>    at System.Data.SqlServerCe.ConStringUtil.GetKeyValuePair(Char[]
> connectionString, Int32 currentPosition, String& key, Char[]
> valuebuf,
> Int32& vallength, Boolean& isempty)
> What am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to