IT Community - Software Programming, Web Development and Technical Support

ImageMagick MagickNet C# WebApplication

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...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #61 (permalink)  
Old 05-14-2008, 05:10 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

can u send me ur email id ..i will send the IM EXE and IM DLL to you

Thanks
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #62 (permalink)  
Old 05-14-2008, 07:14 AM
Deepa Deepa is offline
D-Web Trainee
 
Join Date: May 2008
Posts: 3
Deepa is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #63 (permalink)  
Old 05-21-2008, 06:31 AM
lzw1015bean lzw1015bean is offline
D-Web Trainee
 
Join Date: May 2008
Posts: 1
lzw1015bean is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #64 (permalink)  
Old 05-21-2008, 09:08 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Send me ur email id

Thanks
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #67 (permalink)  
Old 07-15-2008, 10:44 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

hi rawsonl

Pls post ur code
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #68 (permalink)  
Old 07-16-2008, 12:12 AM
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

Quote:
Originally Posted by Anandavinayagam View Post
can u send me ur email id ..i will send the IM EXE and IM DLL to you

Thanks
Please send me the new working dll to khan7290@hotmail.com

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #69 (permalink)  
Old 07-16-2008, 03:29 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

i have sent that to u
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #70 (permalink)  
Old 07-17-2008, 01:21 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

Quote:
Originally Posted by Anandavinayagam View Post
i have sent that to u
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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #71 (permalink)  
Old 07-17-2008, 08:32 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

just add it in dll..u still get the error...what si it?restart the iss...
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #72 (permalink)  
Old 07-21-2008, 03:15 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

Quote:
Originally Posted by Anandavinayagam View Post
just add it in dll..u still get the error...what si it?restart the iss...
Hi,
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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #73 (permalink)  
Old 07-25-2008, 11:23 AM
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

Quote:
Originally Posted by khan7290 View Post
Hi,
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.

....
Have a great day.
Hi Anand,
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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #74 (permalink)  
Old 07-27-2008, 08:27 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #75 (permalink)  
Old 07-28-2008, 11:50 AM
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

Quote:
Originally Posted by Anandavinayagam View Post
it works fine for me..thats y i told..i installed everything in my server fine....it works in XP,2003 servers....
Thanks again for help.

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #76 (permalink)  
Old 07-30-2008, 01:38 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

Quote:
Originally Posted by khan7290 View Post
Thanks again for help.

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
Which dlls do you deploy and where (bin\ folder?) do you deploy them?
Does the ImageMagickNET.dll has dependency on other dlls? If yes do we need to deploy them as well?

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #77 (permalink)  
Old 08-01-2008, 02:17 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #78 (permalink)  
Old 08-01-2008, 01:01 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

Quote:
Originally Posted by Anandavinayagam View Post
i did nt use the ImageMagickNEt dlll,i used the MagickNEt dll ....Just add refernce it will placed in bin folder.....
Hi Anand,
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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #79 (permalink)  
Old 08-01-2008, 10:50 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #80 (permalink)  
Old 08-03-2008, 11:59 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

Quote:
Originally Posted by Anandavinayagam View Post
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
It is still giving same error.

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (