dotConnect on Mono FAQ?

dotConnect on Mono FAQ?

Postby simonredfern » Wed 28 Apr 2010 11:15

Hi,

We are trying to get our application running on Mono 2.6.3

But we are getting various errors (works fine on windows)

Is there an FAQ for installing devart dotConnect on mono?

cheers,

Simon.
simonredfern
 
Posts: 8
Joined: Wed 17 Mar 2010 14:12

Postby Shalex » Thu 29 Apr 2010 07:56

Please refer to this thread: http://www.devart.com/forums/viewtopic.php?t=15044 . If the problem persists, please the exact text of the errors you are getting, and the steps we should follow to reproduce the problem.
Shalex
Devart Team
 
Posts: 7344
Joined: Thu 14 Aug 2008 12:44

License for web application using dotconnect under Mono

Postby simonredfern » Thu 29 Apr 2010 09:34

Unfortunately this doesn't help because we're trying to apply the license to a web application using ASP.NET running under Mono 2.6.3 and therefore we can't specify a target exe file which seems to be a mandatory parameter for the license compiler. How do we proceed?

By the way the error is:

Server Error in '/' Application
No access to the given key

Description: HTTP 500. Error processing request.

Stack Trace:

System.Security.SecurityException: No access to the given key
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x0001e] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:111
at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x000c7] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:262
at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:592
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x0001e] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:248
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name) [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:232
at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string)
at Devart.Common.m.a (System.String& A_0, System.String& A_1) [0x00000] in :0
at Devart.Common.b.a (System.ComponentModel.LicenseContext A_0, System.Type A_1, System.String& A_2, System.Boolean& A_3, System.String& A_4, System.String& A_5) [0x00000] in :0
at Devart.Common.b.a (System.ComponentModel.LicenseContext A_0, System.Type A_1, Boolean A_2) [0x00000] in :0
at Devart.Common.b.a (System.ComponentModel.LicenseContext A_0, System.Type A_1, System.Object A_2, Boolean A_3) [0x00000] in :0
at Devart.Data.Oracle.OracleConnection.Open () [0x00000] in :0
at Devart.Data.Linq.Provider.ConnectionManager.GetOpenConnection () [0x00000] in :0
simonredfern
 
Posts: 8
Joined: Wed 17 Mar 2010 14:12

Postby Shalex » Thu 29 Apr 2010 11:31

1. If your project type is ASP.NET Web Application, please set the name of target *.dll for your web application in the /target parameter (e.g.: /target:MyApplication.dll):
http://www.devart.com/dotconnect/oracle/docs/Licensing.html#compile.

2. Are you using the direct mode (the Direct=true; parameter of your connection string)?
Shalex
Devart Team
 
Posts: 7344
Joined: Thu 14 Aug 2008 12:44

License for dotConnect for ASP.NET "Web Site" on Mono

Postby simonredfern » Fri 30 Apr 2010 08:04

Unfortunately our application is a "Web Site" rather than a "Web Application". How should we proceed?
simonredfern
 
Posts: 8
Joined: Wed 17 Mar 2010 14:12

LINQ on Mono

Postby simonredfern » Fri 30 Apr 2010 13:52

We have converted a part of our app for testing purposes to a "Web App" and used the method for the license you suggested. Now however we get the following error:
Code: Select all
No constructor found for Devart.Data.Linq.Mapping.au+Accessor`3[[OurAppName.Agent, TestingDevartWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[OurAppName.Agent, TestingDevartWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor(System.Reflection.MonoProperty, System.Func`2[OurAppName.Agent,System.Decimal], System.Action`2[OurAppName.Agent,System.Decimal], (unknown), Devart.Data.Linq.Mapping.q+Accessor`2[OurAppName.Agent,System.Decimal])

Description: HTTP 500. Error processing request.

Stack Trace:

