Welcome Guest Search | Active Topics | Sign In | Register

Error when dropping control onto winforms Options
Rick Morayniss
Posted: Monday, December 30, 2013 12:14:30 PM
Rank: Advanced Member
Groups: Member

Joined: 12/30/2013
Posts: 68
I just downloaded your controls and am trying the web browser control on VS2010 c#.
When I drop the control from the toolbox, I get the following error message.
"Type universe cannot resolve assembly: System.Design, Version =2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a."
Fi the run the XML sample, I do not get an error, but the app I am looking at using this control on is not WPF, so I need the winforms version working.[code=cs]
eo_support
Posted: Monday, December 30, 2013 12:26:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This can occur when your the target Framework version of your project is set to one of the "Client Profile" option. When your target framework is "Client Profile", it excludes certain assemblies from your project, System.Design is one of them.

The EO.WebBrowser.WinForm.WebControl uses System.Design in order to offer additional design time support. So if you drag it from the toolbox, you will run into this issue. To avoid this problem, we have published the source code of the WebControl without additional design time support:

http://www.essentialobjects.com/doc/6/start/winform.aspx

Code posted in the above page have the additional design time support removed, thus it no longer requires System.Design.dll and can work with client profile targets. The source code is minimum since the core features are implemented by the WebView class. In stead of using the WebControl class defined in EO.WebBrowser.WinForm.dll, you can copy the source code from the above page and put it in a file in your project, then use that class instead. This should resolve the problem for you.

Thanks!
Rick Morayniss
Posted: Tuesday, December 31, 2013 10:48:24 AM
Rank: Advanced Member
Groups: Member

Joined: 12/30/2013
Posts: 68
Thank you for your response.
By changes the .net version to .40 full instead of client solved my issue.
eo_support
Posted: Tuesday, December 31, 2013 10:56:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Yes. That will work too!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.