Hi,
I've been struggling with this for some time today. I am trying to get a simple code sample working - along the lines of this blog:
http://www.aspnetsource.com/blog/post-using-mysql-in-asp-n.aspx
But first some background.
- machine is Windows Server 2008 32 bit with .net3.5sp1
- no Visual Studio used or present
- I installed MySql and ran the sql scripts to support the asp.net providers
- I downloaded the non-install 6.3.6 .net connector
- I placed MySql.Data.dll and MySql.Web.dll into my web site's bin folder
- I added a reference to MySql.Data in /system.web/compilation/assemblies
- I added an entry to /system.data/DbProviderFactories (not sure if this is needed for my usage scenario)
- I setup and am able to use the MySql asp.net providers (membership, roles, profile) in my test site
- I created an Amazon RDS instance and installed a dump of my local membership db
- I am able to connect and run queries against RDS the membership db using the mysql commandline tool
- I changed my connectionstring to go against the RDS DNS, but now my site errors with
"Parser Error Message: Unable to initialize provider. Missing or incorrect schema."
So I figured I should test with a simple asp.net page to query RDS.
- I edited web.config to add the mysql connector namespaces
When I open my test page, I get a compiler error complaining that
"The type name 'Data' does not exist in the type 'MySql'"
pointing at line 272 in my web.config:
Line 270: <namespaces>
Line 271: <add namespace="MySql.Data"/>
Line 272: <add namespace="MySql.Data.MySqlClient"/>
Line 273: </namespaces>
This was using the downloaded non-install version of 6.3.6.
I found the above article after getting the error and decided to try recompiling the assemblies. But I am still getting the same error.
So I have two issues
1. cannot reference the MySql.Data namespace - I assume this is a simple mistake on my part
2. cannot use Amazon RDS with membership provider - I assume this has to do with how the provider establishes connections to remote machines
Note that I also tried a Windows 2003 Server machine and am getting the same compile error. Note also that I get the compile error when my connection string point at my local mysql db.
What is the best approach to diagnose these issues?
Thanks,
Chris
I've been struggling with this for some time today. I am trying to get a simple code sample working - along the lines of this blog:
http://www.aspnetsource.com/blog/post-using-mysql-in-asp-n.aspx
But first some background.
- machine is Windows Server 2008 32 bit with .net3.5sp1
- no Visual Studio used or present
- I installed MySql and ran the sql scripts to support the asp.net providers
- I downloaded the non-install 6.3.6 .net connector
- I placed MySql.Data.dll and MySql.Web.dll into my web site's bin folder
- I added a reference to MySql.Data in /system.web/compilation/assemblies
- I added an entry to /system.data/DbProviderFactories (not sure if this is needed for my usage scenario)
- I setup and am able to use the MySql asp.net providers (membership, roles, profile) in my test site
- I created an Amazon RDS instance and installed a dump of my local membership db
- I am able to connect and run queries against RDS the membership db using the mysql commandline tool
- I changed my connectionstring to go against the RDS DNS, but now my site errors with
"Parser Error Message: Unable to initialize provider. Missing or incorrect schema."
So I figured I should test with a simple asp.net page to query RDS.
- I edited web.config to add the mysql connector namespaces
When I open my test page, I get a compiler error complaining that
"The type name 'Data' does not exist in the type 'MySql'"
pointing at line 272 in my web.config:
Line 270: <namespaces>
Line 271: <add namespace="MySql.Data"/>
Line 272: <add namespace="MySql.Data.MySqlClient"/>
Line 273: </namespaces>
This was using the downloaded non-install version of 6.3.6.
I found the above article after getting the error and decided to try recompiling the assemblies. But I am still getting the same error.
So I have two issues
1. cannot reference the MySql.Data namespace - I assume this is a simple mistake on my part
2. cannot use Amazon RDS with membership provider - I assume this has to do with how the provider establishes connections to remote machines
Note that I also tried a Windows 2003 Server machine and am getting the same compile error. Note also that I get the compile error when my connection string point at my local mysql db.
What is the best approach to diagnose these issues?
Thanks,
Chris