Loading Bitmap resource from .net library with ASP.NET Core

  • Thread starter Thread starter Ankingster
  • Start date Start date
A

Ankingster

Guest
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
'Draw Check
AnnImage = My.Resources.tick_64
Else
'Draw tag
'this line generates exception
AnnImage = My.Resources.sign_here_tag

'Resources.ResourceManager rm = New Resources.ResourceManager("test.g", Reflection.Assembly.GetExecutingAssembly())
End If

Continue reading...
 
Back
Top