I have created WCF dll and succesfully tested using WCFTestCLient in Visual Studio.
problem exist after i hosted the WCF i just created in Windows Services.
the error said :
“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified)”
are there some configuration i miss, cause i already copied app.config from the WCF Project to Windows Services Project.
I’m using C# .NET 4 and MySQL on Windows 7 Machine
thanks.
my mistakes,
before, i only copied connection string part and service model part from WCF library config file to Windows Service Project config file because that what i learned online.
i forgot that i’m using different membership provider than the samples online, in this case i use MySQL membership provider, so i have to copied membership, profile and role manager part also.
after i done that, my windows service work as i expected.
thank to all the answer, it help me to recheck my configuration file.
hope this can help someone else too….