While the customer is trying to connect to their SMP server using the ITMS Admin iPad app, the app shows a loading pop-up that just spins itself then the error comes up “Failed to Authenticate. Check your login credentials and try again”.
The login credentials have been checked and re-checked with various users, no one can get in.
The NS logs shows the following entries when the customer was trying to login:
“Unhandled exception. System.InvalidOperationException (System.Web.Services):
Request format is unrecognized for URL unexpectedly ending in '/‘. …”
If you try to access one of the links used to authenticate with the ITMS Admin app via an internet browser (in the actual SMP itself), in this case http://localhost/altiris/ITMSAdmin/v1/ITMSAdmin.svc/auth, the following error message appears in the browser:
Server Error in '/Altiris/ITMSAdmin' Application.
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item
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: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item
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: [ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item] System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +15764300 System.Collections.Generic.SynchronizedCollection`1.Add(T item) +65 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +62 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +266 System.ServiceModel.Web.WebServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +10 System.ServiceModel.Activation.WebServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +42 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +427 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +759 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +46 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +654 [ServiceActivationException: The service '/Altiris/ITMSAdmin/v1/ITMSAdmin.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item.] System.ServiceModel.AsyncResult.End(IAsyncResult result) +15778272 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +15698617 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +265 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
We found out a reference online that mentions having problems when we bind the same protocol to two ports in the Default Web Site in IIS Manager. In this case the customer had 'http' bind to port 80 and 8080.
We deleted the binding for port 8080 in http and the issue get away.
1. Open IIS Manager
2. Expand 'Sites' and click on 'Default Web Site'
3. In the right-hand pane, under Actions>Edit Site, click on Bindings
4. Check that under 'Type' column, 'http' or 'https' don't have more than one port assigned to them.
Applies To
ITMS 7.5 + HF4
ITMS Admin 7.5 app