System.AccessViolationException:Attempted to read or write protected memory

Hi,
I am using Asp.net with oracle 10 g in my application , it is working perfectly in my machine. i have installed Oracle 10 g in my machine. but i did not installed oracle 10 g in server
but i am running an application from the server. i got this Error:
Attempted to read or write protected memory.This is often an indication that other memory is corrupt.
Please Help me.
Thanks.

Hi,
try to set the
ProxyCreationEnabled property of dbContext is set to true.

Similar Messages

  • System.AccessViolationException Attempted to read or write protected memory. This is often an indication that other memory is corrupt. when executing compiled query

    Hi,
    In our company we have a very large application that has thousands of compiled queries, and we've been getting randomly AccessViolation exceptions randomly that crashes our process.
    This error happens randomly in several locations, always with the same top stack trace (data and queries are always different). do you know what could be causing this issue? or what we can do to trace the problem?,
    I have collected memory dumps of the error to get the stack trace and next are the stack lines that always show at the top of it:
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
    System.Delegate.DynamicInvokeImpl(System.Object[])
    System.Data.Objects.ELinq.QueryParameterExpression.EvaluateParameter(System.Object[])
    System.Data.Objects.ELinq.CompiledELinqQueryState.GetExecutionPlan(System.Nullable`1<System.Data.Objects.MergeOption>)
    System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib]].GetResults(System.Nullable`1<System.Data.Objects.MergeOption>)
    System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib]].System.Collections.Generic.IEnumerable<T>.GetEnumerator()
    System.Linq.Enumerable.FirstOrDefault[[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
    System.Data.Objects.CompiledQuery.ExecuteQuery[[System.__Canon, mscorlib]](System.Data.Objects.ObjectContext, System.Object[])
    System.Data.Objects.CompiledQuery.Invoke[[System.__Canon, mscorlib],[System.Guid, mscorlib],[System.__Canon, mscorlib]](System.__Canon, System.Guid)
    The following is the windows version data:
    0:222> vertarget
    Windows 8 Version 9600 MP (64 procs) Free x64
    Product: Server, suite: TerminalServer SingleUserTS
    kernel32.dll version: 6.3.9600.16656 (winblue_gdr_pres14.140305-1700)
    Machine Name:
    Debug session time: Wed Feb 11 14:24:12.000 2015 (UTC - 6:00)
    System Uptime: 79 days 11:26:23.395
    Process Uptime: 2 days 3:21:31.000
      Kernel time: 0 days 0:46:05.000
      User time: 0 days 17:09:10.000
    .Net version: 4.0.30319.34011
    Thanks in advance,
    Israel

    Hi,
    try to set the
    ProxyCreationEnabled property of dbContext is set to true.

  • AccessViolationException: Attempted to read or write protected memory.

    Hello all.
    The application that I am working on has a Oracle DB 10g and we want to migrate the DB to 11g (11.2.0.2). The client OS is a Windows 7 x64 and the application (which is an x86 app) is a hybrid between .NET and C++(COM components). The .NET part is using ODP.NET components and the C++ part is using ODBC drivers (oraclient 11.2.0.1 - x86 version).
    The problem is that the application works without any problems with the 10g DB but when switching to 11g we get an exception. Basically, we have a try { call COM component } catch(Ex ex) {...} and the Exception ex is a AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I debugged the C++ part and this strange thing happens: the component opens the connection (using a connection string like this : "driver={Oracle in OraClient}; uid=... pwd=.. "), executes some queries, and on one query (which is the same as the last ones - just some selects), when the data is processed (by data I mean a integer ID), the exception is thrown in .NET code. I was able to enter in afxdb.cpp and it looks like the exception is thrown when GetData method is called. I looked over the ID's from previous queries and the data passed to GetData method is about the same (I mean the fieldtype, index, len, SQL type).
    As solutions I tried:
    -set "Statement Cache Purge=true" => same effect
    - install a instantclient11_2 basic and ODBC drivers (for 11.2.0.2) but I could not connect to the DB (I could find the new drivers in registry WoW64Node/ODBC Drivers, put the location in PATH in front of the other OraClient and replace the OraClient with the name in registry in conn string) => Specified driver could not be loaded due to system error 127.
    - tried to see the Marshal.GetLastWin32Error() => returns 0.
    Any ideas? :D
    Edited by: 917334 on Feb 27, 2012 12:57 PM

    The select clause that causes the problem is actually a select over a view. I replaced the select * from MYView with the actual select clause (with inner join) and the issue disappeared.
    Any ideas? :)
    Solution:
    Looks like the view was written using INNER JOIN stuff. I replaced the code from the view with a simple select like this (inner join free):
    select table1.col1, table2.col2, table3.col2, from table1, table2, table3 where table1.col1 = table2.col1 and table1.col1 = table3.col1
    Some questions still remain (even if my issue is partially solved):
    - why was it working on 10g?
    - why this particular view crashed? (there are other views that use inner join and don't cause this)
    - why was it working when using the full select (with inner join) and not working when selecting over the view?
    Edited by: 917334 on 28.02.2012 08:33

  • Attempted to read or write protected memory error

    Hello,
    I am using the .Net library and occasionally I get a System.AccessViolationException,"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Currently it is occurring when trying to initialize a TypedTPINIT object (this has happened in other places before and we just retry the request as a work-around). I set the size equal to the password length + 2 and the constructor for TypedTPINIT throws the exception after making the call to tpaloc. I have code that catches the exception and tries again up to 5 times before bubbling the exception up the chain. Once this exception occurs, no calls can be made to tux, they all throw the same exception. Once the application is closed and restarted (restarting the win32 process), everything works fine with the same data. It will work for a day or two and then fowl up again, seemingly at random. I am unable to reproduce the error at will, we just see it popup now and again, but closing the process and restarting it makes it go away for a while.
    Any idea why this exception is happening?
    I tried taking the .Net library out of the question and make the call to tpalloc myself using p/invoke and the same thing happens, but not every time.
    I appreciate any help you can provide.
    ~Jason

    Hi Jason,
    I would suggest using a memory access checking tool like bounds checker, electric fence, or the like, although I don't know what's available in a .NET environment.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Attempted to read or write protected memory error on reportdocument.load

    Reportdocument.load causes "System.AccessViolationException: Attempted to read or write protected memory" error.
    The error is not consistent. Sometimes a report will print. Sometimes a report will error.
    I am at a loss as to what to try.
    I have uninstall the app, reinstalled the app, uninstall and reinstalled .NET frameworks, Visual C++ runtime, etc.,
    reworked the code to try to capture the error. Nothing helps. Application crashes with Unhandled exception.
    Attempted to read or write to protected memory.
    Has anyone been able to resolve this issue?

    Hi Mary,
    What happens if you set your project to use 4.0 framework?
    Anything else in the Event Viewer to show an access violation?
    Have you tried updating the printer driver to one that is supported in the Framework? I find most legacy printers tend to use the old DEVMODE structure and not the Framework. Try using the printer off the Window CD rather than the Manufacturers driver.
    Is your app doing "Report Bursting"? In other words sending multiple reports one right after the other with no time between?
    Are you using any legacy UFL's? Try renaming u2lcom.dll if you are not using them. If you do you'll get an error in formula.
    Are you using try/catch in your code around each CR API? It may catch something more for you also.
    AND, can you try a C# project, some thing very simple also. I've of issues in VS VB that do not show up in other dev languages. Neither Microsoft or SAP can figure out what the cause is.
    Thank you
    Don
    Edited by: Don Williams on Feb 11, 2011 2:34 PM

  • SharePoint crashing - Attempted to read or write protected memory

    Hey,
    My corporate intranet keeps crashing and becoming unresponsive. This is resolved by running an IISReset.
    The error reported is the standard SharePoint 2010 error page with a correlation id, an using ULS Deobfuscator the actual exception, which is:
    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Microsoft.SharePoint.Portal.WebControls.LocStringIdLookupTable..cctor()
    Could this be caused by custom code on the server? We have a lot of customizations, so it could be painful to track down. If I need to, are there any tools out there I could use to trace the source of the exception?
    Any help with this would be much appreciated as this is happening a lot and disrupting the companies function.
    Cheers
    M

    Hi All,
    i've been experiencing similar issues on some customer's sharepoint 2010 WFE's. Every few days, sometimes multiple times a day, one of the app pools somehow crashed, with the effect that every attempt to use the foundation search resulted in an unexpected
    error. In the ULS logs, we had the same AccessViolationException at the LocStringIdLookupTable static constructor. After an app pool recycle, the error was gone for a few hours/days and reappeared then.
    We've had another issue that seemed to occur on another farm with similar frequency: Suddenly, all list forms were empty and some (sharepoint internal) ribbon controls like "View Item", "Edit Item", "New Item" and several others. It turned out that several
    type instantiations failed for these ribbon controls (seen in ULS logs).
    After some investigation there seemed to be no real reason why these types couldn't be found, as all sharepoint assemblies have been in place, and after an app pool recycle, everything was running fine again.
    Then i had a look at the certificate revocation list check for authenticode assemblies, and this is what seemed to be the root cause of all my problems. All our servers have no internet connection, and all authenticode signed assemblies are trying to validate
    against the CRL over internet, which leads to long loading delays for all these assemblies (See
    http://support.microsoft.com/kb/936707/en-us).
    I can't prove it, but i suppose that it somehow happens that assemblies sometimes fail to load due to the lack of the internet connection during CRL check.
    After disabling the CRL check for all sharepoint servers (as described in the hotfix), the issues with the AccessViolationException never occured again (environment running fine for more than 6 weeks without any issues).
    I disabled the CRL check for the other environment (where the ribbon issues occured) last weekend, and i hope this will fix it, too.
    As we got a huge amount of servers at different stages, i wrote a powershell script to remotely implement the changes to the machine.config. If someone needs it, i will post it here, too.
    These issues seemed to start with some security patches, but i haven't been able to figure out which one, yet.

  • Attempted to read or write protected memory

    Imports Axzkemkeeper
    Imports zkemkeeper
    Public Class Form11
    Dim q As New Axzkemkeeper.AxCZKEM
    Dim con As Boolean = False
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    'Try
    ' q.CreateControl()
    ' con = q.Connect_Net("192.168.0.202", CInt(4370))
    ' If con Then
    ' MsgBox("yes")
    ' Else
    ' MsgBox("fuck!")
    ' End If
    'Catch ex As Exception
    ' MsgBox(ex.Message)
    'End Try
    q.CreateControl()
    'q.SkinAllThreads()
    con = q.Connect_Net("192.168.0.202", CInt(4370))
    If con Then
    MsgBox("yes")
    Else
    MsgBox("oh shoot!")
    End If
    End Sub
    End Class
    i try to connect biometric device from vb using axzkemkeeper.dll but i comes with error:
    An unhandled exception of type 'System.AccessViolationException' occurred in AxInterop.zkemkeeper.dll
    Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    i really thanksful with any advice you give....
    best regards...
    Exception is:
    An unhandled exception of type 'System.AccessViolationException' occurred in AxInterop.zkemkeeper.dll  Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Please refrain from the profanity.
    The problem appears to be from inside Axzkemkeeper.AxCZKEM. Whatever that is... I am unable to help with the code you provided.
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

  • Attempt to read or write protected memory VS 2010

    I can't run orr debug my program anymore. The message attempt to read or write protected memory. Other 2012 has no problems.
    Rinaldo
    Full of ideas but don&#39;t know how. Coding for fun.
    System.AccessViolationException was unhandled
      HResult=-2147467261
      Message=Poging tot het lezen of schrijven van beveiligd geheugen. Dit duidt er vaak op dat ander geheugen is beschadigd.
      Source=mscorlib
      StackTrace:
           bij System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           bij System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           bij System.Threading.ThreadHelper.ThreadStart()
      InnerException:

    For the VS 2010 project if the .exe inside the debug folder (unless you are compiling for release then the release folder) is executed outside of VS 2010 does the same issue occur?
    Also VS 2010 I believe required some updates. Perhaps this tool
    VersionInfo (Version information about your Visual Studio 2010 installation, and how to keep it updated to the latest) could provide if there are any issues with your VS 2010.
    On the other hand what originally occured with this project? It was created on VS 2010 and never worked then a copy of it was used with VS 2012 and all the sudden it worked? Or for some reason on VS 2010 it was working then one day suddenly memory issues
    began occuring?
    If the "one day suddenly memory issues began occuring" was the issue then that would be the day to get assistance. As anything could've happened that day that possibly could've been traced rather easily where however much time has gone by now and
    whatever else has been done with that system between then and now may make that extremely difficult to impossible.
    La vida loca

  • Attempted to read or write protected memory. This is often an indication...

    I receive the following error when debugging, but not when running the release version of my .NET 2.0 program:
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
    It's quite bizarre! I dont really know what else would be needed, but I can provide DLL versions etc if someone asks. Ive posted this in Ora/MTS forum because it only seems to happen when using a transaction on the client side

    Hi I have similar issue. Like others, it seems that the error returned by oracle make ASP.NET (w3wp.exe) to have runtime error.
    In my case, it occurs about once every day, consistently. The ASP still work even after runtime error but start to take up high cpu usage after 2nd and 3rd time of error, and totally crash (no reponse to the client request) after 3 or 4 times of errors. It recovers back after the server is restarted.
    The following is from event log of my server.
    Event Type:     Error
    Event Source:     ASP.NET 2.0.50727.0
    Event Category:     None
    Event ID:     1334
    Date:          1/15/2009
    Time:          10:10:02 AM
    User:          N/A
    Computer:     AXMAN
    Description:
    An unhandled exception occurred and the process was terminated.
    Application ID: /LM/W3SVC/1/Root/rais
    Process ID: 5984
    Exception: System.AccessViolationException
    Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    StackTrace: at System.Data.Common.UnsafeNativeMethods.OCIServerAttach(OciHandle srvhp, OciHandle errhp, Byte[] dblink, Int32 dblink_len, MODE mode)
    at System.Data.OracleClient.TracedNativeMethods.OCIServerAttach(OciHandle srvhp, OciHandle errhp, String dblink, Int32 dblink_len, MODE mode)
    at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)
    at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)
    at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.PoolCreateRequest(Object state)
    at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    -------------------------------------------------------------------------------

  • Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Hi there, I'm having a weird issue when I try to connect to my DB server from the machine in which is located.
    I am using SSMS to connect to the DB. When i use the name of the sql server, I can connect without issues, but when I replace the name with an IP address and a port, i always get this error:
    ===================================
    Cannot connect to 192.168.1.215,1433.
    ===================================
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (System.Data)
    Program Location:
       at SNINativeMethodWrapper.SNIClose(IntPtr pConn)
       at System.Data.SqlClient.SNIHandle.ReleaseHandle()
       at System.Runtime.InteropServices.SafeHandle.InternalDispose()
       at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
       at System.Runtime.InteropServices.SafeHandle.Dispose()
       at System.Data.SqlClient.TdsParserStateObject.Dispose()
       at System.Data.SqlClient.TdsParser.Disconnect()
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginFailure()
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    But this only happens when I try to connect from the PC in which the sql server is, when I try to connect by TCP/IP from another machine on the same network, I can login without problems. 
    Any help will be appreciated. 

    Hello,
    Lot of similar issues related to your post please check if any one is of any help
    Attempt to read write protected memory
    Similar issue answered here
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Attempted to read or write protected memory followed by Load Report Failed

    After running OK for some time ASP.NET web application (VS 2008 .NET 3.5 with Crystal Reports included) running on MS WIN 2003 R2, SP2) will throw error when trying to create PDF crystal report. Error reads as follow:
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. -    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Close()     at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.InternalClose(Boolean bSetupForNextReport, Boolean bAutoClose)     at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(Boolean bDisposeManaged)     at System.ComponentModel.Component.Dispose()     at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean bSetupForNextReport)     at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
    After that every consecutive attempt to create another PDF crystal report will fail with fallowing error:
    Load report failed. -    at ... at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Once Application pool is recycled, error goes away but comes back after while. It seems that recently the uptime is getting shorter.
    Anyone had similar experience, posible solution?
    Thanks in advance,
    Miro

    Hi Miro,
    Clean Temp folder of that machine.
    For testing export report to PDF format from designer do you face any issue?
    Try to export the report with following line of code :
            CrystalDecisions.CrystalReports.Engine.ReportDocument boReportDocument;
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument reportClientDoc;
            boReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            boReportDocument.Load(Server.MapPath("FinalActivityRpt.rpt"));
            reportClientDoc = boReportDocument.ReportClientDocument;
            boReportDocument.SetDatabaseLogon("sa", "sa");
            CrystalReportViewer1.ReportSource = boReportDocument;
            ExportOptions exportOptions = new ExportOptions();
            exportOptions.ExportFormatType = CrReportExportFormatEnum.crReportExportFormatPDF;
            PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
            pdfOptions.StartPageNumber = 1;
            pdfOptions.EndPageNumber = 3;
            exportOptions.FormatOptions = pdfOptions;
            Response.AddHeader("Content-Disposition", "filename=" + "untiteled" + ".pdf");
            Response.ContentType = "application/pdf";
            Response.BinaryWrite((Byte[])reportClientDoc.ReportSource.Export(exportOptions, new         RequestContext()));
            Response.End();
    Regards,
    Shweta

  • Attempted to read or write protected memory while adding an existingMessage

    Hi,
    does anyone know what the reason for this exception might be?
    24.11.2009 16:23:04 Error Attempted to read or write protected
    memory. This is often an indication that other memory is corrupt.
    at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
    BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
    msgData)
    at GroupwareTypeLibrary.DIGWMessages.AddExistingMessa ge(String
    SenderDisplayName, String SenderEmailAddress, String
    SenderEmailAddressType, DateTime CreationDate, MessageBoxTypeConstants
    MessageBoxType, MessageStatusConstants MessageStatus,
    MessagePriorityConstants MessagePriority, MessageSecurityConstants
    MessageSecurity, Object DraftMsg, Object LastModificationDate)
    at
    com.vivex.archiveconnector.groupwise.GroupWiseInte rfaces.OAPIGroupWise.AddMail(GWMail
    message, Mail5 draftmsg)
    at
    com.vivex.archiveconnector.groupwise.GroupWiseInte rfaces.OAPIGroupWise.AddMessage(GWMessage
    message)
    at
    com.vivex.archiveconnector.groupwise.Agent.Archive Message(GWMessage msg,
    User user, Group group, ArchiveSettings archSettings,
    GroupWiseArchiveFilter arcFilter)
    Best regards, Martin Schmidt.

    I don't think this is a GroupWise error.
    We would need steps to duplicate the problem.
    >>> On Friday, November 27, 2009 at 7:13 AM, Martin
    Schmidt<[email protected]> wrote:
    > Hi,
    >
    > does anyone know what the reason for this exception might be?
    >
    > 24.11.2009 16:23:04 Error Attempted to read or write protected
    > memory. This is often an indication that other memory is corrupt.
    > at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
    > BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
    > msgData)
    > at GroupwareTypeLibrary.DIGWMessages.AddExistingMessa ge(String
    > SenderDisplayName, String SenderEmailAddress, String
    > SenderEmailAddressType, DateTime CreationDate, MessageBoxTypeConstants
    > MessageBoxType, MessageStatusConstants MessageStatus,
    > MessagePriorityConstants MessagePriority, MessageSecurityConstants
    > MessageSecurity, Object DraftMsg, Object LastModificationDate)
    > at
    >
    com.vivex.archiveconnector.groupwise.GroupWiseInte rfaces.OAPIGroupWise.AddMa
    > il(GWMail
    > message, Mail5 draftmsg)
    > at
    >
    com.vivex.archiveconnector.groupwise.GroupWiseInte rfaces.OAPIGroupWise.AddMe
    > ssage(GWMessage
    > message)
    > at
    > com.vivex.archiveconnector.groupwise.Agent.Archive Message(GWMessage msg,
    > User user, Group group, ArchiveSettings archSettings,
    > GroupWiseArchiveFilter arcFilter)
    >
    > Best regards, Martin Schmidt.

  • Error: Attempted to read or write protected memory. Memory is corrupt

    2005A SP1 PL4
    I have added a user field with B1 in Items with success.
    Therefore I have started the addon and I have the following error at  SAPbouiCOM.SboGuiApiClass.Connect(String ConnectionStr):
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
    I have restart B1, and I have restart the PC, but the problem persist.
    Before I added user field, the addon worked
    Now if I open items system form, the user field not exists , not even I press CtrlShiftU
    It seems that the user fields are not record correctly
    Now I re-add a new second user field in items. Now there are all user fields in system form Items, but i have the same error with my addon.
    This is the second company that occorr this problem
    Is this a 2005A SP1 PL4 problem? Must I convert the company to 2005A SP1 PL11? Or are there other solution? 
    Help me
    Thank you

    I would strongly recommend to go up to PL11 - and then re-check the issue.
    If it still doesn't work:
    The minimum information to provide here would be the definition of the UDF! Since UFDs work in general there must be some issue with your specific UDF (or some combination of settings).
    Check table CUFD + the actual definition of the UDF in the SQL table as well.
    ...or just involve SAP Support...
    HTH,
    Frank

  • MAS and  Attempted to read or write protected memory.

    I'm experiencing an unusual system error using Mobile Application Studio enviroment (CRM Release 2007 / 5.0 SP 09).  As soon as I run the MAS, open a Change List and say edit a tile, tileset etc... the application crashes and the system displays a dialog box with the error message:
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
    How can i resolve this issue in our mobile application studio?
    Thanks in advance
    Eddie

    Hello Eddie
    The mentioned error is generic and could be because of several reasons.
    If you try to edit any BOL Object designers or Code windows from MAS Startup Page/Find Results window throws an error u201CAttempted to Read or write protected memory. This is often an indication that other memory is corrupt", So it is always recommended to expand the Business Library node manually after opening the MAS and continue with other Modeling/Development tasks.
    But if you are not modifying or editing any of the BOL objects, then it must be becuase of some other reason. In such case, can you please provide more detailed steps for the crash to occur.
    Best Regards
    Shankar

  • Attempted to read or write protected memory problems

    Hi there, we are having some issues with ODP.net. every few days after our system has been used quite a lot we get the "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." errors.
    I can reproduce this just by launching some threads that all make some DB calls, and after a while (took over an hour in the case) we encounter the error. It it not just one DB call causing it, looking at the logs it does appear to only be calls to 'Get' data, but just about all of them have failed at some point.
    Yes we have upgraded to the latest version 11.1.0.6.20 and it still happens. Here are some stack traces, Oracle.DataAccess.Client.OpsSql.AllocSqlValCtx seems to be the most common in the stack traces though, others do occur.
    at Oracle.DataAccess.Client.OpsSql.AllocSqlValCtx(OpoSqlValCtx*& pOpoSqlValCtx) at Oracle.DataAccess.Client.OracleCommand.BuildCommandText() at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader() at BUPA.HUGO.Common.DataAccessLayer.Database.StoredProcedures.ProspectSP.GetPersonProspectStoredProcedure.GetFullPersonDetailsDataReader(Int64 personId) in c:\Projects\CC.NETbuild_Hugo_Prod\Server\RF_Hugo_Services\Common\DataAccessLayer\Database\StoredProcedures\ProspectSP\GetPersonProspectStoredProcedure.cs:line 43
    Sometime the top of the stack is
    at Oracle.DataAccess.Client.OpsSql.CopySqlValCtx(OpoSqlValCtx* pOpoSqlValCtxSrc, OpoSqlValCtx*& pOpoSqlValCtxDst) at Oracle.DataAccess.Client.OracleParameter.PostBind_RefCursor(OracleConnection conn, OpoSqlValCtx* pOpoSqlValCtx) at Oracle.DataAccess.Client.OracleParameter.PostBind(OracleConnection conn, OpoSqlValCtx* pOpoSqlValCtx, Int32 arraySize) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior) at
    or
    at Oracle.DataAccess.Client.OpsDac.Read(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsSqlCtx, IntPtr& opsDacCtx, OpoSqlValCtx* pOpoSqlValCtx, OpoMetValCtx* pOpoMetValCtx, OpoDacValCtx* pOpoDacValCtx) at Oracle.DataAccess.Client.OracleDataReader.Read()
    Does anyone have any ideas? I saw some older post just asking people to try the new version (which we have). Any help on this matter would be great. We are having trouble figuring out if it is something we are not doing correctly or if there is a bug in ODP.NET.
    Thank you,
    Luke

    Hello,
    I've got exactly the same problem. We're using ODP.NET 10g R2 10.2.0.3.02 with RAC database. I found that this error only occurs after a Failover event.
    My application is .NET 3.0 WPF app.
    I'm able to reproduce this error at any time.
    Please have a look at some source code:
    //opening OracleConnection:
    theConn.Open();
    theConn.Failover += new OracleFailoverEventHandler(theConn_Failover);
    // handling the Failover event as stated in the docs:
    static FailoverReturnCode theConn_Failover(object sender, OracleFailoverEventArgs eventArgs)
    Logging.LogInfo("DB-FailoverEvent: " + eventArgs.FailoverEvent.ToString() + " - Type: " + eventArgs.FailoverType.ToString());
    switch (eventArgs.FailoverEvent)
    case FailoverEvent.Begin:
    Logging.LogInfo("FailoverEvent.Begin - Failover is starting");
    Logging.LogInfo("FailoverType = " + eventArgs.FailoverType.ToString());
    break; // TODO: might not be correct. Was : Exit Select
    case FailoverEvent.End:
    Logging.LogInfo("FailoverEvent.End - Failover was successful");
    break; // TODO: might not be correct. Was : Exit Select
    case FailoverEvent.Reauth:
    Logging.LogInfo("FailoverEvent.Reauth - User reauthenticated");
    break; // TODO: might not be correct. Was : Exit Select
    case FailoverEvent.Error:
    Logging.LogInfo("FailoverEvent.Error - Failover was unsuccessful");
    // Sleep for 3 sec and Retry
    Thread.Sleep(3000);
    return FailoverReturnCode.Retry;
    case FailoverEvent.Abort:
    Logging.LogInfo("FailoverEvent.Abort - Failover was unsuccessful");
    break; // TODO: might not be correct. Was : Exit Select
    default:
    Logging.LogInfo("Invalid FailoverEvent : " + eventArgs.FailoverEvent.ToString());
    break; // TODO: might not be correct. Was : Exit Select
    // comment following lines will not raise an error
    if (connect2DB())
    return FailoverReturnCode.Success;
    else
    return FailoverReturnCode.Retry;
    And here's the source for checking DB-connection:
    private static bool connect2DB()
    if (null == myConn)
    myConn = openOracleConnection();
    if (null == myConn)
    Thread.Sleep(5000);
    return false;
    try
    if ((myConn.State == ConnectionState.Broken) || (myConn.State == ConnectionState.Closed))
    myConn = openOracleConnection();
    String sql = "SELECT 1 FROM dual";
    using (OracleCommand cmd = new OracleCommand())
    cmd.Connection = myConn;
    cmd.CommandText = sql;
    cmd.CommandTimeout = 2;
    using (OracleDataReader dr = cmd.ExecuteReader())
    dr.Read();
    catch (Exception ex)
    Logging.LogError(ex);
    closeOracleConnection(myConn);
    myConn = openOracleConnection();
    setDBConnState();
    if (null != myConn)
    if ((myConn.State == ConnectionState.Broken) || (myConn.State == ConnectionState.Closed))
    return false;
    else
    return true;
    else
    return false;
    When I don't call "connect2DB()" in the failover event handler then everything is fine - otherwise oops the error occurs after approx. 14 hours after application runtime.
    Regards
    Sven

