Server Error in '/' Application.

Could not find default endpoint element that references contract 'CookieServiceReference.IServices' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client 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: Could not find default endpoint element that references contract 'CookieServiceReference.IServices' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client 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: Could not find default endpoint element that references contract 'CookieServiceReference.IServices' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.]
   System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName) +16291200
   System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration) +164
   System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address) +206
   System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) +149
   System.ServiceModel.ConfigurationEndpointTrait`1.CreateSimplexFactory() +15945264
   System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait) +27
   System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef() +394
   ACS.NTP.NTPWebsite.CookieServiceReference.ServicesClient..ctor() in C:\Projects\Source\svn\FM1\NTP\NTPWebsite\trunk\NTPWebsite\NTPWebsite\Service References\CookieServiceReference\Reference.cs:6229
   ACS.NTP.NTPWebsite.Classes.Core.CookieServiceHandler..ctor() in C:\Projects\Source\svn\FM1\NTP\NTPWebsite\trunk\NTPWebsite\NTPWebsite\Classes\Core\CookieServiceHandler.cs:9
   ACS.NTP.NTPWebsite.Pages.Copyright.CookiePolicy.Page_Load(Object sender, EventArgs e) in C:\Projects\Source\svn\FM1\NTP\NTPWebsite\trunk\NTPWebsite\NTPWebsite\Pages\Copyright\CookiePolicy.aspx.cs:19
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0