Server Error in '/ADC.NET' Application.

The provided URI scheme 'https' is invalid; expected 'http'.
Parameter name: via

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.ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'.
Parameter name: via

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'.
Parameter name: via]
   System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) +236
   System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) +20
   System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannelCore(EndpointAddress remoteAddress, Uri via) +29
   System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) +132
   System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) +53
   System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) +48
   System.ServiceModel.Channels.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) +35
   System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) +23
   System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) +71
   System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) +275
   System.ServiceModel.ChannelFactory`1.CreateChannel() +31
   System.ServiceModel.ClientBase`1.CreateChannel() +117
   System.ServiceModel.ClientBase`1.CreateChannelInternal() +32
   System.ServiceModel.ClientBase`1.get_Channel() +421
   Art.Common.ServiceInterface.ECommerceAPI.ECommerceAPIClient.BeginProfileGet(String apiKey, String sessionId, String authToken, String accountIdentifier, ProfileLookupType lookupType, Boolean includeGalleries, Boolean includeBookmarks, Boolean includeFollowing, Boolean includeFollowedBy, Boolean includeRecentActivity, Boolean includeFollowersRecentActivity, Boolean includeFollowingRecentActivity, Int32 followPageNumber, Int32 followItemsPerPage, Boolean includeAddresses, Boolean includeFollowersAddresses, Boolean includeFollowingAddresses, AsyncCallback callback, Object asyncState) +11
   ADC.Web.Root.Pages.MyGalleries.MyGalleriesHomeAsync.BeginThemAccountRequest(Object sender, EventArgs e, AsyncCallback cb, Object state) +475
   System.Web.UI.LegacyPageAsyncTask.Start(LegacyPageAsyncTaskManager manager, Object source, EventArgs args) +112

[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
   System.Web.HttpAsyncResult.End() +55
   System.Web.UI.LegacyPageAsyncTaskManager.EndExecuteAsyncTasks(IAsyncResult ar) +14
   System.Web.UI.LegacyPageAsyncInfo.OnAsyncHandlerCompletion(IAsyncResult ar) +98

[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
   System.Web.HttpAsyncResult.End() +55
   System.Web.UI.Page.LegacyAsyncPageEndProcessRequest(IAsyncResult result) +22
   System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result) +61
   ASP.root_pages_mygalleries_mygallerieshomeasync_aspx.EndProcessRequest(IAsyncResult ar) +10
   System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +152
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +126


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