Could not load file or assembly *.Excel.dll

Stimulsoft Reports.NET discussion
Post Reply
dSnix
Posts: 2
Joined: Tue Nov 06, 2012 3:58 am

Could not load file or assembly *.Excel.dll

Post by dSnix »

Hello!

I've got software that uses Stimulsoft.Report.dll. While testing this soft on the computer with MS Office 2010 during the compilation of the report there is a "System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel.dll' or one of its dependencies." occured.
But on the computer, which uses MS Office 2007, this error does not proceed.
Сan you help to solve this problem?

.Net 4.0
OS: Windows 7 professional
StimulSoft Version: 2011.1.1000.0
Inner exception:
2012.11.02.12.51.10 Execute command exception System.Reflection.TargetInvocationException System.Object _InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel.dll' or one of its dependencies.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Stimulsoft.Base.StiAssemblyFinder.GetAssembly(String assemblyName)
at Stimulsoft.Report.StiReport.GetReferencedAssemblies()
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path)

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Could not load file or assembly *.Excel.dll

Post by Alex K. »

Hello,

Please send us your report which reproduces the issue for analysis.

Thank you.
dSnix
Posts: 2
Joined: Tue Nov 06, 2012 3:58 am

Re: Could not load file or assembly *.Excel.dll

Post by dSnix »

Here it is.

Thank you.
Attachments
report.mrt
(19.94 KiB) Downloaded 217 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Could not load file or assembly *.Excel.dll

Post by Alex K. »

Hello,

Please check the following link:
http://social.msdn.microsoft.com/Forums ... 9481298080

Thank you.
Post Reply