Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to solve the error "serviceActivation not found" in WCF
Guruprakash C
Oct 20 2017 5:24 AM
289
Reply
I'm trying to display list of details from database using wcf but i got an error while running my service.
The error is "
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
" in detail as "
Error: Cannot obtain Metadata from http://localhost:49825/Playstack.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: http://localhost:49825/Playstack.svc Metadata contains a reference that cannot be resolved
".
I have tried by looking into url provided by many sites but error is not debugged.
What i have tried is:
<
system.serviceModel
>
<
services
>
<
service
name
=
"Playstack.Playstack"
behaviorConfiguration
=
"ps"
>
<
endpoint
address
=
"Playstack"
binding
=
"basicHttpBinding"
contract
=
"Playstack.IPlaystack"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpBinding"
contract
=
"IMetadataExchange"
/>
<
host
>
<
baseAddresses
>
<
add
baseAddress
=
"http://localhost:49825/"
/>
</
baseAddresses
>
</
host
>
</
service
>
</
services
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"ps"
>
<
serviceMetadata
httpGetEnabled
=
"true"
httpsGetEnabled
=
"true"
httpGetBinding
=
"basicHttpBinding"
/>
</
behavior
>
</
serviceBehaviors
>
</
behaviors
>
</
system.serviceModel
>
Attachment:
PlaystackWs.zip
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to update WCF service APIs in IIS website
End point related