Bug #37539 ConfigurationErrorsException: Failed to find or load the registered .Net Framewo
Submitted: 20 Jun 2008 5:10 Modified: 20 Jul 2008 5:54
Reporter: sini s Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version: OS:Windows (XP)
Assigned to: CPU Architecture:Any
Tags: asp.net, ConfigurationErrorsException, Failed to find or load the registered .Net Framework, MySQL

[20 Jun 2008 5:10] sini s
Description:
while I am trying to connect MySQL and ASP.NET, there is an error: "Failed to find or load the registered .Net Framework".I already installed MySQL Server 5.0, MySQL Connector 5.0.3 and Visual Studio 2005. But it running perfectly in another machine.
Help is needed....please....

How to repeat:
connect MySQL with ASP.NET using         
Dim oProviderFactory As DbProviderFactory = DbProviderFactories.GetFactory(GetFactoryByProvider(_factory))

Private Shared Function GetFactoryByProvider(ByVal oGetFactory As Providers) As String
        Select Case CType(oGetFactory, Providers)
            Case Providers.Odbc
                Return "System.Data.Odbc"

            Case Providers.OleDb
                Return "System.Data.OleDb"

            Case Providers.SqlClient
                Return "System.Data.SqlClient"

            Case Providers.OracleClient
                Return "System.Data.OracleClient"

            Case Providers.MySql
                Return "MySql.Data.MySqlClient"
        End Select
        Return ""
    End Function
[20 Jun 2008 5:54] Tonci Grgin
Hi Sini and thanks for your report.

> But it running perfectly in another machine.
As you've already noticed, there's something wrong in configuration of non-functioning box and you have to figure out what. I can't do that for you.

What I would do is start from "NET 2.0 FW config"/"My Computer"/"Assembly Cache" and see if I can find a problem there. It is also possible you're trying to use VP plug-in with express version of VS, that's no-go.

c/NET 5.0.3 is rather old, you should better try with 5.1 latest version.
[20 Jul 2008 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".