Skip to content

webBrowser System.InvalidCastException InvalidCast_FromTo, System.Runtime.InteropServices.Marshalling.ComObject, Windows.Win32.System.Ole.IOleObject+Interface #92

@sgf

Description

@sgf
   在 System.Runtime.CompilerServices.CastHelpers.ChkCast_Helper(Void* toTypeHnd, Object obj)
   在 System.Windows.Forms.WebBrowserBase.AttachInterfacesInternal()
   在 System.Windows.Forms.WebBrowserBase.TransitionFromPassiveToLoaded()
   在 System.Windows.Forms.WebBrowserBase.TransitionUpTo(AXState state)
   在 System.Windows.Forms.WebBrowser.get_AxIWebBrowser2()
   在 System.Windows.Forms.WebBrowser.PerformNavigateHelper(String urlString, Boolean newWindow, String targetFrameName, Byte[] postData, String headers)
   在 System.Windows.Forms.WebBrowser.Navigate(String urlString)
   在 TMGameL.LForm.InitWeb() 在 D:\Users\super\Documents\study\M3L\TMGameL\LForm.Web.cs 中: 第 18 行
   在 TMGameL.LForm..ctor() 在 D:\Users\super\Documents\study\M3L\TMGameL\LForm.cs 中: 第 13 行
   在 TMGameL.Program.Main() 在 D:\Users\super\Documents\study\M3L\TMGameL\Program.cs 中: 第 17 行
    webBrowser.Navigate(@$"url"); error here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions