locked
signalr not working using IsolateApps RRS feed

  • Question

  • User932259438 posted

    Hi,

           <machineKey  decryptionKey="F6722806843145965513817CEBDECBB1F94808E4A6C0B2F2,IsolateApps" validationKey="C551753B0325187D1759B4FB055B44F7C5077B016C02AF674E8DE69351B69FEFD045A267308AA2DAB81B69919402D7886A6E986473EEEC9556A9003357F5ED45,IsolateApps" />


    If I have IsolateApps not working, If I removed working signalr, but membership log in not working. Returns> Wrong password.

    How can I resolved this?

    Thursday, April 14, 2016 6:57 PM

All replies

  • User61956409 posted

    Hi progy85,

    If I have IsolateApps not working, If I removed working signalr, but membership log in not working. Returns> Wrong password.

    Firstly, could you share us the code of membership configuration?

    Secondly, this article explained changing MachineKey on IIS while using SQLMembership provider, you could read it.

    http://artisticcheese.blogspot.sg/2014/04/changing-machinekey-on-iis-while-using.html

    Best Regards,

    Fei Han

    Friday, April 15, 2016 8:11 AM
  • User932259438 posted

    Hi,

    If I removed machinekey login return: You must specify a non-autogenerated machine key to store passwords in the encrypted format...

    Code for login:

      var membershipuser = Membership.Providers["AspNetSqlMembershipProvider"];
            membershipuser.ApplicationName = baseUrl();
    
    
            if (membershipuser.ValidateUser(username, pass) && (rolesuser.Count() == 0) || (membershipuser.ValidateUser(username, pass) && (rolesuser.FirstOrDefault().RoleId == new Guid("94A8F133-0C01-47BB-AB33-3E6D640D5DD9"))))
            {


    But If I used autogenerate Login return: Password is wrong. This is for old user, for new user is correct.


    But I do not want change password for old user.

    Problem I have for signalr, if removed from machinekey IsolateApps, signalr working, but login return: password is wron. This is for old user, for new user working.

    For your link I think is not possible to check because my configuration is like this at this moment:

    <configuration>
      <configSections>
        <sectionGroup name="enyim.com">
          <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching"/>
        </sectionGroup>
      </configSections>
      <system.web>
        <pages renderAllHiddenFieldsAtTopOfForm="true"></pages>
        
        <customErrors mode="Off"/>
        <sessionState mode="StateServer" timeout="6000" stateConnectionString="tcpip=localhost:42424"/>
        <compilation targetFramework="4.5" debug="true">
          <assemblies>
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
          </assemblies>
        </compilation>
        <!--<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>-->
        <!--<pages theme="" styleSheetTheme="" validateRequest="false" controlRenderingCompatibilityVersion="3.5"
      clientIDMode="AutoID" />-->
      </system.web>
      <system.web>
        <!--<httpRuntime targetFramework="4.5" />-->
        <!--<machineKey  validationKey="C551753B0325187D1759B4FB055B44F7C5077B016C02AF674E8DE69351B69FEFD045A267308AA2DAB81B69919402D7886A6E986473EEEC9556A9003357F5ED45,IsolateApps" decryptionKey="F6722806843145965513817CEBDECBB1F94808E4A6C0B2F2,IsolateApps" />-->
    
        <!--<machineKey validationKey="AutoGenerate,IsolateApps" 
                decryptionKey="AutoGenerate,IsolateApps" 
                validation="SHA1"/>-->
        <machineKey decryptionKey="F6722806843145965513817CEBDECBB1F94808E4A6C0B2F2,IsolateApps" validationKey="C551753B0325187D1759B4FB055B44F7C5077B016C02AF674E8DE69351B69FEFD045A267308AA2DAB81B69919402D7886A6E986473EEEC9556A9003357F5ED45,IsolateApps"/>
        <!--<machineKey validationKey="AutoGenerate, IsolateApps" decryptionKey="AutoGenerate, IsolateApps" validation="SHA1" />-->
    
      </system.web>
    
    
     <connectionStrings>
        <add name="connectionString" connectionString="data source=M0532\SQLEXPRESS;initial catalog=TEST;Integrated Security=True;" providerName="System.Data.SqlClient"/> </connectionStrings>
    
    membership>
          <providers>
            <clear/>
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider " connectionStringName="connectionString" enablePasswordRetrieval="true" passwordFormat="Encrypted" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="20" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
          </providers>
        </membership>
    
    
    
    <providers>
            <clear/>
            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="connectionString" applicationName="/"/>
          </providers>
    
    



    Sunday, April 17, 2016 10:12 AM