Error: Cannot obtain Metadata from http://localhost:61431/RoleService.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:61431/RoleService.svc Metadata contains a reference that cannot be resolved: 'http://localhost:61431/RoleService.svc'. The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 10.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;word-break:break-all;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;} a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:'. The remote server returned an error: (500) Internal Server Error.HTTP GET Error URI: http://localhost:61431/RoleService.svc There was an error downloading 'http://localhost:61431/RoleService.svc'. The request failed with the error message:--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 10.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;word-break:break-all;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;} a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} h4{font-size:1.2em;margin:10px 0 5px 0; }#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif; color:#FFF;background-color:#5C87B2; }#content{margin:0 0 0 2%;position:relative;} .summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} .content-container p{margin:0 0 10px 0; }#details-left{width:35%;float:left;margin-right:2%; }#details-right{width:63%;float:left;overflow:hidden; }#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; font-size:1em;color:#FFF;text-align:right; }#server_version p{margin:5px 0;} table{margin:4px 0 4px 0;width:100%;border:none;} td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;} th{width:30%;text-align:right;padding-right:2%;font-weight:bold;} thead th{background-color:#ebebeb;width:25%; }#details-right th{width:20%;} table tr.alt td,table tr.alt th{} .highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} .clear{clear:both;} .preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} --> </style> </head> <body> <div id="content"> <div class="content-container"> <h3>HTTP Error 500.19 - Internal Server Error</h3> <h4>The requested page cannot be accessed because the related configuration data for the page is invalid.</h4> </div> <div class="content-container"> <fieldset><h4>Detailed Error Information:</h4> <div id="details-left"> <table border="0" cellpadding="0" cellspacing="0"> <tr class="alt"><th>Module</th><td>ÿÿÿIIS Web Core</td></tr> <tr><th>Notification</th><td>ÿÿÿUnknown</td></tr> <tr class="alt"><th>Handler</th><td>ÿÿÿNot yet determined</td></tr> <tr><th>Error Code</th><td>ÿÿÿ0x800700b7</td></tr> <tr class="alt"><th>Config Error</th><td>ÿÿÿConfig section 'system.webServer/modules' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions</td></tr> <tr><th>Config File</th><td>ÿÿÿ\\?\D:\CareerFramework\CG.RS.ServiceLayer\web.config</td></tr> </table> </div> <div id="details-right"> <table border="0" cellpadding="0" cellspacing="0"> <tr class="alt"><th>Requested URL</th><td>ÿÿÿhttp://localhost:61431/RoleService.svc</td></tr> <tr><th>Physical Path</th><td>ÿÿÿ</td></tr> <tr class="alt"><th>Logon Method</th><td>ÿÿÿNot yet determined</td></tr> <tr><th>Logon User</th><td>ÿÿÿNot yet determined</td></tr> <tr class="alt"><th>Request Tracing Directory</th><td>ÿÿÿD:\Users\hariskul\Documents\IISExpress\TraceLogFiles\</td></tr> </table> <div class="clear"></div> </div> </fieldset> </div> <div class="config_source content-container"> <fieldset> <h4>Config Source:</h4> <pre><code> 190: <validation validateIntegratedModeConfiguration="false" /><span class="highlight-code"> 191: <modules runAllManagedModulesForAllRequests="true" ></span> 192: <remove name="UrlRoutingModule"/></code></pre> </fieldset> </div> <div class="content-container"> <fieldset><h4>More Information:</h4> This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.<p></p><p></p>If you see the text "There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined", this error is because you are running a .NET Framework 3.5-based application in .NET Framework 4. If you are running WebMatrix, to resolve this problem, go to the Settings node to set the .NET Framework version to ".NET 2". You can also remove the extra sections from the web.config file. <p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&IIS70Error=500,19,0x800700b7,7601">View more information ¯</a></p> </fieldset> </div> </div> </body> </html> --.
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
<section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
</configSections>
<loggingConfiguration name="RSServiceLog" tracingEnabled="true" defaultCategory="General">
<listeners>
<add name="Rolling Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" fileName="RSServiceLog.Log" formatter="Text Formatter" rollSizeKB="500" maxArchivedFiles="100" traceOutputOptions="DateTime, ProcessId, Callstack"/>
</listeners>
<formatters>
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="Timestamp: {timestamp}{newline}
Message: {message}{newline}
Category: {category}{newline}
Priority: {priority}{newline}
EventId: {eventid}{newline}
Severity: {severity}{newline}
Title:{title}{newline}
Machine: {localMachine}{newline}
App Domain: {localAppDomain}{newline}
ProcessId: {localProcessId}{newline}
Process Name: {localProcessName}{newline}
Thread Name: {threadName}{newline}
Win32 ThreadId:{win32ThreadId}{newline}
Extended Properties: {dictionary({key} - {value}{newline})}" name="Text Formatter"/>
</formatters>
<categorySources>
<add switchValue="All" name="General">
<listeners>
<add name="Rolling Flat File Trace Listener"/>
</listeners>
</add>
</categorySources>
<specialSources>
<allEvents switchValue="All" name="All Events"/>
<notProcessed switchValue="All" name="Unprocessed Category"/>
<errors switchValue="All" name="Logging Errors & Warnings">
<listeners>
<add name="Rolling Flat File Trace Listener"/>
</listeners>
</errors>
</specialSources>
</loggingConfiguration>
<exceptionHandling>
<exceptionPolicies>
<add name="WCFServicePolicy">
<exceptionTypes>
<add name="All Exceptions" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="ThrowNewException">
<exceptionHandlers>
<add name="BusinessLogicLoggingHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" priority="0"/>
<add name="BusinessLogicReplaceHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" exceptionMessage="Please contact Help Desk Support with Error Token ID {handlingInstanceID}." replaceExceptionType="CG.RS.CommonLayer.ExceptionTypes.WCFServiceException, CG.RS.CommonLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
<add name="WCFServiceCustomPolicy">
<exceptionTypes>
<add name="All Exceptions" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="NotifyRethrow">
<exceptionHandlers>
<add name="ReplaceHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" replaceExceptionType="CG.RS.CommonLayer.ExceptionTypes.WCFServiceCustomException, CG.RS.CommonLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
<add name="PassThroughPolicy">
<exceptionTypes>
<add name="All Exceptions" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="NotifyRethrow">
<exceptionHandlers>
<add name="PassThroughReplaceHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" replaceExceptionType=" CG.RS.CommonLayer.ExceptionTypes.PassThroughException, CG.RS.CommonLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
<add name="UserInterfacePolicy">
<exceptionTypes>
<add name="All Exceptions" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="ThrowNewException">
<exceptionHandlers>
<add name="UserInterfaceLoggingHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" priority="0"/>
<add name="UserInterfaceReplaceHandler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" exceptionMessage="Please contact Help Desk Support with Error Token ID {handlingInstanceID}." replaceExceptionType=" CG.RS.CommonLayer.ExceptionTypes.UserInterfaceException, CG.RS.CommonLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
</exceptionPolicies>
</exceptionHandling>
<connectionStrings>
<add name="ApplicationServices" connectionString="Server=IN-PNQ-DSQLDB01;Database=CFWK;Integrated Security=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings>
<add key="ENVIORNMENT" value="DEV"/>
<add key="SMTPServer" value="smtp-relay.fs.capgemini.com"/>
<add key="L1ApprovalTemplate" value="~/MailTemplates/L1_Approval.xsl"/>
<add key="SPOCApprovalTemplate" value="~/MailTemplates/SPOC_Approval.xsl"/>
<add key="AdminApprovalTemplate" value="~/MailTemplates/Admin_Approval.xsl"/>
<add key="Aspiration_Selection" value="~/MailTemplates/Aspiration_Selection.xsl"/>
<add key="ChangeRequest_WordTemplate" value="~/MailTemplates/CareerFramework_Role_Change_form.dotx"/>
<add key="ChangeRequestTemplate" value="~/MailTemplates/Role_Change_Request.xsl"/>
<add key="AdminActionRoleChangeRequestTemplate" value="~/MailTemplates/AdminActionRoleChangeRequestTemplate.xsl"/>
<add key="TempFilesLocation" value="~/TempFiles/"/>
<add key="TalentMailName" value="Talent FSSBU"/>
<add key="EncryptionKey" value="CGC@reerFr@mework"/>
<add key="CompetencyBigImagePath" value="~/Images/CompetencyImageBig/"/>
<add key="CompetencySmallImagePath" value="~/Images/CompetencyImageSmall/"/>
</appSettings>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.6.1" />
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.6.1"/>
<pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>
<system.serviceModel>
<services>
<service name="CG.RS.ServiceLayer.RoleService">
<endpoint address="/SuperAdmin" name="SuperAdminEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.ISuperAdmin" behaviorConfiguration="SuperAdminEndpointBehavior"/>
<endpoint address="/Admin" name="AdminEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.IAdmin" behaviorConfiguration="AdminEndpointBehavior"/>
<endpoint address="/Approver" name="ApproverEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.IApprover" behaviorConfiguration="ApproverEndpointBehavior"/>
<endpoint address="/Master" name="MasterEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.IMaster" behaviorConfiguration="MasterEndpointBehavior"/>
<endpoint address="/Logon" name="LogonEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.ILogon" behaviorConfiguration="LogonEndpointBehavior"/>
<endpoint address="/CareerFrameworkRole" name="RoleEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.IExposeData" behaviorConfiguration="RoleEndpointBehavior"/>
<endpoint address="/Employee" name="EmployeeEndPoint" binding="webHttpBinding" contract="CG.RS.ServiceLayer.IEmployee" behaviorConfiguration="EmployeeEndpointBehavior"/>
<endpoint address="/mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost/CG.RS.ServiceLayer/RoleService/"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior >
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above 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="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceThrottling maxConcurrentCalls="20" maxConcurrentSessions="20" maxConcurrentInstances="2147483647"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="LargeEndpointBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
</behavior>
<behavior name="MasterEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="ApproverEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="AdminEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="SuperAdminEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="LogonEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="RoleEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
<behavior name="EmployeeEndpointBehavior">
<webHttp automaticFormatSelectionEnabled="true"/>
</behavior>
</endpointBehaviors>
</behaviors>
<protocolMapping>
<add binding="webHttpBinding" scheme="http"/>
</protocolMapping>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:20:00" sendTimeout="00:05:00" allowCookies="false" bypassProxyOnLocal="true" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="0" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="false">
<readerQuotas maxDepth="512" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
<webHttpBinding>
<binding crossDomainScriptAccessEnabled="true" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:20:00" sendTimeout="00:05:00" allowCookies="false" bypassProxyOnLocal="true" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Buffered" useDefaultWebProxy="false">
<readerQuotas maxDepth="512" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
</binding>
</webHttpBinding>
</bindings>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" >
<remove name="UrlRoutingModule"/>
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</modules>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
</system.webServer>
skg
</configuration>
i need proper solution