문제

Subsonic 2.2 is throwing the error

subsonic Invalid cast from System.Int32 to System.Byte[]

When I do the following

        If template.Content Is Nothing Then
            MsgBox("Blank Document")
        Else
            MsgBox("Document Present")
        End If

"template" is a SubSonic object of which it's "content" field is of type Byte()

Why is this

도움이 되었습니까?

해결책

The SubSonic object was initialized incorrectly.

Solution

Dim template as New TemplateDocument(Guid.NewID()) with {.content = Nothing}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top