Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Event 1310 - Could not load file or assembly

$
0
0

Hi,

one of my users has a strange error with a corporate application that uses .NET Framework. It looks like the application cannot load the component Microsoft.Office.Interop.Excel required to display reports after processing the data. The error reported at application level is "Attempted to access an unloaded AppDomain". Below is the error log in the Event Viewer (actually a warning), which seems to be related to a configuration problem of ASP.NET 4.0.30319.0

It's Windows 7 64-bit with .NET 4.5.2 and Office 2010. No other visible problems with Windows or Office. Can you suggest any way to fix this? Could uninstalling and reinstalling the .NET Framework help or better trying something else?

Event code: 3008
Event message: A configuration error has occurred.
Event time: 22/02/2016 15:51:03
Event time (UTC): 22/02/2016 14:51:03
Event ID: a9d164ca111b4aa98d25cd6fe32494b1
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: cf22d9ae-1-131006262585473361
    Trust level: Full
    Application Virtual Path: /ReportEngine
    Application Path: C:\Program Files\[AppFolder]\Web\
    Machine name: [MACHINENAME]
 
Process information:
    Process ID: 9312
    Process name: [Application.exe]
    Account name: [DOMAIN\Username]
 
Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\[AppFolder]\Web\web.config line 46)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
   at System.Web.Compilation.BuildManager.ExecutePreAppStart()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

 
 
Request information:
    Request URL: http://localhost:8081/ReportEngine/ReportViewer.aspx?rid=15&pid=16
    Request path: /ReportEngine/ReportViewer.aspx
    User host address: 127.0.0.1
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: [DOMAIN\Username]
 
Thread information:
    Thread ID: 5
    Thread account name: [DOMAIN\Username]
    Is impersonating: False
    Stack trace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
   at System.Web.Compilation.BuildManager.ExecutePreAppStart()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)



Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>