Jeff-Lewis / pdfviewernet

Automatically exported from code.google.com/p/pdfviewernet
0 stars 0 forks source link

Missing Dependencies #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute SamplePDFViewer on Vista Business x86/x32 with SP1 & IE8

-or-

2. Attempt to compile SamplePDFViewer on same system... 

What is the expected output? What do you see instead?
Expected: Successful compilation/execution
Actual:InvalidOperationException (see below)
===========================================================================
System.InvalidOperationException was unhandled
  Message="An error occurred creating the form. See
Exception.InnerException for details.  The error is: Could not load file or
assembly 'PDFLibNet, Version=1.0.6.2, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. An attempt was made to load a program with an
incorrect format."
  Source="SamplePDFViewer"
  StackTrace:
       at SamplePDFViewer.My.MyProject.MyForms.Create__Instance__[T](T
Instance)
       at SamplePDFViewer.My.MyApplication.OnCreateMainForm()
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicat
ionModel()
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String
[]
commandLine)
       at SamplePDFViewer.My.MyApplication.Main(String[] Args)
  InnerException: System.BadImageFormatException
       Message="Could not load file or assembly 'PDFLibNet,
Version=1.0.6.2, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. An attempt was made to load a program with an incorrect format."
       Source="PDFView"
       FileName="PDFLibNet, Version=1.0.6.2, Culture=neutral,
PublicKeyToken=null"
       FusionLog="WRN: Assembly binding logging is turned OFF.\r\nTo enable
assembly bind failure logging, set the registry value
[HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There
is some performance penalty associated with assembly bind failure
logging.\r\nTo turn this feature off, remove the registry value
[HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n"
       StackTrace:
            at PDFView.PDFViewer.set_FileName(String value)
            at SamplePDFViewer.Form1.rbXPDF_CheckedChanged(Object sender,
EventArgs e)
            at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
            at SamplePDFViewer.Form1.InitializeComponent()
       InnerException: 
===========================================================================

What version of the product are you using? On what operating system?
1.0.6.2
Vista Business x86 SP1/ Vista Business x64 SP1

Please provide any additional information below.

Dependency Walker indicates that the following dependencies are missing:
MSVCM80.DLL
MSVCR80.DLL
GPSVC.DLL
IESHIMS.DLL

I believe the issue isn't actually due to missing files (though I'm unable
to find IESHIMS on ANY of my PC's) and more so that the correct versions of
the MFC/CRT redistributables are not being included as say a private SxS
assembly.

Original issue reported on code.google.com by chris.lohl on 26 Aug 2009 at 3:31

GoogleCodeExporter commented 9 years ago
Install the latest C++ runtime files from Microsoft.

Original comment by snakebyt...@gmail.com on 30 Aug 2009 at 4:36

GoogleCodeExporter commented 9 years ago
Installed latest C++ runtime redists I was able to find prior to filing bug 
report.  
(vcredist_x86 v 9.0.21022.8 && vcredist_x64 v 6.00.2900.2180)

What versions are you expecting?

Original comment by chris.lohl on 10 Sep 2009 at 8:28

GoogleCodeExporter commented 9 years ago
Use latest source and the DLL problems should disappear.

Original comment by snakebyt...@gmail.com on 1 Jul 2011 at 5:13