I have developed a WCF service which uses the net.tcp binding and read and write files to the file system. When I start the windows service (in a console) I get following error even if the sample.dll is in the folder:
Unable to find assembly file sample.dll
This specific WCF service is hosted in a windows service which runs on windows 7 64bit and I have following questions:
Which account should I use for my application:
User / NetworkService / LocalSystem / LocalService
And why can’t the OS load the dll even if it is there?
Thank you in advance for your help!
According to the MSDN documentation on the ServiceAccount, the User member prompts for a username and password. I'd guess that if you're using the User account and it doesn't have read permissions for windows/system32, that would result in your assembly failing to be found.
Perhaps change the ServiceAccount up a step to a LocalService?