Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. error: Exception has been thrown by the target of an invocation

error: Exception has been thrown by the target of an invocation

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehrnoosh
    wrote on last edited by
    #1

    hi i am writting a writer program that use XPBurncomponent.dll a pice of code that i used is:

    XPBurn.XPBurnCD cd = new XPBurn.XPBurnCD();
    //Add files (file path, name of file to use for CD
    cd.AddFile(@"c:\pic1.jpg","pic1.jpg");

    //... add all files...

    /*
    Record Disc begins the process,
    Set 1st param to false if you want to actually burn the disk and not just simulate a burn
    Set 2nd param to true if you want the disc to eject after burn
    */

    cd.RecordDisc(false, true);

    but sometimes an error is shown : error: Exception has been thrown by the target of an invocation can anybody help me please? :(

    M.Alizadeh

    M 1 Reply Last reply
    0
    • M mehrnoosh

      hi i am writting a writer program that use XPBurncomponent.dll a pice of code that i used is:

      XPBurn.XPBurnCD cd = new XPBurn.XPBurnCD();
      //Add files (file path, name of file to use for CD
      cd.AddFile(@"c:\pic1.jpg","pic1.jpg");

      //... add all files...

      /*
      Record Disc begins the process,
      Set 1st param to false if you want to actually burn the disk and not just simulate a burn
      Set 2nd param to true if you want the disc to eject after burn
      */

      cd.RecordDisc(false, true);

      but sometimes an error is shown : error: Exception has been thrown by the target of an invocation can anybody help me please? :(

      M.Alizadeh

      M Offline
      M Offline
      mehrnoosh
      wrote on last edited by
      #2

      arent there anybody to help me..???!!! how can i solve this problem? :(( :(( :((

      M.Alizadeh

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups