C# Windows Azure您的登录尝试未成功。请再试一次

C# Windows Azure您的登录尝试未成功。请再试一次,c#,asp.net,visual-studio,azure,C#,Asp.net,Visual Studio,Azure,我在我的windows azure visual studio上遇到此问题,每当我想登录时,我都会收到此错误消息 “您的登录尝试未成功。请重试。” 我已经正确输入了101%的用户详细信息,我正在使用登录控件 这是我的web.config详细信息 我已将我的网络服务设置为完全权限,我也不工作 请帮帮我我被困在这里好几天了 请在此处查看我的代码,因为我无法将其粘贴到此处。谢谢 我看不到任何到Azure数据库的连接字符串。@KrunalPatil您好,我使用cloud>Azure设置了此项目。hm

我在我的windows azure visual studio上遇到此问题,每当我想登录时,我都会收到此错误消息

“您的登录尝试未成功。请重试。”

我已经正确输入了101%的用户详细信息,我正在使用登录控件

这是我的web.config详细信息

我已将我的网络服务设置为完全权限,我也不工作

请帮帮我我被困在这里好几天了

请在此处查看我的代码,因为我无法将其粘贴到此处。谢谢



我看不到任何到Azure数据库的连接字符串。@KrunalPatil您好,我使用cloud>Azure设置了此项目。hmmm如何将连接字符串设置为我的Azure数据库(aspnetdb.mdf)。是否需要应用程序连接到已创建的Azure数据库?您是在使用azure网站选项,还是部署在虚拟机上?
<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
  <system.diagnostics>
    <trace>
      <listeners>
        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          name="AzureDiagnostics">
          <filter type=""/>
        </add>
      </listeners>
    </trace>
  </system.diagnostics>
  <connectionStrings>
    <add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
  </connectionStrings>

  <system.web>
    <authorization>
      <allow roles="User" />
    </authorization>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />

    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>

    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
             applicationName="/" />
      </providers>
    </membership>

    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>

    <roleManager enabled="true" >
      <providers>
        <clear />
        <add connectionStringName="ApplicationServices" applicationName="/"
          name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
        <add applicationName="/" name="AspNetWindowsTokenRoleProvider"
          type="System.Web.Security.WindowsTokenRoleProvider" />
      </providers>
    </roleManager>

  </system.web>

  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>