Empty Membership Provider?

X

xeroxero

I do not have any membership provider information specified in my
ASP.NET 2.0 web.config file. After digest authentication, the site
"hangs" for 20 seconds and then gives a SQL Server error, I think
because it is trying to set up default membership for my site.

I do not want any membership information. Is there a way to specify no
providers, or make a dummy/empty/stub provider?

Thanks.
 
G

Guest

Your site would not "try to set up" anything with Membership unless it was
specified in the web.config.
Peter
 
W

Walter Wang [MSFT]

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.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
X

xeroxero

Your site would not "try to set up" anything with Membership unless it was
specified in the web.config.
Peter






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>
 
X

xeroxero

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>
 
X

xeroxero

Your site would not "try to set up" anything with Membership unless it was
specified in the web.config.
Peter

It appears that ASP.NET is also going to the database for Roles. But I
don't have anything specified as a Role Provider, and in fact I get
the roles and set them up in an HttpModule.
 
W

Walter Wang [MSFT]

Hi xeroxero,

Is it possible to create a repro project and send it to me? Thanks.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top