1

I have a WCF Service talking to a web application. In the web.config files I want to encrpyt the connetion string section.

I'm using aspnet_regiis -pe "connectionStrings" -app "/WebAppFolder" for the web applications web.config and this works fine.

But when I do the same for the WCF service I get an internal server error when I try and connect to it via the web app.

1 Answer 1

1

The problem was I needed to give my machine access to the configuration key

aspnet_regiis -pa "NetFrameworkConfigurationKey" "MYMACHINE\ASPNET"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.