About Hosting WCF Service in IIS.

Mar 26, 2010 at 1:10 PM

Hi, Can any one suggest me....  I have a WCF Service and Silverlight as client.  I have to host the WCF Service in IIS, So i have added clientaccesspolicy.xml and crossdomainpolicy.xml to my Service application.

In my local system(Before hosting on IIS) both the Client and Service were working fine,

When i hosted it on IIS by creating Virtual Directory to WcfService i am getting the error message like this "Cannot open database "MyFile" requested by the login. The login failed.
Login failed for user 'SARATHM\ASPNET'."

       I have changed the my sql connection as "new SqlConnection("Data Source=System_name\\sqlexpress;Integrated Security=SSPI;Initial Catalog=MyFile; User Instance=true;");"

Can any one suggest me wht i have to do...........