We have an on-prem WCF service. Recently we added Azure app config to store some config values. We use certificate based authentication(using service principal) to access Azure App config. The issue is, when we try to connect to the Azure app config from WCF service, we get authentication failed error. We can successfully connect to and access the config values from Azure, using a console app in the same server using the same certificate. The service account of WCF has all the access to manage the certificate. Why can't we access Azure app config in WCF service? Are we missing any settings? Any help is appreciated.
Asked
Active
Viewed 115 times
0
-
Possibly a configuration issue in web.config`
-
1Hi @LanHuang, Thanks for the info. But my issue was not related to it. It turned out to be a missing DLL issue. I am using Global.asax > application_start event to load the Azure app config values, for some reason I was getting authentication failed error for missing DLL. I moved the loading method out of Global.asax and it started showing the actual missing DLL errors. Once I added all the DLLs in the bin, I was able to connect to the Azure app config and load all the values. Thanks for the link you shared. – BCoder Feb 23 '22 at 18:06
-
This issue is now resolved. Closing the thread. – BCoder Feb 23 '22 at 18:06