System.MissingMethodException: No constructor found for Devart.Data.Linq.Mapping.au+Accessor`3[[OurAppName.Agent, TestingDevartWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[OurAppName.Agent, TestingDevartWebApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor(System.Reflection.MonoProperty, System.Func`2[OurAppName.Agent,System.Decimal], System.Action`2[OurAppName.Agent,System.Decimal], (unknown), Devart.Data.Linq.Mapping.q+Accessor`2[OurAppName.Agent,System.Decimal])
  at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00134] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/System/Activator.cs:284
  at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture) [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/corlib/System/Activator.cs:239
  at Devart.Data.Linq.Mapping.au.a (System.Type A_0, System.Reflection.PropertyInfo A_1, System.Data.Linq.Mapping.MetaAccessor A_2) [0x00000] in :0
  at Devart.Data.Linq.Mapping.MetaDataMemberBase.a (System.Type A_0, System.Reflection.MemberInfo A_1, System.Data.Linq.Mapping.MetaAccessor A_2) [0x00000] in :0
  at Devart.Data.Linq.Mapping.MetaDataMemberBase.a () [0x00000] in :0
  at Devart.Data.Linq.Mapping.MetaDataMemberBase.get_MemberAccessor () [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.ai.a (Devart.Data.Linq.Provider.Query.SqlExpression A_0, System.Data.Linq.Mapping.MetaType A_1, System.Collections.Generic.List`1& A_2, System.Collections.Generic.List`1& A_3, Devart.Data.Linq.Provider.Query.SqlExpression& A_4, IList`1 A_5) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.ai.b (Devart.Data.Linq.Provider.Query.SqlExpression A_0, System.Data.Linq.Mapping.MetaType A_1, System.Collections.Generic.List`1& A_2, System.Collections.Generic.List`1& A_3, Devart.Data.Linq.Provider.Query.SqlExpression& A_4, IList`1 A_5) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.ai.a (Devart.Data.Linq.Provider.Query.ag A_0, IList`1 A_1) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.ai.a (System.Data.Linq.Mapping.MetaType A_0, ITable A_1, IList`1 A_2) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.ai.a (System.Data.Linq.Mapping.MetaType A_0, ITable A_1) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.a (ITable A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.a (System.Linq.Expressions.ConstantExpression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.j (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.a (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.a (System.Linq.Expressions.Expression A_0, System.Linq.Expressions.LambdaExpression A_1) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.b (System.Linq.Expressions.MethodCallExpression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.j (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.a (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.b (System.Linq.Expressions.Expression A_0, System.Linq.Expressions.LambdaExpression A_1, bp A_2) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.b (System.Linq.Expressions.MethodCallExpression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.j (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.Query.x.i (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.DataProvider.a (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.Provider.DataProvider.i (System.Linq.Expressions.Expression A_0) [0x00000] in :0
  at Devart.Data.Linq.DataQuery`1[OurAppName.Agent].f () [0x00000] in :0
  at System.Web.UI.WebControls.Repeater.CreateControlHierarchy (Boolean useDataSource) [0x0005d] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI.WebControls/Repeater.cs:144
  at System.Web.UI.WebControls.Repeater.OnDataBinding (System.EventArgs e) [0x00022] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI.WebControls/Repeater.cs:92
  at System.Web.UI.WebControls.Repeater.DataBind () [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI.WebControls/Repeater.cs:164
  at test_linq_link_test.DrawAgentsTable () [0x00000] in :0
  at test_linq_link_test.Page_Load (System.Object sender, System.EventArgs e) [0x00000] in :0
  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00029] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Control.cs:979
  at System.Web.UI.Control.LoadRecursive () [0x00020] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Control.cs:1460
  at System.Web.UI.Page.ProcessLoad () [0x0004a] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Page.cs:1612
  at System.Web.UI.Page.ProcessPostData () [0x0004d] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Page.cs:1590
  at System.Web.UI.Page.InternalProcessRequest () [0x001bf] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Page.cs:1548
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005b] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Web/System.Web.UI/Page.cs:1367
simonredfern
 
Posts: 8
Joined: Wed 17 Mar 2010 14:12

Postby AndreyR » Tue 18 May 2010 09:26

This error is fixed. Look forward to the nearest build.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for Oracle