locked
System.AccessViolationException RRS feed

  • Question

  • User-77749254 posted

    I am working on web application which was converted from v1.x to v2.0.
    (a.) Development Environment: Windows XP SP2, Visual Studio 2008 SP1, SQL Server 2005 SP2.
    (b). Deployment/Publishing Environment: Widows Server 2008 Standard Edition. .Net Framework v2.0, SQL Server 2005 SP2.

    We use one DLL called Aspose.Words.dll, which was used for exporting data from our Application to Word document. We got this dll from our client. Apart from that we used a Flash. Until recently it's working fine without any problem. Since the license for the dll expires our client sent a renewed license for Aspose.Words.dll.

    There is one particular page in which when the user click on a Save button it will save the data and send email and also launch a Flash application to show list of Players where their position could be changed by user. This works properly on the development machine and also was working fine until recently on the deployment server. But suddenly due to some unknown reason when we published a new built/version of the application we got an error as follows:

    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:

    [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
       ࠥ.ࡩ.࡭(ࠤ ࠿, ࠤ ࡬, UInt32 ࡮) +0
       ࠥ.ࡢ.ࡨ(ࠤ ز, ࠤ ࠾) +446
       ࢄ.࢔.࢖(Byte[] ࢗ) +105
       ࢄ.ࢊ.࢏(Byte[] ࢐, Byte[] ࢑, Byte[] ࢈, Byte[] ࢉ) +141
       ࣇ.࣍.ࢇ(XmlNode ࣦ, XmlNode ࣧ) +410
       ࣇ.࣍.࣢(XmlDocument _߹) +89
       ࣇ.࣍.ࣜ(Stream ղ) +101
       ࣇ.࣍.ࣜ(String ࣝ, Assembly ࣞ) +63
       Aspose.Words.License.SetLicense(String licenseName) +141
       bolton.doctemplates.asposeclass.EvaluateAsposeLicence(String sPath) +104
       bolton.doctemplates.asposeclass.exportDocForEmail(String newFileLocation, DataSet iSet, String path, String fileName, String templateFilename, String mergetype, HttpResponse resp) +747
       bolton.Scouting.View.AddTeamScoutingReport.EmailReportToScout() +2939
       bolton.Scouting.View.AddTeamScoutingReport.save_Click(Object sender, ImageClickEventArgs e) +82
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +135
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +164
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +39
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3215


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

    I have been googling around the net for solution for quite long time but could not get good enough response. Dear friends, if you have experience on this and have the solution it would be a great help to me. Need your help guys.

     

    Thanks

     

    Friday, June 27, 2008 1:13 AM

All replies

  • User-349217382 posted

    Maybe, just maybe, the new DLL was not registered on your production SERVER.

    Friday, June 27, 2008 4:20 AM
  • User-77749254 posted

    dear jobejufranz,

     That is not the case, the DLL does not required to be registered in the machine. Is there anyone else who can give/show me some solution to this problem?

    Thanks

    Tuesday, July 8, 2008 2:05 AM