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
Bouthaina Tlijani
NA
265
22.8k
cannot access wcf service hosted in iis
Feb 1 2018 5:21 AM
Hello Guys,
I want to deploy my wcf service in iis and actually i'm getting this error :
ERREUR HTTP 500.19 - INTERNAL SERVER ERROR
You cannot access the page you requested because the related configuration data for the page is not valid.
this is my web.config
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
connectionStrings
>
<
add
name
=
"MyDbConn"
connectionString
=
"Data Source= BTI-LAPTOP\SQLEXPRESS2014; Integrated Security=true;Initial Catalog= icemwebappDB; uid=YourUserName; Password=yourpassword; "
providerName
=
"System.Data.SqlClient"
/>
</
connectionStrings
>
<
appSettings
>
<
add
key
=
"aspnet:UseTaskFriendlySynchronizationContext"
value
=
"true"
/>
</
appSettings
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.5"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
</
system.web
>
<
system.serviceModel
>
<
services
>
<
service
behaviorConfiguration
=
"CodeDefautServiceBehavior"
name
=
"icemRESTws.AccessService"
>
<
endpoint
address
=
""
behaviorConfiguration
=
"RESTEndpointBehavior"
binding
=
"webHttpBinding"
contract
=
"icemRESTws.IAccessService"
/>
</
service
>
</
services
>
<
behaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"RESTEndpointBehavior"
>
<
webHttp
/>
</
behavior
>
</
endpointBehaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"CodeDefautServiceBehavior"
>
<
serviceMetadata
httpGetEnabled
=
"true"
httpsGetEnabled
=
"true"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
<
behavior
name
=
""
>
<
serviceMetadata
httpGetEnabled
=
"true"
httpsGetEnabled
=
"true"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
</
serviceBehaviors
>
</
behaviors
>
<
protocolMapping
>
<
add
binding
=
"basicHttpsBinding"
scheme
=
"https"
/>
</
protocolMapping
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
multipleSiteBindingsEnabled
=
"true"
/>
</
system.serviceModel
>
<
system.webServer
>
<
httpProtocol
>
<
customHeaders
>
<
add
name
=
"Access-Control-Allow-Origin"
value
=
"*"
/>
</
customHeaders
>
</
httpProtocol
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
/>
<!--
Pour parcourir le répertoire racine de l'application Web lors du débogage, définissez la valeur ci-dessous sur true.
Définissez-la sur false avant le déploiement pour ne pas divulguer d'informations du dossier de l'application Web.
--
>
<
directoryBrowse
enabled
=
"true"
/>
</
system.webServer
>
</
configuration
>
help please :(
Reply
Answers (
2
)
WCF service throws 'InvalidOperationException'
How to Dynamically call the TIBCO external services from WCF