开发者

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

开发者 https://www.devze.com 2022-12-20 18:28 出处:网络
Subsonic 2.2 is throwing the error subsonic Invalid cast from System.Int32 to System.Byte[] When I do the following

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

"templa开发者_C百科te" 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}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号