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.