c# - failed to publish: could not find required file 'setup.bin' -


this question has answer here:

i have sample console application testing mysql connectivity. code below.

using system; using system.collections.generic; using system.linq; using system.text; using mysql.data; using mysql.data.mysqlclient;  namespace mysqlconnection {     class program     {         static void main(string[] args)         {             string connstr = "server=localhost;user=root;database=world;port=3306;password=password;";             using (mysqlconnection conn = new mysqlconnection(connstr))             {                 conn.open();                  string sql = "select count(*) country";                 mysqlcommand cmd = new mysqlcommand(sql, conn);                 object result = cmd.executescalar();                  if (result != null)                 {                     int r = convert.toint32(result);                     console.writeline("number of countries in world database is: " + r);                 }             }             console.readline();         }     } } 

the code runs fine. when try publish project error shown in image below.

error description

i using vs2012 update 3 targeting .net 4. ideas?

thanks.

update:

using answer: could not find required file 'setup.bin' able publish application.

in case that

  1. hklm\software\microsoft\genericbootstrapper\11.0\path not exist.
  2. hklm\software\wow6432node\microsoft\genericbootstrapper\11.0\path exists , points c:\program files (x86)\microsoft sdks\windows\v8.0a\bootstrapper\

from directory copied engine directory application directory , able publish app. hopefully, not need done each time.

i suggest correct string connection userid property , add @

var connstr = @"server=localhost;userid=root;database=world;port=3306;password=password;"; 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -