Friday, February 10, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: Chivan
New Today New Today: 3
New Yesterday New Yesterday: 27
User Count Overall: 20593

People Online People Online:
Visitors Visitors: 12
Members Members: 4
Total Total: 16

Online Now Online Now:
01: ctoremis
02: richteh
03: 孙磊
04: vposhataev

ClearCanvas Community Forums

vtkCommonDotNet: not a plugin?
Last Post 2009-09-17 11:19 PM by smr99. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
smr99
Advanced Member
Advanced Member
Posts:54

--
2009-09-15 07:26 PM  

Hi,

I built the trunk version of ImageViewer, current as of an hour ago.  When I run it in VS2008, it craps out with a FileLoadException; see below.  If I remove the 7 vtk*.dll files from the plugins directory, it runs. 

After cleaning them out, a rebuild of the solution puts the vtk files back in the plugins directory.  So their presence is not accidental.  Are these really plugins?  Does it work on your system?  I'm using Windows XP Pro. 

Any tips appreciated. 

System.IO.FileLoadException was unhandled
  Message="Could not load file or assembly 'vtkCommonDotNet, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)"
  Source="mscorlib"
  FileName="vtkCommonDotNet, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null"
  FusionLog=""
  StackTrace:
       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
       at System.Reflection.Assembly.LoadFrom(String assemblyFile)
       at ClearCanvas.Common.PluginFinder.LoadAssembly(String path)
       at ClearCanvas.Common.PluginFinder.FindPlugin(String path)
       at ClearCanvas.Common.PluginFinder.FindPlugin(String path)
       at ClearCanvas.Common.Utilities.FileProcessor.<>c__DisplayClass1.b__0(String filePath, Boolean& cancel)
       at ClearCanvas.Common.Utilities.FileProcessor.ProcessDirectory(String path, String searchPattern, ProcessFileCancellable proc, Boolean recursive, Boolean& cancel)
       at ClearCanvas.Common.Utilities.FileProcessor.Process(String path, String searchPattern, ProcessFileCancellable proc, Boolean recursive)
       at ClearCanvas.Common.Utilities.FileProcessor.Process(String path, String searchPattern, ProcessFile proc, Boolean recursive)
       at ClearCanvas.Common.PluginManager.FindPlugins(String path)
       at ClearCanvas.Common.PluginManager.LoadPlugins()
       at ClearCanvas.Common.PluginManager.EnsurePluginsLoaded()
       at ClearCanvas.Common.PluginManager.get_Extensions()
       at ClearCanvas.Common.DefaultExtensionFactory.BuildExtensionMapOnce()
       at ClearCanvas.Common.DefaultExtensionFactory.ListExtensionsHelper(ExtensionPoint extensionPoint, ExtensionFilter filter)
       at ClearCanvas.Common.DefaultExtensionFactory.CreateExtensions(ExtensionPoint extensionPoint, ExtensionFilter filter, Boolean justOne)
       at ClearCanvas.Common.ExtensionPoint.CreateExtensionsHelper(ExtensionFilter filter, Boolean justOne)
       at ClearCanvas.Common.ExtensionPoint.CreateExtension()
       at ClearCanvas.Common.Platform.StartApp(ExtensionFilter applicationRootFilter, String[] args)
       at ClearCanvas.Common.Platform.StartApp()
       at ClearCanvas.Desktop.Executable.Program.Main(String[] args) in D:\src\ClearCanvas\trunk\Desktop\Executable\Program.cs:line 68
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Runtime.InteropServices.COMException
       Message="This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)"
       ErrorCode=-2147010895
       StackTrace:
       InnerException:
 

 

 

henry
Senior Member
Senior Member
Posts:259

--
2009-09-16 09:54 AM  

 Hi Steve,

This seems to happen on machines that don't have the latest windows updates.  We think we've narrowed it down to this specific update:

http://www.microsoft.com/downloads/...laylang=en

 

But if that doesn't do it then getting all updates seems to address the issue.

Henry

smr99
Advanced Member
Advanced Member
Posts:54

--
2009-09-16 12:25 PM  

Hi Henry,

Thanks for the tip.  I tried it on another machine, and it does indeed work.  Now I just have to figure out what is different between the two :-)

I'll try updating the nonfunctional machine later today. 

Thanks,

-Steve

 

smr99
Advanced Member
Advanced Member
Posts:54

--
2009-09-17 11:19 PM  

Hi,

That seems to have done the trick.  I can now run CC again.

I'm a little puzzled, however: the fix was for VS 2005 stuff, whereas I'm using VS2008.  So how does that fix the problem?  Is the VTK dot net stuff compiled with VS 2005?

 

Cheers,

-Steve

 

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.