I cannot read a specific dwg file in c#

Hello ACadSharp Team,

I’m currently experiencing an issue while trying to read a file in C# using your library. The error message I receive is as follows:

System.ArgumentOutOfRangeException: TimeSpan overflowed because the duration is too long.
at ACadSharp.IO.DWG.DwgStreamReaderBase.ReadTimeSpan()
at ACadSharp.IO.DWG.DwgHeaderReader.Read(Int32 acadMaintenanceVersion, DwgHeaderHandlesCollection& objectPointers)
at ACadSharp.IO.DwgReader.ReadHeader()
at ACadSharp.IO.DwgReader.Read()
at ACadSharp.IO.DwgReader.Read(String filename, DwgReaderConfiguration configuration, NotificationEventHandler notification)

I kindly request your assistance in resolving this issue.

Thank you.

Hi,

What library are you using? Please provide us your sample code and DWG file. We may look into it.

Please note, you can use these libraries to read DWG file in C#.

1 - AutoCAD.NET
2 - Aspose.CAD for .NET