I have following this link to create my SQL Server database during installation of my Winforms application. But I got this error :
Value cannot be null.
Parameter name : Stream
Note : my connection string is
Data Source=MyServerName\SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI;
and also my database should create on server.
Please ask me if any thing is unclear…
I bet that the error raises on this row:
You need to have a file named sql.txt in your project and you need to edit its properties and set its build action to embedded resource