473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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."
Jun 13 '07 #1
2 3339
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?
Jun 14 '07 #2
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.

Jun 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Gao | last post by:
Hello, We are having a recurring problem of a typed dataset that we have in a form dissapearing from the VS designer and all bindings being lost. The dataset is defined in another component and...
5
by: Ben Bloom | last post by:
I'm new to XSLT, but everything I've read says this is the best approach to solving the XML->CSV problem. Based on some web reading, I came across the following XSLT code which appears valid, even...
7
by: Martin Hazell | last post by:
I have had a form within a project that has been tested and working for the past 4-5 months. The other day, I decided to change all of my database connection strings into a dynamic property for a...
0
by: Tom Gao | last post by:
Hello, We are having a recurring problem of a typed dataset that we have in a form dissapearing from the VS designer and all bindings being lost. The dataset is defined in another component and...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
4
by: john | last post by:
I'm having some Interop problems. I really need someone's help on this, i'm running out of ideas. I have upgraded my Data access controls to the latest ver. Now then i have a form with these...
6
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
5
by: Shawn Hogan | last post by:
Hi, I have a 3rd party control(infragistics) that seems to alter the VS.NET IDE properties grid so that there are three areas instead of two areas in the VS.NET IDE properties grid. There is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.