Hi There:
I'm referencing this thread:
http://www.crlab.com/forums/viewtopic.php?t=11438
Because I'm getting the same error (Deserialize Empty Stream). I am running on a 64bit OS.
I created a new Class Project as mentioned, but in the licenses.licx I entered:
CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql, Version=3.50.24.0, Culture=neutral
I left out the public key token value because I don't know it.
When I compile the project I get:
Error 1 Unable to resolve type 'CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql, Culture=neutral' D:\Documents\Visual Studio 2008\Projects\App_Licenses\App_Licenses\licenses.licx 1 App_Licenses
Any ideas? Do I need to add the pgsql dll file to this project as well?
thanks for any advice you can provide.
App_Licenses under 64Bit OS
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
In case where it is impossible to put the license information straight to executable file, PostgreSQLDirect .NET allows you to create class libraries that can be used with certain executable files. To do this perform the following steps:
1.Create and setup file named licenses.licx.
2.Open the file with a text editor and place this line inside:
CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql
3.Save the file and add it to your project.
4.Make sure it is embedded as a resource.
5.Create a text file named licenses.config and place it next to licenses.licx.
6.In this file enumerate names of executable files that will work with the library, every file name on separate line, for example:
MyApplication.exe
MyAnotherApp.exe
ExtraTool.exe
You do not have to add the file licenses.config to the project.
Note, you can get the public token of the library if you go to %windows%assembly folder (or Run -> assembly).
1.Create and setup file named licenses.licx.
2.Open the file with a text editor and place this line inside:
CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql
3.Save the file and add it to your project.
4.Make sure it is embedded as a resource.
5.Create a text file named licenses.config and place it next to licenses.licx.
6.In this file enumerate names of executable files that will work with the library, every file name on separate line, for example:
MyApplication.exe
MyAnotherApp.exe
ExtraTool.exe
You do not have to add the file licenses.config to the project.
Note, you can get the public token of the library if you go to %windows%assembly folder (or Run -> assembly).
Alexy,
I'm confused - I am trying to compile an app_licenses.dll file for use in my web application, I don't have any .EXE's that will be used.
If you view the thread that I linked, it's the exact same problem that other user was having, except with the PGSQL Driver.
Did you read the other thread over to see what I mean?
You suggested the following:-
----------------------------
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:
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.
-------------------------
so I did that, but am getting the error that I noted in my first post..
I'm confused - I am trying to compile an app_licenses.dll file for use in my web application, I don't have any .EXE's that will be used.
If you view the thread that I linked, it's the exact same problem that other user was having, except with the PGSQL Driver.
Did you read the other thread over to see what I mean?
You suggested the following:-
----------------------------
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:
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.
-------------------------
so I did that, but am getting the error that I noted in my first post..
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Please clear licenses.licx file and copy-paste the next line:
CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql, Version=3.50.24.0, Culture=neutral, PublicKeyToken=09af7300eec23701
Then follow the steps described it this post:
http://www.crlab.com/forums/viewtopic.php?t=11438
Did this solve the problem?
CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql, Version=3.50.24.0, Culture=neutral, PublicKeyToken=09af7300eec23701
Then follow the steps described it this post:
http://www.crlab.com/forums/viewtopic.php?t=11438
Did this solve the problem?
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24