Are you using SQL Express or the SQL Server CE? In case SQL Server CE then you need to retrieve the server path instead of a hard-coded path. SQL Express put it as localhost or provide the exact name that appears in the SQL server IDE. And what type of access permission you are providing in the IIS?
Thanks in advance.
Senthil Kumar M.