473,505 Members | 13,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty Membership Provider?


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.
Aug 4 '06 #1
6 2663
Your site would not "try to set up" anything with Membership unless it was
specified in the web.config.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"xeroxero" wrote:
>
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.
Aug 4 '06 #2
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 (wa****@online.microsoft.com, 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.

Aug 7 '06 #3


On Fri, 4 Aug 2006 15:01:02 -0700, Peter Bromberg [C# MVP]
<pb*******@yahoo.nospammin.comwrote:
>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>




Aug 7 '06 #4
On Mon, 07 Aug 2006 06:09:30 GMT, wa****@online.microsoft.com (Walter
Wang [MSFT]) wrote:
>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>


Aug 7 '06 #5
On Fri, 4 Aug 2006 15:01:02 -0700, Peter Bromberg [C# MVP]
<pb*******@yahoo.nospammin.comwrote:
>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.
Aug 7 '06 #6
Hi xeroxero,

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

Regards,
Walter Wang (wa****@online.microsoft.com, 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.

Aug 8 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2426
by: Morgan | last post by:
Sorry for cross post, forgot to include aspnet in orinal... Thanks in advance for any assistance. I'm in the process of implementing custom RoleProvider & Membership Provider objects and have...
2
3536
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
3
7096
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
9
2154
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
2
14119
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
3
3264
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
4
7211
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to...
4
4718
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality...
1
14291
by: Ben | last post by:
Hi, When an anonymous user has created an new account (with the CreateUserWizard control), i want to let asp.net generate a password and to send it to the address of the email provided by the...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.