License problem in VS 2008 - Attemping to deserialize an empty stream
License problem in VS 2008 - Attemping to deserialize an empty stream
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.
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.
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
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.
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.
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
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
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
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 ?
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 ?
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
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:
Now compile the project and add the result App_Licenses.dll to your initial Web project.
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
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24