Hi there,
I've encountered a strange issue with my project today. I was re-writing several elements of my support ticket application and I recreated the web.config file. Adding the providers back in, I find that I cannot seem to set them up properly using the ASP.NET Web Configuration Tool - according to the tool my providers don't exist, I only get the option to use the default ones. This is my web.config file:
<?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><configSections><!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /></configSections><connectionStrings><add name="SqlServices" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\George\Documents\Visual Studio 2013\Projects\SupportTicketProject2\SupportTicketProject2\App_Data\aspnetdb.mdf; Integrated Security=SSPI;" /><add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-SupportTicketProject2-20140926175422;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-SupportTicketProject2-20140926175422.mdf" /></connectionStrings><system.web><compilation debug="true" strict="false" explicit="true" targetFramework="4.5.1" /><httpRuntime targetFramework="4.5.1" /><pages><namespaces><add namespace="System.Web.Optimization" /></namespaces><controls><add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /></controls></pages><authentication mode="Forms"><forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" /></authentication><profile defaultProvider="ProfileProvider"><providers><clear /><add name="ProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="SqlServices" applicationName="DynaTicket" /></providers></profile><membership defaultProvider="MembershipProvider"><providers><clear /><add name="MembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SqlServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="DynaTicket" /></providers></membership><roleManager defaultProvider="RoleProvider" enabled="true"><providers><clear /><add name="RoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="SqlServices" applicationName="DynaTicket" /></providers></roleManager><!-- If you are deploying to a cloud environment that has multiple web server instances, you should change session state mode from "InProc" to "Custom". In addition, change the connection string named "DefaultConnection" to connect to an instance of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express. --><sessionState mode="InProc" customProvider="DefaultSessionProvider"><providers><add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /></providers></sessionState></system.web><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" /><bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" /><bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding></runtime><entityFramework><defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"><parameters><parameter value="v11.0" /></parameters></defaultConnectionFactory><providers><provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /></providers></entityFramework></configuration>
And this is what I see when I try to select them in the Tool:
I've probably borked something up somewhere, however I just can't seem to find the issue. Why can't the Tool 'see' the custom providers (so I can therefore set up roles etc)?