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
Geethuja Tom
NA
9
1.8k
Consuming JSON service error in WCF
Sep 25 2013 12:47 AM
I follow the article : http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/consuming-json-service-in-windows-8-html5-metro-app/
I fetch this problem
I develop one wcf service application in visual studio express 2012 for web. I got this error while during WCF TEST CLIENT.
Error: Cannot obtain Metadata from http://localhost:65504/Service1.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:65504/Service1.svc Metadata contains a reference that cannot be resolved: 'http://localhost:65504/Service1.svc'. There was no endpoint listening at http://localhost:65504/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. The remote server returned an error: (404) Not Found.HTTP GET Error URI: http://localhost:65504/Service1.svc The HTML document does not contain Web service discovery information.
HOW CAN I SOLVE THIS ERROR?
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.0"
/>
</
system.web
>
<
system.serviceModel
>
<
services
>
<
service
name
=
"kkk.Service1"
>
<
endpoint
name
=
"RESTEndPoint"
contract
=
"kkk.IService1"
binding
=
"webHttpBinding"
address
=
"rest"
behaviorConfiguration
=
"restbehavior"
/>
</
service
>
</
services
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"ServiceBehavior"
>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
<
serviceMetadata
httpGetEnabled
=
"true"
/>
</
behavior
>
</
serviceBehaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"restbehavior"
>
<
webHttp
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
</
system.serviceModel
>
<
system.webServer
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
/>
<
directoryBrowse
enabled
=
"true"
/>
</
system.webServer
>
</
configuration
>
Reply
Answers (
2
)
How to make Chat application using wcf
WCF