The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

i am trying to convert dgn file to pdf file and that pdf file has to be get printed.not able to convert dgn file to pdf file  in bentley microstation v8i.   Previous it was working in   bentley microstation v7.

code :

for (i = 0; i < dt.Rows.Count; i++)
{
oCopyContext = new CopyContextClass();
Element ele = default(Element);
DLong Id = default(DLong);
Id.High = 0;
Id.Low = Convert.ToInt32(dt.Rows[i][0].ToString());

{
ele = (Element)(ofile.DefaultModelReference.GetElementByID(ref Id));
if (ele != null)
{
ele.IsLocked = false;
ele.Color = 152;
ofile.DefaultModelReference.CopyElement(ele, oCopyContext);
}
}
}

error at  the line : ofile.DefaultModelReference.CopyElement(ele, oCopyContext);

source : Interop.MicroStationDGN

stack Trace : at MicroStationDGN.ModelReferenceClass.CopyElement(_Element Element, CopyContext CopyContext)
at Xorail.CADAutomation.CADInterface.BentleyInterfaceBase.StartPDFForSingleFileComparer(String designfile, String outFileName, String pdfpath, DataTable dt, DataTable dt1, String Filetype) in d:\VisualStudioProjects\CADAutomation\CADInterface\BentleyInterfaceBase.cs:line 10124

please provide me solution..its  much needed.

Parents Reply
  • This looks to be a custom (out-of-process) solution (developed by XORail?) and the developer of the application should attempt to debug the issue/conditions triggering it first. e.g. Check with XORail's IT department to see what customizations exist and who could help troubleshoot. Though I may have missed something I was not able to identify or locate any Bentley code specific to "StartPDFForSingleFileComparer".

    Xorail.CADAutomation.CADInterface.BentleyInterfaceBase.StartPDFForSingleFileComparer

    HTH,
    Bob



Children
No Data