This is a discussion on ImageMagick MagickNet C# WebApplication within the C# Programming forums, part of the Software Development category; can u send me ur email id ..i will send the IM EXE and IM DLL to you Thanks...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hey we used the dlls you sent .. they seem to give the same results.However we tried using a recompiled one from the .net and it seems to be working for files of type "tiff". What i am trying to do is convert Pdf file to jpg images or tiff file to jpg.It seems to be working for tiff files however pdf conversion throws an exception that w3wp.exe (worker process) does not have permissions to create a temporary file in the asp.net temp folder. Have tried giving all kinds of permissions and even tried to use impersonation.None of the methods seem to be working for pdf's. Thanks for all the help |
| |||
| Hi, Could some one send me the dll of MagickNet, me, i can't complier because i can't find out. Thank you CORE_RL_bzlib_.lib CORE_RL_coders_.lib CORE_RL_filters_.lib CORE_RL_jbig_.lib CORE_RL_jpeg_.lib CORE_RL_magick_.lib CORE_RL_png_.lib CORE_RL_tiff_.lib CORE_RL_ttf_.lib CORE_RL_wand_.lib CORE_RL_zlib_.lib CORE_RL_jp2_.lib CORE_RL_wmf_.lib CORE_RL_lcms_.lib |
| |||
| 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 |
| |||
| 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 |
| |||
| Quote:
Thanks |
| |||
| Hi thanks for the dll. I can add the dll to the app. But as soon as I load the page, I just bombed with HResultException. Does this dll has some kind of dependency and need something else to be changed? Or we just drop this dll to the bin, add reference and directly use in code to test? Thanks a lot |
| |||
| Quote:
Thanks again for helping. This is what I did: I just took your dll. Then dropped it to the web app's bin folder. Then if I try to open existing pages which has no code of ImageMagickNET dll gives the exception I mentioned earlier. Same error appears if I add a refenerce to the dll in bin folder. Since it breaks adding the dll the bin folder, I can't test the code at all. Is there anything I missed? Or anyother file needed to be installed or some permission needed to be given? I searched Google and found that we get similar exception when we try to use a Native dll (written in C++ say) in C# asp.net app Is this a native dll or it is a .NET dll. Since it is a wrapper, it must use ImageMagick dll written in C++ behind the scene. Not? How do I use this dll in asp.net app? Thanks a lot for working on this Have a great day. |
| |||
| Quote:
Anyway I can get this dll referenced or drop to my bin and use like other .net dll? Do I need to get the source code and then compile? In that case does it work for jpeg fie processing? I saw someone saying it only works for tif. Thanks |
| |||
| it works fine for me..thats y i told..i installed everything in my server fine....it works in XP,2003 servers....
__________________ The MOSS Master of Solution Service |
| |||
| Quote:
I have windows XP + vs2005 Could you please send me the "complete steps" from getting source code, unzipping, folder structure of solution+unzip, setting project properties and compiling? I am sure this will help many other people and credit will go to you!! I would like to build the dll on my local machine. Thank you sir for saving my life. Trying to get this working for last 2 months ![]() Have a great day. Regards |
| |||
| Quote:
Does the ImageMagickNET.dll has dependency on other dlls? If yes do we need to deploy them as well? Thanks |
| |||
| i did nt use the ImageMagickNEt dlll,i used the MagickNEt dll ....Just add refernce it will placed in bin folder.....
__________________ The MOSS Master of Solution Service |
| |||
| Quote:
I added the ref to MagickNet.dll and it was copied to bin Then I tried to load a page and I still get the HRESULT exception due to file not found. Then I opened your dll using Dependency Walker tool to see what file is missing I found that your dll has dependency on CORE_RL_magick_.dll which is missing. Then I tried to add the dll from bubble2k's code project but VS Studio doesn't allow to add a reference to it since that is C++ or doesn't expose API (may be) Any clue on how to solve this? I think this is the main reason all people getting HResult exception. Thanks for your help |
| |||
| have you installed the ImageMagick ? It will automatically installed and registered the dll's..u specified.... MagickNet dll is working perfectly that i have sent After installing the IM ....Restart the IIS
__________________ The MOSS Master of Solution Service |
| |||
| Quote:
I ran the install-safe.bat file to install the ImageMagick. How do I verify the this to see if the CORE_RL_*.dll are in the right place? I took the ImageMagick from bubble2k's code project download. Is this right? Thanks |