Exception in windows service that was bulid in c# with SSCE


hello,

i bulid packet sniffer windows service , has ssce and

it in c# , use vc2008.

when run service following exception: 

"format of initialization string not conform specification starting @ index 0."

in line:

sqlceengine en = new sqlceengine(connectionstring);


the connectionstring :

connectionstring = string.format("datasource=\"{0}", filename);

i used code normal application , worked, when made service throws exception...

please help!!!

a friend me

 

i changed the line this:

 

connectionstring = string.format("datasource=\"{0}\";", filename);

 

there /" missing..lol

 

 

 



SQL Server  >  SQL Server Compact



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607