Hi,
I'm testing the Devart.Data.DB2.Entity.EFCore using the trial license.
When i publish my application to another machine, I'm having this issue (I'm hosting with Kestrel):
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/api/values
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
Executing action method WebNetCore10.Controllers.ValuesController.Get (Web
NetCore10) with arguments () - ModelState is Valid
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HKTTA5KOGOEO": An unhandled exception was thrown by the ap
plication.
System.ArgumentException: License not found. Please view "Licensing" topic in do
tConnect for DB2 documentation for details or contact Devart technical support.
em Devart.Data.DB2.DB2Connection.b()
em Devart.Data.DB2.DB2Connection.Open()
em Devart.Data.DB2.Entity.x.a(DbConnection A_0, String& A_1)
em Devart.Data.DB2.Entity.x.b(DbConnection A_0)
em Devart.Data.DB2.Entity.d..ctor(IRelationalConnection A_0)
I tried to follow the guide about licensing but i couldn't get it working.
What should i do?
Thanks
Dotnet Core publish
Re: Dotnet Core publish
Your application is built on the workstation where dotConnect for DB2 is installed, isn't it? If so, open your project, navigate to Tools > DB2 > License Information, press Fix and follow the steps of the wizard. For more information, refer to http://www.devart.com/dotconnect/db2/do ... nsing.html.charlestoniolo wrote:License not found. Please view "Licensing" topic in dotConnect for DB2 documentation for details or contact Devart technical support.
If this doesn't help, please specify:
1. Is dotConnect for DB2 installed on your build server?
2. Send us a screenshot of your Tools > DB2 > License Information window.
3. Have you specified the name of your web server (it is w3wp.exe for IIS) in licenses.config?
-
- Posts: 3
- Joined: Fri 05 Aug 2016 18:24
Re: Dotnet Core publish
Hi,
I'm running my application with Kestrel, the aspnet core generate an .exe with the name of my application.
I build the application in my workstation that has the dotConnect for DB2 trial installed.
Thanks
I'm running my application with Kestrel, the aspnet core generate an .exe with the name of my application.
I build the application in my workstation that has the dotConnect for DB2 trial installed.
Thanks
Re: Dotnet Core publish
Please generate dll.license like it is described at https://www.devart.com/dotconnect/db2/d ... ml#compile and add this file to your project with Build Action=Embedded Resource. Note that in this case you should not add licenses.licx / licenses.config to the project because the *.licenses file already includes all the necessary license information.
Does this work?
Does this work?
-
- Posts: 3
- Joined: Fri 05 Aug 2016 18:24
Re: Dotnet Core publish
Great, got this working.
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true,
"embed": [ "webnetcore10.exe.licenses" ]
}
Thanks!!
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true,
"embed": [ "webnetcore10.exe.licenses" ]
}
Thanks!!