Ik probeer onze WCF service via HTTPS beschikbaar te krijgen, echter lukt het me niet om dit werkend te krijgen.
Ik blijf continue foutmeldingen krijgen, en weet nu even neit zo goed meer waar ik het moet zoeken.
Web.config
Ik krijg de onderstaande foutmelding:
Ik blijf continue foutmeldingen krijgen, en weet nu even neit zo goed meer waar ik het moet zoeken.
Web.config
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="SIMSCENARIOSConnectionString" connectionString="Data Source=sqlsrv17;Initial Catalog=SIMSCENARIOS;User ID=simscen;Password=simscen" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <compilation strict="false" explicit="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <client> <endpoint address="https://simscendb.stc-group.nl/SimScenarioService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISimScenarioService" contract="ServiceReference1.ISimScenarioService" name="BasicHttpBinding_ISimScenarioService" /> </client> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_ISimScenarioService"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="Transport"> <transport clientCredentialType="None" /> </security> </binding> </basicHttpBinding> <customBinding> <binding name="SimScenarios.Web.SimScenario.customBinding0"> <binaryMessageEncoding /> <httpTransport /> </binding> </customBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> <services> <service name="SimScenarios.Web.SimScenario"> <endpoint address="https://simscendb.stc-group.nl/simscenarioservice.svc" binding="customBinding" bindingConfiguration="SimScenarios.Web.SimScenario.customBinding0" contract="ServiceReference1.ISimScenarioService" /> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> </system.serviceModel> </configuration> |
Ik krijg de onderstaande foutmelding:
Server Error in '/' Application. -------------------------------------------------------------------------------- Service 'SimScenarios.Web.SimScenarioService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Service 'SimScenarios.Web.SimScenarioService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Service 'SimScenarios.Web.SimScenarioService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.] System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreApplicationEndpoints(ServiceDescription description) +346 System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +292 System.ServiceModel.ServiceHostBase.InitializeRuntime() +90 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +182 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +742 System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +126 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901 [ServiceActivationException: The service '/simscenarioservice.svc' cannot be activated due to an exception during compilation. The exception message is: Service 'SimScenarios.Web.SimScenarioService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element..] System.Runtime.AsyncResult.End(IAsyncResult result) +654324 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +210877 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +166 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446 |