Pedro Ri

Pedro Ri

  • NA
  • 1
  • 1.4k

Want to remote the asp.net web security configurations from my project

Mar 8 2012 7:57 PM
Hi,
I have created a webapp in vb.net. It's an azure app.
I have then configured the security through the asp.net configuration option. 

Now I want to remove it from my project.

At this stage I don't need to make login.

How can I remote it ?

My web.config file is:

<?



xml version="1.0" encoding="utf-8"?>


<!--


  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" />


    <



add name="DefaultConnection" connectionString="Data Source=Server=tcp:mwjw08qhju.database.windows.net,1433;Database=SGS;User ID=pr@mwjw08qhju;Password=myPassword;Trusted_Connection=False;Encrypt=True;" />


    <



add name="aspnet_1db0ca8ec36d4ba1852e5e4ec9947660Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\SQLEXPRESS;initial catalog=aspnet_1db0ca8ec36d4ba1852e5e4ec9947660;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /><add name="SGSEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mwjw08qhju.database.windows.net;initial catalog=SGS;user id=pr;password=00yzw12ptag34_;encrypt=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>




  <



system.web>


    <



authorization>


      <



allow roles="Administrador" />


      <



deny users="?" />


    </



authorization>


    <



compilation debug="true" strict="false" explicit="true" targetFramework="4.0">


      <



assemblies>


        <



add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />


      </



assemblies>


    </



compilation>


    <



authentication mode="Forms">


      <



forms loginUrl="~/Account/default.aspx" timeout="2880" />


    </



authentication>



    <



membership>


      <



providers>


        <



clear />


        <



add connectionStringName="ApplicationServices" enablePasswordRetrieval="false"


         



enablePasswordReset="true" requiresQuestionAndAnswer="false"


         



requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"


         



minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"


         



applicationName="/" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" />


        <



add connectionStringName="DefaultConnection" enablePasswordRetrieval="false"


         



enablePasswordReset="true" requiresQuestionAndAnswer="false"


         



requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"


         



minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"


         



applicationName="/" name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />


      </



providers>


    </



membership>


    <



profile defaultProvider="DefaultProfileProvider">


      <



providers>


        <



clear />


        <



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


        <



add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" 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" />


        <



add connectionStringName="DefaultConnection" applicationName="/"


         



name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />


      </



providers>


    </



roleManager>


    <



sessionState mode="InProc" customProvider="DefaultSessionProvider">


      <



providers>


        <



add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />


      </



providers>


    </



sessionState>


  </



system.web>


  <



system.webServer>


    <



modules runAllManagedModulesForAllRequests="true" />


  </



system.webServer>


</



configuration>