0

I created a Windows Forms application using C# and SQL Server 2008 R2 as back-end. I also created a click-once installer package by adding Microsoft SQL Server Compact 3.5 as a prerequisites.

If I install my application on computer that have SQL Server 2008 R2 Express installed it works fine.

But instead if I install on newly installed operating system (Windows 7 Ultimate 32 bit) if do no run shows error

provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server

Please tell me what I'm doing wrong with my application.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Shantnu
  • 127
  • 11
  • If you're using SQL Server 2008 R2 **Express** - then you must add a pre-requisite for SQL Server **Express** (and *not* Compact edition!) to your click-once installer! SQL Server Compact is quite a different beast, using `.sdf` data files. – marc_s Mar 23 '15 at 18:03
  • I Have already added SQL Server 2008 R2 pre-requisite. – Shantnu Mar 23 '15 at 18:16

0 Answers0