Hi,
I agree with Peter on this. You may post the content of your web.config
here to see if there's anything related to membership gets configured
incorrectly.
SqlMembership provider is in my ASP.NET 2.0 Web Application Project
and I don't know why. My web.config does not have any membership
information in it. I am using a custom authentiation/authorization
scheme in an HttpModule that creates a GenericPrincipal (with a
GenericIdentity). In the Page_Load of a test page, I only have this:
MembershipProvider mP = Membership.Provider;
if (HttpContext.Current.User.IsInRole("Admin") == false)
{
int aaaa = 4;
}
int bbbb = 54;
If I set a breakpoint on the second line and inspect "mP", it is
of type System.Web.Security.SqlMembershipProvider.
When I continue for the rolecheck, the web app appears to "hang"
while it looks for a non-existent SQL server connection.
I don't want to use the membership subsystem, what could be wrong?
Below is the web.config.
<?xml version="1.0"?>
<configuration
xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings></appSettings>
<connectionStrings/>
<system.web>
<compilation debug="true"></compilation>
<authentication mode="None"/>
<authorization>
<deny users="?"/>
</authorization>
<httpModules>
<add name="custauth"
type="custauthmode,testassem8"/>
</httpModules>
<httpHandlers></httpHandlers>
<sessionState mode="InProc" cookieless="false"
timeout="60"/>
<httpCookies httpOnlyCookies="true"
requireSSL="false" domain=""/>
</system.web>
</configuration>