c# - Why am I getting a RPC server error using a SaveFileDialogue in a WinForms app? -
i'm getting error when try use savefiledialogue in winforms app. must missing error makes no sense (to me!)!
the error is: "first-chance exception @ 0x000007fefc99cacd in testproject.exe: 0x000006ba: rpc server unavailable."
the error occurs when line runs: "if (sd.showdialog() == dialogresult.ok)".
here code:
var sd = new savefiledialog(); sd.filter = "pdf (*.pdf)|*.pdf|show files (*.*)|*.*"; sd.filename = "untitled"; sd.title = "save as"; if (sd.showdialog() == dialogresult.ok) { // here } edit: i'm saving file locally, error occurs before user has picked location save, occurs @ point try show dialogue user pick location!
probably have activated flag in exceptions debug menu.
try reset default configuration going debug -> exceptions -> reset all
Comments
Post a Comment