I think you are trying to connect to your web app not from localhost, here is what I suggest to change because I have faced same problem :

<add name="Hostingconnection" connectionString="Data source=servername;Integrated Security=false;Initial Catalog=onlinesample;User Id=xxxx;Password=xxxx"/>

xxxx = in SQL server define new user to login with password (use SQL authentication).