Try replacing "localhost" with the IP address of the machine:
conn = new SqlConnection(@"Server=XXX.XXX.XXX.XXX;Database=OfficialAutomation;Integrated Security=true;");
I assume that the user that is logged in can access the machine on the network?
Otherwise, you might want to switch to SQL Server authentication...