View Single Post
  #65 (permalink)  
Old 07-10-2008, 11:08 AM
rawsonl rawsonl is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 1
rawsonl is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Okay so I tried to reference the imagemagicknet.dll grabbed from a zip link on this page -> http://www.discussweb.com/c-programm...ication-2.html

Referenced it in my application and I still get:

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 'ImageMagickNET, Version=1.0.2875.2008, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Source="VBForms"
StackTrace:
at VBForms.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at VBForms.My.MyProject.MyForms.get_Convert()
at VBForms.My.MyApplication.OnCreateMainForm() in C:\Documents and Settings\linda.rawson\My Documents\Visual Studio 2005\Projects\imgMagic\VBForms\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Run(String[] commandLine)
at VBForms.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

What am I doing wrong? My application can see the dll fine but when I try and call it I get the above error.

Thanks,
Linda
Reply With Quote