Maybe you are looking for

  • Equim A210 - Keyboard not working right

    Had major problems with laptop, so did a full rebbot with repair disc, but now laptop keyboard isn't working right. If i type the letter O i get LO, and if i type the letter L i get OL, the letter E acts just as the enter button does, and if i press

  • "Unexpected Error" that meant I could not convert a PDF to XLSX

    I have an "Unexpected Error" that means I cannot convert a PDF to XLSX. Only Day 2 of my subscription. Perhaps I'm doing something wrong. Any clues? I have converted files successfully. Maybe this one is too big at 2.6MB?

  • How do I shorten my .mac website address?

    Hi all, Right now my .mac website address is: http://web.me.com/ocicatgraphics/OcicatGraphics/OcicatGraphics.html It's too long... Is there anyway to shorten it? You know so it might be easier to remember and fit on a business card? Thanks in advance

  • Convert an array of strings into a single string

    Hi I am having trouble trying to figure out how to convert an array of strings into a single string. I am taking serial data via serial read in a loop to improve data transfer.  This means I am taking the data in chunks and these chunks are being dum

  • Will database Auto-Start?

    I have two databases running in a windows server, due to some other issue server got rebooted. When i try to start the DB's I found one of my database is already up and running! and the other DB was down i had started it manually. Is it possible to h