|
What's wrong?
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load type 'Andri.Web.MySqlRoleProvider'.
Source Error:
Line 36: <add
Line 37: name="MySqlRoleProvider"
Line 38: type="Andri.Web.MySqlRoleProvider"
Line 39: connectionStringName="ConnString"
Line 40: applicationName="Booking_System_07072009"
|
|
|
|
|
To use these classes, you will need the latest MySQL .NET Connector. You might need to recompile it with the new C# compiler for v2.0 (but the new framework should normally support v1.0 or 1.1 assemblies).
how i do that???
|
|
|
|
|
|
im getting this error
"Provider must implement the class 'System.Web.Security.RoleProvider'"
can help me
|
|
|
|
|
I am getting the same error using the new v6.0.4 connector. Never got this with v5.2.3. Did you find a resolution?
|
|
|
|
|
BTW, I have reverted back to 5.2.3 and the error is gone.
|
|
|
|
|
I built a small website in VS 2008 written in C#. I'm able to view and modify tables within my program using MySQL as a datasource. I'm trying to take it to the next level and use MySQL as a role and membership provider. I followed the above directions to a T. I was able to build the project successfully. Unfortunately, when I go to the ASP.NET Web Application and Admin Tool and click on the "Test" button for MySQLMembershipProvider (or RoleProvider) I am unable to connect. The database is currently hosted online (not localhost). I have created the appropriate tables and tried connection strings known to work, but nothing.
I've been working on this for six hours and I'm about to lose it. Can anyone help?
|
|
|
|
|
OK...As far as I can figure out, the Admin Tool isn't compatible with remote DBs. So, I gotta code everything manually (which is fine). Does anyone have any sample code for login control?
|
|
|
|
|
hello..thanks for the code..its really helpful. I have the folowing issue however, when i create more than one user through the website administration interface, the site goes buzurk..with one user it works fine though. Here is what im doing:
i have a master page with a loginstatus and loginname controls, the login control itself is not on the master page i dont want it to appear everywhere, so its on the default.aspx page. using one user, lets say user1, i can login and logout normally, however if i added another user with the same role, lets say user2, and i login using user1, logging out doesnt work anymore, it keeps me on the same page not going back to default.aspx where the login control resides. Is this issue from the way i wrote the site or is it from integrating mysql with asp membership?
one thing to note is when i press the test button next to the provider it gives me an error that i must create the database, this happens regardless of how many users i created. I am using mysql 4.1. Your help is much appreciated.
Thanks
Mohamed Moubarak
|
|
|
|
|
ok...the logout button doesnt regularly take you back to the page where the login control exists, my mistake..turns out that it was taking me back when i press logout because i have the following in we.config:
<allow users="mam54">
<deny users="*">
but im still facing the problem when creating more than one user...any suggestions?
|
|
|
|
|
|
firstly thanks for this provider... I can use it for add user, login site but ı want to use roles for login same page in my site, But for it ı must create roles and add users in role by use codes. How can ı do it?
thank for your helps
|
|
|
|
|
In case it helps anyone, I've just recently written an article on my blog about implementing ASP.NET Membership using the current version of the MySQL .NET Connector, v5.2.3. That article can be found here.
|
|
|
|
|
Anything for the ASP.net Profile Provider?
- aron
|
|
|
|
|
Hello,
I get a "Could not find any recognizable digits" error when going to the next CreateUserWizard step. Anyone an idea why this happens? I've been cracking my head on it, but no luck...
Regards,
Joep
--
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not find any recognizable digits.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Could not find any recognizable digits.
Source Error:
Line 1536: byte[] returnBytes = new byte[hexString.Length / 2];
Line 1537: for (int i = 0; i < returnBytes.Length; i++)
Line 1538: returnBytes[i] = Convert.ToByte(hexString.Substring(i * 2, 2), 16);
Line 1539: return returnBytes;
Line 1540: }
Source File: e:\linkedpapers.com\wwwroot\App_Code\MySQLMembershipProvider.cs Line: 1538
Stack Trace:
[FormatException: Could not find any recognizable digits.]
System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos) +0
System.Convert.ToByte(String value, Int32 fromBase) +41
Andri.Web.MySqlMembershipProvider.HexToByte(String hexString) in e:\linkedpapers.com\wwwroot\App_Code\MySQLMembershipProvider.cs:1538
Andri.Web.MySqlMembershipProvider.EncodePassword(String password) in e:\linkedpapers.com\wwwroot\App_Code\MySQLMembershipProvider.cs:1490
Andri.Web.MySqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in e:\linkedpapers.com\wwwroot\App_Code\MySQLMembershipProvider.cs:453
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
|
|
|
|
|
hi
can someone pls tell me how to add custom fields and provide the updation using andris mysql membership provider
thanks
|
|
|
|
|
Hi
I am having a problem on my login page with this provider. In the loggedIn event of my login control i am trying to get the currently logged in user with this code
Dim u As MembershipUser = Membership.GetUser
but i am getting the error object not set to instance of object
any help much appreciated
thanks
|
|
|
|
|
hi all,
i am using this cs files. work nicely. my last was about navigation error, but that because of tables. now all working fine. Here i am troubling of custom error messages. In change password, i dont want any construction for new messages. but password error or any error occured is shown as "Password incorrect or New Password invalid. New Password length minimum: 7. Non-alphanumeric characters required: 1.". I want to delete the second sentence. how i customize. any possibility
|
|
|
|
|
hi,
i used MySQLProvider and MyRole Provider as well.
All r fine. if any logn problem it Login control show the error.
But after enter the correct username and password, Login Control shows as Logged In but didnt redirect to requested page. The same login page will show. Wat is the problem. any one help me. please
|
|
|
|
|
How change the time of the Cookies Time Expires to 5 days?
All time I get the value: "#12:00:00 AM#"
Example from web.config:
<authentication mode="Forms">
<forms loginurl="login.aspx" name="MYWEBAPP.ASPXAUTH" protection="All" timeout="3000000">
Help...
|
|
|
|
|
Is it possible to use this code for a oracle database. how to create a role provider for connecting to oracle database.
|
|
|
|
|
This article is VERY good; however, MySQL also has an ASP.NET Provider available for download from their site (MySQL Connector/Net 5.2.1).
I've documented my experiences with 5.2.1 (which is alpha at this time) at http://tinyurl.com/28qd33[link]
modified on Saturday, March 8, 2008 1:24 PM
|
|
|
|
|
Using the method on your blog, I see the following error when I go to the ASP.NET Web Site Administration Tool provider tab, click “Select a Different Provider (advanced)” and test the MySQLMembershipProviderprovider:
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
Any thoughts? I can't find any documentation on how to get the MySql Connection/Net Profile Provider anywhere...yours was the closest I found.
What are you coding as the provider type? "MySql.Data, Version=5.2.1.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"?
You say "After the tables are built, you’ll want to setup your web application’s web.config (using your machine.config as a template)"...can you be a bit more specific? Would you mind posting a full blown example?
|
|
|
|
|
I tried the example in this article and got most of the way through but ended up getting connection problems.
I tried the example from your link (to the blog) and it was quicker and easier. After a couple of configuration tweaks I was up and running.
|
|
|
|
|
I've spent days looking, and I keep getting this page! I've tried this code and found the same problems others have listed.
I'm using VWD 2008 Express, MySQL 5.0, and .NET 2.0. I cannot be alone in using this set of tools, yet I can't find one fully-working example of using the built-in membership, roles, personalization, etc. tools with MySQL *anywhere*!
Has anyone got a set of files with instructions that I can use?
Whew!
|
|
|
|