TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guruprakash C
NA
142
27.7k
How to solve the error "serviceActivation not found" in WCF
Oct 20 2017 5:24 AM
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
Reply
Answers (
1
)
How to update WCF service APIs in IIS website
End point related