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
Gajendra Jangid
28
41.2k
2.2m
Error: Cannot obtain Metadata from WCF service
Jan 28 2018 4:45 AM
Error: Cannot obtain Metadata from WCF service
Reply
Answers (
2
)
1
Sagar Pandurang Kap
0
11.6k
67.1k
Jan 28 2018 11:00 PM
Hi,
<serviceBehaviors> <behavior name="MEX"> <serviceMetadata/>
</behavior> </serviceBehaviors>
Add above lines in Web.config.
Hope it helps..
0
Mageshwaran R
0
10.8k
1.1m
Nov 12 2019 10:48 PM
Hi,
WebConfig[WCF]:
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
connectionStrings
>
<
add
name
=
"Json_ConnectionString"
connectionString
="Data Source="
ConnectionString
"
/>
</
connectionStrings
>
<
appSettings
>
<
add
key
=
"aspnet:UseTaskFriendlySynchronizationContext"
value
=
"true"
/>
</
appSettings
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.6.1"
/>
<
httpRuntime
targetFramework
=
"4.6.1"
/>
</
system.web
>
<
system.serviceModel
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"BehaviourName"
>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<
serviceMetadata
httpGetEnabled
=
"true"
httpsGetEnabled
=
"true"
/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
</
serviceBehaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"Web"
>
<
webHttp
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
<
services
>
<
service
behaviorConfiguration
=
"BehaviourName"
name
=
"Service.Service"
>
<
endpoint
behaviorConfiguration
=
"Web"
binding
=
"webHttpBinding"
contract
=
"Service.IService"
/>
</
service
>
</
services
>
<
protocolMapping
>
<
add
binding
=
"basicHttpsBinding"
scheme
=
"https"
/>
</
protocolMapping
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
multipleSiteBindingsEnabled
=
"true"
/>
</
system.serviceModel
>
<
system.webServer
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
--
>
<
directoryBrowse
enabled
=
"true"
/>
</
system.webServer
>
</
configuration
>
[Validating JWT token expiry ]
what is endpoint in wcf