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?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)
MethodAccessException when connecting to Oracle
MethodAccessException when connecting to Oracle
When I am trying to connect to the db(Oracle 11), I have an exception MethodAccessException:
Re: MethodAccessException when connecting to Oracle
Please refer to:
http://forums.devart.com/viewtopic.php?f=1&t=30664
http://msdn.microsoft.com/en-us/library ... .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.
http://forums.devart.com/viewtopic.php?f=1&t=30664
http://msdn.microsoft.com/en-us/library ... .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.
Re: MethodAccessException when connecting to Oracle
I did all steps, but the problem still actual. Send you the project.MariiaI wrote:Please refer to:
http://forums.devart.com/viewtopic.php?f=1&t=30664
http://msdn.microsoft.com/en-us/library ... .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.
Re: MethodAccessException when connecting to Oracle
Thank you for the additional information and test project.
We will investigate the issue and notify you about the results as soon as possible.
We will investigate the issue and notify you about the results as soon as possible.