This topic contains 1 reply, has 1 voice, and was last updated by  Dariusz Nożyński 2 weeks ago.

  • Author
    Posts
  • #9824
     Dariusz Nożyński 
    Member

    Hi,

    Recently we have upgraded MSPControl to 2.0, AWStats Viewer can’t login with Portal account after upgrade. If we provide incorrect password it will correctly return incorrect password message, if we provide correct password it will fail with following error:

    System.InvalidOperationException: WebInvoke: https://enterprise.domain/AspNet/esPackages.asmx – GetMyPackages. Error: Client found response content type of ‘text/html; charset=utf-8’, but expected ‘application/soap+xml’. The request failed with the error message: —
    Server Error in ‘/’ Application.
    Authorization failed. Could be incorrect characters in your password.
    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.Exception: Authorization failed. Could be incorrect characters in your password.

    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:

    [Exception: Authorization failed. Could be incorrect characters in your password.]
       MSPControl.EnterpriseServer.SecurityContext.get_User() +136
       MSPControl.EnterpriseServer.PeerRolesSecurityModule.CheckPeerRoleAccess() +36
       MSPControl.EnterpriseServer.Authentication.OnAuthenticate(String username, String password) +550
       MSPControl.Core.Web.Security.Authenticate(String username, String password) +368
       MSPControl.Core.Web.Security.OnAuthenticateRequest(Object sender, EventArgs args) +796
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3761.0 –. ( at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Func1 invoke, Func1 syncInvoke) at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Object[] parameters)). at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Object[] parameters) at MSPControl.EnterpriseServer.esPackages.GetMyPackages(Int32 userId) at MSPControl.AWStats.Viewer.MSPControlAuthenticationProvider.AuthenticateUser(String domain, String username, String password)

    We tried upgrading AWStats Viewer component, using https addresses as well as local adresses of enterprise component in awstats config file (prior to 2.0 it was just pointing to 127.0.0.1:9002 as both components are on the same machine). We messed with SSL settings in enteprise web.config, tried to set passwords as simple as possible, using accounts with and without two factor authentication. Every single scenario returns exact same error.

    We also turned on Trace setting in enteprise config, after that we got following error:

    System.InvalidOperationException: WebInvoke: https://enterprise.domain/AspNet/esAuthentication.asmx – AuthenticateUser. Error: Client found response content type of ‘text/html; charset=utf-8’, but expected ‘application/soap+xml’. The request failed with the error message: —
    Server Error in ‘/’ Application.
    Could not load file or assembly ‘MSPControl.Providers.OS.Windows’ or one of its dependencies. The system cannot find the file specified.
    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.IO.FileNotFoundException: Could not load file or assembly ‘MSPControl.Providers.OS.Windows’ or one of its dependencies. The system cannot find the file specified.

    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.

    Assembly Load Trace: The following information can be helpful to determine why the assembly ‘MSPControl.Providers.OS.Windows’ could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [FileNotFoundException: Could not load file or assembly ‘MSPControl.Providers.OS.Windows’ or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +232
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +113
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +23
       System.Reflection.Assembly.Load(String assemblyString) +35
       MSPControl.Core.Runtime.get_OS() +102
       MSPControl.Core.Runtime.get_Platform() +9
       MSPControl.Core.Web.ServerConnectionInfoCache.GetConnectionInfo(String url, String httpUrl, String httpsUrl) +1127
       MSPControl.Core.Web.ServerConnectionInfoCache.get_LocalServer() +612
       MSPControl.Core.Web.ServerConnectionInfos.get_LocalServer() +69
       MSPControl.Core.Web.SoapServerProtocol..ctor(Boolean encrypted, Boolean binary) +199

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
       System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +223
       System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
       System.Activator.CreateInstance(Type type, Object[] args) +35
       MSPControl.Core.Types.New(Type type, Object[] args) +25
       System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +64
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +225

    [InvalidOperationException: Failed to handle request.]
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +1042
       System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +275
       System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +85
       System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +418
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3761.0 –. ( at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Func1 invoke, Func1 syncInvoke) at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Object[] parameters)). at MSPControl.Core.Web.ServiceProxy.Invoke(String methodName, Object[] parameters) at MSPControl.EnterpriseServer.esAuthentication.AuthenticateUser(String username, String password, String ip) at MSPControl.AWStats.Viewer.MSPControlAuthenticationProvider.AuthenticateUser(String domain, String username, String password)

    What could have changed in 2.0 that needs additional setup for AWStats Viewer to start working again?

    0
    Be the first one to like this.
    Please wait...

    --
    Best regards

    #9826
     Dariusz Nożyński 
    Member

    Problem has been solved through support, fixed AWStats Viewer Component is available in todays 2.0.0.1543 version.

    0
    Be the first one to like this.
    Please wait...

    --
    Best regards

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2019 MSPControl | Privacy Policy

Log in with your credentials

or    

Forgot your details?

Create Account