Sign In  Sign Up Live-Chat

Renewal of Aspose.Words and Purchase of Aspose.Pdf

Last post 09-08-2008, 10:28 AM by alexey.noskov. 5 replies.
Sort Posts: Previous Next
  •  09-05-2008, 11:31 AM 142627

    Renewal of Aspose.Words and Purchase of Aspose.Pdf

    Hi Sheila,

    This is the error I get.

    I would send it to the support except for the fact that I have never received a reply (well, 1once I did but I sent in about 6 requests for help)

    Maybe you have more luck than I.



    I did reload the new references for aspose.words.



    Thanks

    Joe





    System.IO.FileLoadException was unhandled by user code

    Message="Could not load file or assembly 'Aspose.Words, Version=3.7.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

    Source="App_Web_7sgxxhur"

    FileName="Aspose.Words, Version=3.7.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56"

    FusionLog="=== Pre-bind state information ===\r\nLOG: User = OASISLEGAL\\jwinkiel\r\nLOG: DisplayName = Aspose.Words, Version=3.7.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Source/Corporate/\r\nLOG: Initial PrivatePath = C:\\Source\\Corporate\\bin\r\nCalling assembly : App_Web_7sgxxhur, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\Source\\Corporate\\web.config\r\nLOG: Using machine configuration file from c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: Aspose.Words, Version=3.7.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56\r\nLOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/corporate/7f8fa19e/3e6d0137/Aspose.Words.DLL.\r\nLOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/corporate/7f8fa19e/3e6d0137/Aspose.Words/Aspose.Words.DLL.\r\nLOG: Attempting download of new URL file:///C:/Source/Corporate/bin/Aspose.Words.DLL.\r\nWRN: Comparing the assembly name resulted in the mismatch: Major Version\r\nERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.\r\n"

    StackTrace:

    at corpServicingMailMerge.Corp_mailmerge(Int32 iDocId, Int32 PlaintiffPersonID, Int32 AttorneyID, String strPath, String strDocName, Int32 caseid, String Username, String strTransId, String strFolderPath, Int32 file_data_id)

    at corpServicingMailMerge.Run_mmdocs() in c:\Source\Corporate\corpServicingMailMerge.aspx.cs:line 114

    at corpServicingMailMerge.Page_Load(Object sender, EventArgs e) in c:\Source\Corporate\corpServicingMailMerge.aspx.cs:line 35

    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

    at System.Web.UI.Control.OnLoad(EventArgs e)

    at System.Web.UI.Control.LoadRecursive()

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


    This message was posted using Email2Forum by sheliah.
     
  •  09-05-2008, 1:39 PM 142656 in reply to 142627

    Re: Renewal of Aspose.Words and Purchase of Aspose.Pdf

    Hi

     

    Thanks for your inquiry. You are talking about renewal but referencing to the old version of Aspose.Words. Most probably you didn’t remove reference to the old version of Aspose.Words from your project. Try removing reference to Aspose.Words from your project and add it again.

    Also I think the following link could be useful for you.

    http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  09-05-2008, 5:19 PM 142682 in reply to 142627

    Re: Renewal of Aspose.Words and Purchase of Aspose.Pdf

    Because I inherited this software and am learning about the value of aspose I also didn't see how to post a new problem so I am doing it this way.

    The old code is below. How do I change it to the new version. If I can get this once I should be good to go. I just don't have the time to learn the changes right now.

    Thanks

    Joe

    PS. I am getting the error on RelativeHorizontalPosition.Page and RelativeVerticalPosition.Page does not exist in the current context.

    ---------------------------------------------------------------------------

    asposeDocumentBuilder.InsertImage(

    image,

    RelativeHorizontalPosition.Page,

    ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode_InchesLeft"])), //((asposeDocumentBuilder.PageSetup.PageWidth - imageWidth)/2.0f), //Image Left

    RelativeVerticalPosition.Page,

    (asposeDocumentBuilder.PageSetup.PageHeight - ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode_InchesBottom"]))), //(asposeDocumentBuilder.PageSetup.PageHeight - (ConvertUtil.InchToPoint(.25) + imageHeight)), //Image Top

    imageWidth,

    imageHeight,

    WrapType.None, // Don't need wrapping

    WrapSide.Both, // Does not matter in this case

    true,

    null);

     
  •  09-06-2008, 4:35 AM 142709 in reply to 142682

    Re: Renewal of Aspose.Words and Purchase of Aspose.Pdf

    Hi

     

    Thanks for your inquiry. I think that you should just add the following:

     

    using Aspose.Words.Drawing;

     

    or use

     

    Aspose.Words.Drawing.RelativeHorizontalPosition.Page

    And

    Aspose.Words.Drawing.RelativeVerticalPosition.Page

     

    Hope this helps.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  09-08-2008, 9:17 AM 142926 in reply to 142709

    Getting error : "insert Image requires 11 arguments"

     

    asposeDocumentBuilder.InsertImage(image,

    RelativeHorizontalPosition.Page,

    ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode_InchesLeft"])),

    RelativeVerticalPosition.Page,

    (asposeDocumentBuilder.PageSetup.PageHeight - ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode_InchesBottom"]))),

    imageWidth,

    imageHeight,

    WrapType.None,

    WrapSide.Both,

    true,

    null);

     
  •  09-08-2008, 10:28 AM 142939 in reply to 142926

    Re: Getting error : "insert Image requires 11 arguments"

    Hi

     

    Thanks for your inquiry. I already answered this question here:

    http://www.aspose.com/community/forums/thread/142925/error-stating-that-insertimage-requires-11-arguments.aspx

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML