Last post Nov 16, 2018 05:22 PM by l.laxmikant
Nov 13, 2018 04:49 PM|ankingster|LINK
I have a library that is written in VB.net and i have to use it with my ASP.NET Core application. It has some resource files that it needs to load up during runtime to generate specific output bitmap.
What happens is I'm getting following error trying to use bitmap file from resources:
System.NotSupportedException: 'Cannot read resources that depend on serialization'
If _Document.Document.Pages.IndexOf(SigField.Widgets.Item(0).Page) = p_PageNumber Then
If CItem.Captured Then
'this line generates exception
AnnImage = My.Resources.sign_here_tag
Nov 14, 2018 07:50 AM|Xing Zou|LINK
Are you using asp.net core2.1 ? I am not familiar with VB and it is helpful that you could share a reproducible project to us.
Nov 16, 2018 05:22 PM|l.laxmikant|LINK
As you are using resources you will have to edit .csproj file to include bitmap
<EmbeddedResource Include="*.bmp" />