I downloaded GroupDocs.Viewer-for-.NET-master from the github website and ran the Demo inside GroupDocs.Viewer-for-.NET-master\Demos\ASP.NET MVC\src. When previewing dwg, execute the LoadDocumentDescription method
var documentDescription =
await _viewer.GetDocumentInfoAsync(fileCredentials);
After the above code, an exception is thrown: Something went wrong
Type initializer for ‘Aspose.CAD.Image’ threw an exception.
I chose the built-in house-plan.dwg file to preview. Please help to solve the problem. I was using a trial version of the license.
This topic has been moved to the related forum: GroupDocs.Viewer-for-.NET Can't preview dwg file - Free Support Forum - groupdocs.com