MethodAccessException when connecting to Oracle

MethodAccessException when connecting to Oracle

Postby symax » Mon 15 Dec 2014 10:31

When I am trying to connect to the db(Oracle 11), I have an exception MethodAccessException:
System.MethodAccessException was unhandled by user code
Method "e4.a (Int32)", Security-Transparent, failed to gain access to mission-critical security methods "System.Threading.Thread.Abort ()".
StackTrace:
в e4.a(Int32 A_0)
в e4.a(Int32 A_0, String A_1, Int32 A_2)
в lx.a(String A_0, String A_1, String A_2, String A_3)
в fs.b(em A_0, Boolean A_1)
в fs.jh(em A_0, o9 A_1)
в nl..ctor(em A_0, nl A_1)
в el.h5(cg A_0, Object A_1, DbConnectionBase A_2)
в sz.a(or A_0, cg A_1, DbConnectionBase A_2)
в ny.a(or A_0, DbConnectionBase A_1)
в or.a(DbConnectionBase A_0)
в or.b(DbConnectionBase A_0)
в sz.c(DbConnectionBase A_0)
в am.ba(DbConnectionBase A_0)
в Devart.Common.DbConnectionBase.Open()
в Devart.Data.Oracle.OracleConnection.Open()
в Devart.Data.Oracle.Linq.Provider.OracleDataProvider.Initialize(Object connection)
в Devart.Data.Linq.DataProvider.Devart.Data.Linq.Engine.IProvider.Initialize(IDataServices dataServices, Object connection)
в Devart.Data.Linq.DataContext.a(Object A_0, MappingSource A_1, Type A_2)
в Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping)
в ITContext.ITDataContext..ctor()
в SLWP.MainPage.Button_Click_1(Object sender, RoutedEventArgs e)
в System.Windows.Controls.Primitives.ButtonBase.OnClick()
в System.Windows.Controls.Button.OnClick()
в System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
в System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
в MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

I'm making the web part for sharepoint 2010, using linqconnect for oracle. I read that the problem is solved by attribute [assembly: AllowPartiallyTrustedCallers], but that attribute is missing for silverlight. How do I solve this?
symax
 
Posts: 2
Joined: Mon 15 Dec 2014 10:24

Re: MethodAccessException when connecting to Oracle

Postby MariiaI » Wed 17 Dec 2014 13:10

Please refer to:
http://forums.devart.com/viewtopic.php?f=1&t=30664
http://msdn.microsoft.com/en-us/library/ty8d3wta(v=vs.110).aspx

If this information doesn't help, please send us a sample project so that we are able to reproduce this issue and investigate it in more details.
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: MethodAccessException when connecting to Oracle

Postby symax » Thu 18 Dec 2014 03:53

MariiaI wrote:Please refer to:
http://forums.devart.com/viewtopic.php?f=1&t=30664
http://msdn.microsoft.com/en-us/library/ty8d3wta(v=vs.110).aspx

If this information doesn't help, please send us a sample project so that we are able to reproduce this issue and investigate it in more details.

I did all steps, but the problem still actual. Send you the project.
symax
 
Posts: 2
Joined: Mon 15 Dec 2014 10:24

Re: MethodAccessException when connecting to Oracle

Postby MariiaI » Fri 19 Dec 2014 10:20

Thank you for the additional information and test project.
We will investigate the issue and notify you about the results as soon as possible.
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17


Return to LinqConnect (LINQ to SQL support)