PC Review


Reply
Thread Tools Rate Thread

Problems opening forms in designer when dataset is defined in another assembly

 
 
Magnus Bergh
Guest
Posts: n/a
 
      13th Jun 2007
I got a weird problem with designer. I have created a spearate assembly
(DLL) containing my dataset classes and other classes which are shared
bewteen the projects in the solution.

When I try to open any form that use the dataset class or any of other
classes in the referenced assembly I get varoius errors in designer.

Looks like every time I open VS I need to do a) Rebuild solution, b)
Clean Solution and then I can open the forms. Sometimes I need to mess
around with Rebuild/Build clear etc to finally make it possibe to open
the forms.

Everything might look fine and forms open as they should. Then I close
the project and repopen and same problem again.

Any ideas why I have these problems? I don't have any problems when
dataset and other classes is in the same project.

I can compile and deploy the solution with no problems and it runs fine.

Some examples of errors I get in designer:
"Unable to cast object of type
'Microsoft.CompactFramework.Design.UnsafeComponent' to type
'System.Data.DataSet'. "

"The variable 'FutDataSet' is either undeclared or was never assigned."
 
Reply With Quote
 
 
 
 
Magnus Bergh
Guest
Posts: n/a
 
      14th Jun 2007
This is getting really annoying. Tried to recreate projects and solution
but didn't help.

Is there anythign special you need to do to have your dataset in a
separate assembly?
 
Reply With Quote
 
Magnus Bergh
Guest
Posts: n/a
 
      15th Jun 2007
For those who like me has got the same problem (I have searched lot of
articles but not find any explanation), I found a solution:

In my assembly which contains the dataset class I also put some other
classes (including some form classes. The braindead designer did not
like this (even if code run fine at runtime). After moving the dataset
class out to a seperate dataset it now works fine.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Forms Designer Control Assembly Resolution DonJefe Microsoft C# .NET 0 21st Jul 2009 11:48 PM
Problems with Windows forms designer Alhambra Eidos Kiquenet Microsoft VB .NET 1 24th Jul 2008 07:48 PM
Form Designer: Loading custom forms from an assembly fschwend Microsoft C# .NET 0 16th Mar 2008 03:18 PM
Dataset Designer problems SAL Microsoft ASP .NET 0 16th Mar 2007 09:34 PM
Opening forms in designer is slow with Visual Studio .NET 2005 Cheeyan Microsoft Dot NET Compact Framework 3 17th Dec 2005 05:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 PM.