License problem in VS 2008 - Attemping to deserialize an empty stream

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
jswhal
Posts: 6
Joined: Fri 28 Dec 2007 18:11

License problem in VS 2008 - Attemping to deserialize an empty stream

Post by jswhal » Tue 29 Jan 2008 20:59

I have VS 2008 installed on a Windows X64 machine. I installed MyDirect with no problem, and I can use the tools within Visual Studio to connect and view the database. My application, which ran fine on the same machine with My Direct and Visual Studio 2005, fails when it tries to connect. I get an error saying "Attemping to deserialize an empty stream". This looks like it's being trigged by GetSavedLicenseKey. I get the same error when I click the Tools->MySql->License Information menu.

I have the licenses.licx file, and I generated the App_licenses.dll from it. I've removed and reinstalled both VS 08 and MyDirect.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Wed 30 Jan 2008 13:44

Do you have one machine?
Please specify the version and edition of MyDirect .NET.
Is Visual Studio 2005 and Visual Studio 2008 installed on the same computer?
VS2008 works fine without any problems, right?
But you have an "Attemping to deserialize an empty stream" error in VS2005?

Does this error appear in a new project, with a MySqlConnection being opened?
Send us please a small compiled binary, that establishes and opens a connection to a server.

jswhal
Posts: 6
Joined: Fri 28 Dec 2007 18:11

Post by jswhal » Wed 30 Jan 2008 15:37

I have 2 machines, both 64 bit windows.
My Direct.net is version 4.30.20.0
I had both VS 05 and Vs08 on the machine, but removed VS05, so now there is only Visual Studio 08
NO - Visual Studio 2005 worked ok, It’s VS 08 that has the problem


When I installed MyDirect, I got this error message

Cannot locate devenv.exe using registry
Make sure you have Visual Studio 9.0 installed

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Wed 30 Jan 2008 16:58

The bug with “Cannot locate devenv.exe using registry Make sure you have Visual Studio 9.0 installed” on 64-bit Windows and Visual Studio2008 is being investigated now.
We will try to fix it as soon as possible.

HistrionX
Posts: 2
Joined: Thu 13 Mar 2008 23:58

Post by HistrionX » Fri 14 Mar 2008 00:21

Hello,

I'm having the same problem, I'm on Vista 64, VS 2008, licensed MyDirect.Net Pro 4.50.25.0.

So right now I can't use the DataSet designer because I get the error :

"Error 2 Failed to generate code. Attempting to deserialize an empty stream. [path]\WebSite2\App_Code\DataSet1.xsd 1"
At compile time.

How to reproduce :

1) Create a Webservice or Website.
2) Tools --> MySQL --> DataSet Wizard and create a new DataSet.
3) I compile correctly
4) Then I go to Tools --> MySQL --> Liscense Information and click "Fix" to create the license.
5) I can't compile anymore nor return to the "License Information" dialog.
6) If I delete Bin\App_Licences.dll and licenses.licx the compilation is OK.

any idea ?

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Fri 14 Mar 2008 08:46

Thank you for the bug report.
The problem is reproduced now.
We will fix it in the next build, which is scheduled to be issued in a weeks.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Fri 14 Mar 2008 15:07

After several tests we came to a conclusion that it's not a bug of MyDirect .NET
The problem is in Windows Vista 64-bit and Visual Studio 2005.
In this environment Visual Studio generates an incorrect App_Licenses.dll

To solve this problem you need to create a new Class Library project with the name
“App_Licenses”. Then add a new text item into the project. Name it as “licenses.licx”
Copy-paste this line into the file:

Code: Select all

CoreLab.MySql.MySqlConnection, CoreLab.MySql, Version=4.50.25.0, Culture=neutral, PublicKeyToken=09af7300eec23701
Now compile the project and add the result App_Licenses.dll to your initial Web project.

HistrionX
Posts: 2
Joined: Thu 13 Mar 2008 23:58

Post by HistrionX » Fri 14 Mar 2008 16:17

Thank you it works now.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Fri 14 Mar 2008 16:47

Great!
Feel free to contact us if you encounter any problems with MyDirect .NET.
Happy Programming!

Post Reply