Rank: Newbie Groups: Member
Joined: 12/11/2019 Posts: 5
|
I get the error error: Could not load file or assembly 'EO.Pdf, Version=19.2.91.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I do a new on the PDFGenerator. That works and sets the url. Then I call the .Generate() function. It does not go into the function but drops to the catch.
I had this problem so I uninstalled it. closed all programs, rebooted my machine, reinstalled the program, Launched Visual Studio and still got this error.
from the proj file:
<Reference Include="EO.Base, Version=16.2.93.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc, processorArchitecture=MSIL"> <HintPath>..\packages\EO.Pdf.16.2.93.0\lib\EO.Base.dll</HintPath> </Reference> <Reference Include="EO.Pdf, Version=16.2.93.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc, processorArchitecture=MSIL"> <HintPath>..\packages\EO.Pdf.16.2.93.0\lib\EO.Pdf.dll</HintPath> </Reference> <Reference Include="EO.WebBrowser, Version=16.2.93.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc, processorArchitecture=MSIL"> <HintPath>..\packages\EO.Pdf.16.2.93.0\lib\EO.WebBrowser.dll</HintPath> </Reference> <Reference Include="EO.WebEngine, Version=16.2.93.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc, processorArchitecture=MSIL"> <HintPath>..\packages\EO.Pdf.16.2.93.0\lib\EO.WebEngine.dll</HintPath> </Reference>
the code: var pdf = new PdfGenerator(relurl); var pdfStream = pdf.Generate();
this worked on an earlier version
|
Rank: Newbie Groups: Member
Joined: 12/11/2019 Posts: 5
|
never mind. Turned out some references to the old version did not get deleted.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Great. Glad to hear that it's working for you now.
|