View Single Post
  #66 (permalink)  
Old 07-14-2008, 06:09 PM
khan7290 khan7290 is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 9
khan7290 is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Hey Friends,
I added the dll from ImageMagickNET.zip (44.1 KB, 56 views) to my C# web app's bin folder. Then added a reference.

Next I added these 3 lines in Page_Load() and tried to loaded the page:
using ImageMagickNET;
string filename = "C:/xyz/photos/abcd/dsc00718.jpg";
ImageMagickNET.Image medImg = new ImageMagickNET.Image(filename);

But I get bombed with the following: Any clue?
Here is my email: khan7290@hotmail.com

------------ ---Thanks--- -----------

The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +211
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +441

[HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

[HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3465427
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +69
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +279
Reply With Quote