473,657 Members | 2,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with MySQL connection

Hello,
I'm trying to get a CreateUserWizar d asp component to connect to a MySql
Server. I've installed the latest Mysql connector.

THep roblem is taht even after modifying web, config to connect to the
MySQL server, the ASP.Net application send MS-SQL requests on port 3610
t03618 instead of a MySQL request to port 3306 (but it sends it to the
right IP address).
default.aspx:
<asp:CreateUser Wizard ID="CreateUserW izard1"
MembershipProvi der="userProvid er" runat="server">
[...]
web.config:
<system.data>
<DbProviderFact ories>
<add name="MySQL Data Provider" invariant="MySq l.Data.MySqlCli ent"
description=".N et Framework Data Provider for MySQL"
type="MySql.Dat a.MySqlClient.M ySqlClientFacto ry,
MySql.Data,Vers ion=5.0.7.0, Culture=neutral ,
PublicKeyToken= C5687FC88969C44 D"/>
</DbProviderFacto ries>

</system.data>
<connectionStri ngs>
<add name="MySqlServ er"
connectionStrin g="Server=172.1 6.197.132;Datab ase=ozone;Uid=x xxxx;Password=x xxx;"
providerName="M ySql.Data.MySql Client"/>
</connectionStrin gs>

<system.web>
<membership defaultProvider ="userProvider" >
<providers>
<add name="userProvi der"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="MySqlSer ver" enablePasswordR eset="true"
passwordFormat= "Hashed" requiresUniqueE mail="true"
requiresQuestio nAndAnswer="fal se"
minRequiredNona lphanumericChar acters="0" minRequiredPass wordLength="6"
passwordStrengt hRegularExpress ion="" description="Lo oser requirements to
create users."/>
</providers>
</membership>
<roleManager enabled="true"/>
<authenticati on mode="Forms"/>
<compilation debug="true">
<assemblies>
<add assembly="MySql .Data, Version=5.0.7.0 , Culture=neutral ,
PublicKeyToken= C5687FC88969C44 D"/></assemblies></compilation>
</system.web>

I've tried to add the Driver and Port attributes to connectionStrin g,but
the compilations fails on them.

Any idea what I did wrong?

Thank you
Jul 8 '07 #1
1 3729
SqlMembershipPr ovider
http://msdn2.microsoft.com/en-us/lib...er(VS.80).aspx
Manages storage of membership information for an ASP.NET application in a
SQL Server database.
You need to see if someone has written one for MySql

http://www.codeproject.com/aspnet/my...ipprovider.asp ?

Google this:
http://www.google.com/search?hl=en&q...Provider+MySql
"Julien Sobrier" <ju****@sobrier .netwrote in message
news:46******** *************** @news.sonic.net ...
Hello,
I'm trying to get a CreateUserWizar d asp component to connect to a MySql
Server. I've installed the latest Mysql connector.

THep roblem is taht even after modifying web, config to connect to the
MySQL server, the ASP.Net application send MS-SQL requests on port 3610
t03618 instead of a MySQL request to port 3306 (but it sends it to the
right IP address).
default.aspx:
<asp:CreateUser Wizard ID="CreateUserW izard1"
MembershipProvi der="userProvid er" runat="server">
[...]
web.config:
<system.data>
<DbProviderFact ories>
<add name="MySQL Data Provider" invariant="MySq l.Data.MySqlCli ent"
description=".N et Framework Data Provider for MySQL"
type="MySql.Dat a.MySqlClient.M ySqlClientFacto ry,
MySql.Data,Vers ion=5.0.7.0, Culture=neutral ,
PublicKeyToken= C5687FC88969C44 D"/>
</DbProviderFacto ries>

</system.data>
<connectionStri ngs>
<add name="MySqlServ er"
connectionStrin g="Server=172.1 6.197.132;Datab ase=ozone;Uid=x xxxx;Password=x xxx;"
providerName="M ySql.Data.MySql Client"/>
</connectionStrin gs>

<system.web>
<membership defaultProvider ="userProvider" >
<providers>
<add name="userProvi der"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="MySqlSer ver" enablePasswordR eset="true"
passwordFormat= "Hashed" requiresUniqueE mail="true"
requiresQuestio nAndAnswer="fal se"
minRequiredNona lphanumericChar acters="0" minRequiredPass wordLength="6"
passwordStrengt hRegularExpress ion="" description="Lo oser requirements to
create users."/>
</providers>
</membership>
<roleManager enabled="true"/>
<authenticati on mode="Forms"/>
<compilation debug="true">
<assemblies>
<add assembly="MySql .Data, Version=5.0.7.0 , Culture=neutral ,
PublicKeyToken= C5687FC88969C44 D"/></assemblies></compilation>
</system.web>

I've tried to add the Driver and Port attributes to connectionStrin g,but
the compilations fails on them.

Any idea what I did wrong?

Thank you

Jul 9 '07 #2

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

Similar topics

0
2557
by: sridhar nagabhurshana | last post by:
hello I am trying to connect to mysql database using connector/J jdbc driver this is my code import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;
1
3068
by: Chinmay Shah | last post by:
hi, when i try to call the mysql_init function it is not getting initilized properly. can someone help me thanks chinmay
6
676
by: Ian Davies | last post by:
Hello I have the following code to connect to mySQL database from VB6 ******************************************** Private Sub Form_Load() Dim conn As ADODB.Connection Set conn = New ADODB.Connection conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
1
2771
by: James | last post by:
Hey everyone, I have a really obscure but impassable problem with a reasonably simple piece of php/PEAR DB/MySQL code When calling several stored procs the first call succeeds, but subsequent calls fail no matter which SP is called first it always works, and the rest fail... with: >>>
0
1627
by: Daniel Crespo | last post by:
Hi to all, I'm using adodb for accessing mysql and postgres. My problem relies on the mysql access. Sometimes, when I try to execute a query (using ExecTrans method below), I get this error: 'NoneType' object has no attribute 'cursor'
1
5821
by: erikcw | last post by:
Hi, I'm trying to insert some data from an XML file into MySQL. However, while importing one of the files, I got this error: Traceback (most recent call last): File "wa.py", line 304, in ? main() File "wa.py", line 257, in main curHandler.walkData()
10
1842
by: sssk28 | last post by:
i have installed fedora core 6 and i am getting following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
2
2614
by: dmstn | last post by:
Hey! I've got a little problem. I have to make a web site for a university essay. I curently have to create a search engine. Users can enter a hotel name in a search bar and results have to appear in another screen. All of this has to be done with java servlets. I think there's something I don't see and it's wrong. My problem is that anything I enter in the search bar appears as a result in the results page, even if there's not such a name in...
1
4338
by: spatro | last post by:
Hi, I am trying to install DBD::mysql using the CPAN and I am facing the following error: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning: Found only 0 objects in /root/.cpan/Metadata CPAN: LWP::UserAgent loaded ok
1
3050
by: manjava | last post by:
Hello, i have a class java conncet to database mysql when i execute the classe alone so execute but when i want to execute this link on web :http://localhost:8080/ProjetService/services/Magasin/getMagasins i done this error: echec pilote :java.lang.ClassNotFoundException: com.mysql.jdbc.Driver echec connection a la bdd :java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/boutiquegeographique erreur...
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.