1
Answer

Exception- Unable to get window handle for WebBrowser Control

jaya joshi

jaya joshi

13y
3.8k
1
Hi,

I am using webbrowser control in C# as HtmlEditor. And calling that webbrowser in Wpf window form host. My html pages are shown in webbrowser control. I have one button to add html and on click of that I am initializing that webBrowser(HtmlEditor) again. While I am trying to do so sometimes this exception comes:

"TargetInvocation exception" and "Unable to get window handle for WebBrowser Control. Windowless ActiveX control not Supported"

Please Help how to resolve it. 
Answers (1)
1
Bryian Tan

Bryian Tan

NA 9.4k 887.3k 12y
Hi,

It sound like you have version 655 but the mdf version is 661 (from MS SQL Server R2). There are couple of options.

  1. upgrade your SQL Server 2008 to SQL Server 2008 R2
  2. use the Generate Scripts tool to generate scripts for the database objects (abc) and run the script on your SQL server.
NOTE: You might have Microsoft SQL Server 2008 R2 Management Studio on your machine but that doesn't mean that you have Microsoft SQL Server 2008 R2
Accepted
1
Bryian Tan

Bryian Tan

NA 9.4k 887.3k 12y
Right click the database, Tasks, Generate Scripts...

http://msdn.microsoft.com/en-us/library/ms178078%28v=sql.105%29.aspx
1
mahesh kumar B M

mahesh kumar B M

NA 42 1.1m 12y
hi, where do we find this Generate Scripts tool to generate scripts for the database objects and plz share the link if its available. What are the steps to be followed to convert from sql server 2008 to sql server 2006 R2