Error in loading C1PrintPreviewControl

Posted by: a.callegari on 30 January 2019, 8:11 am EST

    • Post Options:
    • Link

    Posted 30 January 2019, 8:11 am EST

    When creating the form containing the C1PrintPreviewControl control, the error is generated:

    System.InvalidOperationException

    HResult = 0x80131509

    Message = Error creating the form. Error: Could not load file or assembly ‘C1.C1Report.2, Version = 2.6.20132.54638, Culture = neutral, PublicKeyToken = 594a0605db190bb9’ or one of its dependencies. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Origin = can not be evaluated

    Stack analysis:

    <Exception stack analysis can not be evaluated

    Internal exception 1:

    FileLoadException: Unable to load file or assembly ‘C1.C1Report.2, Version = 2.6.20132.54638, Culture = neutral, PublicKeyToken = 594a0605db190bb9’ or one of its dependencies. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Internal exception 2:

    FileLoadException: Unable to load file or assembly ‘C1.C1Report.2, Version = 2.0.20182.314, Culture = neutral, PublicKeyToken = 594a0605db190bb9’ or one of its dependencies. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    All C1 controls are with release 2.0.20182.314

  • Posted 31 January 2019, 12:56 am EST

    Hello,

    Please refer the solution stated for the mentioned error, in this blog post:

    https://www.grapecity.com/en/blogs/a-step-ahead-troubleshooting-common-errors-part-i

    In case the issue persists, do let us know.

    Best Regards,

    Esha

    Note: .Net Framework 2.0 Support Notice (https://www.grapecity.com/en/forums/winforms-edition/net-framework-20-support-n_5)

  • Posted 1 February 2019, 6:11 am EST

    I deleted the references, the bin and obj folders, reloaded everything, but the error continues

  • Posted 1 February 2019, 7:04 am EST

    I found the problem, in app.config:

    <runtime>
    	<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    		<dependentAssembly>
    			<assemblyIdentity name="C1.C1Report.2" publicKeyToken="594A0605DB190BB9" culture="neutral" />
    			<bindingRedirect oldVersion="0.0.0.0-2.6.20132.54638" newVersion="2.6.20132.54638" />
    		</dependentAssembly>
    	</assemblyBinding>
    </runtime>
    

    I simply deleted the text (see above) from app.config

    I mark it that can be of help to others

    Best Regards,

    Alberto

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels