Bug #68731 NullReferenceException in GenerateMySQL.Utility.ttinclude
Submitted: 20 Mar 2013 19:51 Modified: 1 Apr 2013 17:03
Reporter: Sam Kelleher Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.6.5 OS:Microsoft Windows
Assigned to: CPU Architecture:Any

[20 Mar 2013 19:51] Sam Kelleher
Description:
When trying to generate a detabase from Model, get an exception:

Running transformation: System.NullReferenceException: Object reference not set to an instance of an object

at: GeneratedTextTransformation.GetProviderManifestToken(String edmxPath) in GenerateMySQL.Utility.ttinclude : line 142

How to repeat:
Creat a blank C# project (assembly in this case),

Use NuGet to reference Entity Framework 5.0.0

Install MySql using the installer (v6.6.5 installed on machine).

Follow instructions at: http://dev.mysql.com/doc/refman/5.5/en/connector-net-tutorials-efmodel-ddl.html
[20 Mar 2013 19:52] Sam Kelleher
Screenshot of error message will all available text.

Attachment: error screen capture.PNG (image/png, text), 24.84 KiB.

[20 Mar 2013 20:03] Sam Kelleher
Changes discussed:

Changing namespace on 138 from:

http://schemas.microsoft.com/ado/2008/10/edmx

to 

http://schemas.microsoft.com/ado/2009/11/edmx

So it matches the namespace in the actual edmx XML file.

When generating again, get a generic 'Encountered the following error' dialog with no more details, but the file path to SSDLToMySQL.tt file.

Generating one more time after closing the dialog, the Schema is generated normally.
[1 Apr 2013 17:03] Gabriela Martinez Sanchez
Hi Sam,

Thanks for your feedback. The version you're using of Connector 6.6.5 is not supporting EF 5. The version that is officially supporting EF 5 is 6.7 which is in alpha stage. If you like to give it a try to the new 6.7 version you can download it here: http://dev.mysql.com/downloads/connector/net/#downloads we really would like to have your feedback on it.

You can check the features of this version here: 
https://blogs.oracle.com/MySqlOnWindows/entry/mysql_connector_net_6_7

If you have any other question you can post them at the forums too.
http://forums.mysql.com/list.php?38

Thanks in advance for your attention.
[15 Oct 2013 0:05] Giuseppe Porcelli
MySql Connector Net 6.7.4
MySql Server 5.6

Visual studio 2012 EF5

still the same problem of NullReferenceException.

Please help to solve the problem.
[16 Oct 2013 20:56] Daniel lion
ALSO STAND WITH THIS ERROR
MySql Connector Net 6.7.4
MySql Server 5.6

Visual studio 2012 EF5

still the same problem of NullReferenceException.