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; External component has thrown an exception. Description: An unhandled exception occurred during the execution of the current web request. Please ...


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

Register FAQ Members List Calendar Mark Forums Read
  #41  
Old 11-16-2007, 02:10 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 135
Anandavinayagam is on a distinguished road
Default System.Runtime.InteropServices.SEHException: External component has thrown an excepti

External component has thrown an exception.
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.Runtime.InteropServices.SEHException: External component has thrown an exception.

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:

[SEHException (0x80004005): External component has thrown an exception.]
Magick.Image.{ctor}(Image* , basic_string<char\,std::char_traits<char>\,std::al locator<char> >* ) +0
ImageMagickNET.Image..ctor(String imageSpec)
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #42  
Old 11-16-2007, 02:17 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

May be Rights issue

Use impersonate
<identity impersonate="true" userName="domain\admin" password="password"/> in web.config
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #43  
Old 12-18-2007, 03:12 PM
leotsem leotsem is offline
D-Web Trainee
 
Join Date: Dec 2007
Posts: 1
leotsem is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Hello everybody,
I am using the latest version of ImageMagick with MagickNET and Ghostscript for a .NET project in C#.
I am trying to create an Enumerator to parse a multi-page PDF document and export each page to jpg.
I use the following code:
Code:
ImageMagickNET.ImageList imgList = new ImageMagickNET.ImageList();
imgList.ReadImages(Server.MapPath(filename));
ImageMagickNET.ImageListEnumerator imgArray = new  ImageMagickNET.ImageListEnumerator(imgList);
and I get the following error:

CS1502: The best overloaded method match for 'ImageMagickNET.ImageListEnumerator.ImageListEnume rator(std.list<Magick::Image,std::allocator<Magick ::Image> >*)' has some invalid arguments

Does anyone know what "std.list<Magick::Image,std::allocator<Magick::Ima ge> >*" is?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #44  
Old 12-27-2007, 03:27 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

I am also getting the same error while using the same method....but i dont think it is not a correct version...ImageMagick DLL doen not have the function......
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #45  
Old 01-09-2008, 10:23 AM
philouf_ philouf_ is offline
D-Web Trainee
 
Join Date: Jan 2008
Posts: 4
philouf_ is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Hi,

Kingmaker : I can not open your first .dll can you please, can you try to send it per mail?
The dll works well on the developement PC but on others PC I get an error:
An error occured during the process : Could not load file or assembly 'MagickNet, Version=1.0.0.3, Culture=neutral, PublicKeyToken=null'
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #46  
Old 01-09-2008, 08:04 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

can u give me the full exception msg...i think the system...could not find the"System.IO.FileNotFoundException"


and ur email id?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #47  
Old 01-10-2008, 12:24 AM
philouf_ philouf_ is offline
D-Web Trainee
 
Join Date: Jan 2008
Posts: 4
philouf_ is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

Thanks for your answers (it was me by mail too alias superfifi).

I have two cases
  • By using the dll provided by the Magicknet website
    With the magicknet dll, it works well on my pc which has vs2k5 but it does not work on the customer pc
    I took the error
    System.IO.FileLoadException: Could not load file or assembly 'MagickNet, Version=1.0.0.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Cette application n'a pas pu démarrer car la configuration de l'application est incorrecte. Réinstaller l'application pourrait résoudre ce problème. (Exception from HRESULT: 0x800736B1)
    File name: 'MagickNet, Version=1.0.0.3, Culture=neutral, PublicKeyToken=null' ---> System.Runtime.InteropServices.COMException (0x800736B1): Cette application n'a pas pu démarrer car la configuration de l'application est incorrecte. Réinstaller l'application pourrait résoudre ce problème. (Exception from HRESULT: 0x800736B1)

  • By using your DLLs . I tried the both that you sent me by mail, I get the error
    MagickNet.MagickError: NCFMerger.exe:unable to open image `L92S19106315A2-F-17.jpg': No such file or directory
    at MagickNet.MagickException.Throw()
    at MagickNet.MagickException.Throw(Object source, ExceptInfo* e)
    at MagickNet.Image.Read(String imageSpec)
    at MagickNet.Image..ctor(String imageSpec)
    at NCFMerger.MainForm.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in D:\Microsoft\Projects\NCFMergerSolution\NCFMerger\ NCFMergeForm.cs:line 259

I am totally lost, please help me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #48  
Old 01-10-2008, 01:09 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

Please install this.....
Download details: Visual C++ 2005 SP1 Redistributable Package (x86)


Quote:
* By using your DLLs . I tried the both that you sent me by mail, I get the error
MagickNet.MagickError: NCFMerger.exe:unable to open image `L92S19106315A2-F-17.jpg': No such file or directory
at MagickNet.MagickException.Throw()
at MagickNet.MagickException.Throw(Object source, ExceptInfo* e)
at MagickNet.Image.Read(String imageSpec)
at MagickNet.Image..ctor(String imageSpec)
at NCFMerger.MainForm.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in D:\Microsoft\Projects\NCFMergerSolution\NCFMerger\ NCFMergeForm.cs:line 259
This may be due to...image not found "L92S19106315A2-F-17.jpg"......

FEEL FREE TO ASK UR QUERIES

Last edited by kingmaker : 01-10-2008 at 02:05 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #49  
Old 01-10-2008, 02:21 AM
philouf_ philouf_ is offline
D-Web Trainee
 
Join Date: Jan 2008
Posts: 4
philouf_ is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

!!!!!!!!!!!

THANKS A LOT!!!!!!!

With the dll from the website, we need the C++ lib's tranks kingmaker for your skills and your patience!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #50  
Old 01-10-2008, 02:24 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

Great....

After installing the "Download details: Visual C++ 2005 SP1 Redistributable Package (x86)" this one....issue fixed right?
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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Addnoise using ImageMagick MagickNet in C#.NET Anandavinayagam C# Programming 1 09-20-2008 01:24 AM
Can anyone mail me a MagickNet.src.1.0.0.3.zip or MagickNet.dll Savior C# Programming 8 09-16-2008 12:34 AM
ImageMagick Magicknet psd to gif C#.NET Web Application kingmaker C# Programming 3 02-20-2008 08:57 PM
Chop Image using ImageMagick MagickNet Anandavinayagam C# Programming 3 01-08-2008 03:32 AM
Database checkpoint, while,testing,webapplication itbarota Testing Tools 1 08-17-2007 02:35 AM


All times are GMT -7. The time now is 12:10 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0