Saturday, 21 July 2012

Error Type: Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.

After deploying wcf service in IIS and trying to open service we will get error message like:
"Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata."

This type of message might get when your wcf service folder out side of wwsroot folder.

Inorder to solve this problem we need to add IIS_IUSRS name to the wcf service folder's security and give read permission.

Here the steps:

1) Open your wcf service folder and right click , select properties

2) Select Security tab and click on Edit

3) Click on Add button

4) Enter IIS_USRS click on Check Names

5) Check proper permission and click on Apply and OK.

1 comment: