473,396 Members | 2,039 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,396 software developers and data experts.

Design-time error - don't get it...

Hi.
I develop VB.NET for about 2 year.... recently, I created some user
controls, and use them in a win-form. Sometimes, when I try to design a form
that contains these controls, I get error messages that I know as RUNTIME
errors, such as "Dynamic SQL generation is not supported against a
SelectCommand that does not return any base table information." ... I don't
get it! I try to design the form in design mode!! when I click OK on that
error message, I get an error page describes the error, instead of the
original control.
It happened to me few times, and there is nothing I can do to solve it or
continue working !
Can someone please help here?

Thanks!
Tom Rahav.
Jul 22 '05 #1
3 1630

"Tom Rahav" <to******@nospam.nospam> wrote in message
news:eS*************@TK2MSFTNGP09.phx.gbl...
Hi.
I develop VB.NET for about 2 year.... recently, I created some user
controls, and use them in a win-form. Sometimes, when I try to design a
form that contains these controls, I get error messages that I know as
RUNTIME errors, such as "Dynamic SQL generation is not supported against a
SelectCommand that does not return any base table information." ... I
don't get it! I try to design the form in design mode!! when I click OK on
that error message, I get an error page describes the error, instead of
the original control.
It happened to me few times, and there is nothing I can do to solve it or
continue working !
Can someone please help here?

Thanks!
Tom Rahav.

While your project is in design mode, the control instances you are using
are in run mode. Think about it. If the controls were not in run mode, (and,
this goes for native control instances as well) how could you set properties
and have your settings reflected in the designer? It sounds to me like the
controls you are using are expecting to find certain other objects or
properties available, and are not finding what they need. I'd check the
documentation for these controls to see what requirements are listed.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Jul 22 '05 #2
Thanks for Peter's input.

Hi Tom,

From the error info you provided, it is something related to using the
database CommandBuilder to generate sqlstatement at design-time. So there
must exists some DataAdapter in your custom winform control ,yes?

Also, based on my research, there're some former issues whch has the
similiar symptom, most of them are caused by the different(Sql or OleDb
)CommandBuilder's support for different sqlstatement syntax. So does the
problem occurs when your control use a certain database's commandbuilder.
If convenient, I'd suggest you also provide some code snippet and the
select statement you're using when encounter the error.

If there is any other finding, please feel free to post here.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 22 '05 #3
Tom,

In my opinion is for this error only one thing important, how does your
Select String looks like. The message says that for this Select String the
dynamic generation is not supported.

Just my idea.

Cor
Jul 22 '05 #4

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

Similar topics

7
by: Bora Eryilmaz | last post by:
I am working on designing a set of abstract classes that would be subclassed by the users and they have to implement the abtract (virtual) methods. Does anybody know of a good reference on...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
13
by: John Salerno | last post by:
Here are a few I'm considering: Design Patterns Explained : A New Perspective on Object-Oriented Design (2nd Edition) (Software Patterns Series) by Alan Shalloway Design Patterns C# by...
16
by: sailor.gu | last post by:
Hi all guys, As an embeded programmer with five year C experience, I did read many great books related with design, coding, test,debug,algorithms, compiler, design, os, pm and others. I...
34
by: Nate | last post by:
Scenario: In a commerce application, there is a Product class. Along with the Product class there is a form (the text that goes in the labels of the input controls) for inputting and updating...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
6
by: JoeC | last post by:
I have a question about designing objects and programming. What is the best way to design objects? Create objects debug them and later if you need some new features just use inhereitance. Often...
9
by: Grizlyk | last post by:
Somebody have offered std colors to C++ in the msg here: http://groups.google.com/group/comp.lang.c++/browse_frm/thread/2e5bb3d36ece543b/1acf6cd7e3ebdbcd#1acf6cd7e3ebdbcd The main objection to...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
8
by: indrawati.yahya | last post by:
In a recent job interview, the interviewer asked me how I'd design classes for the following problem: let's consider a hypothetical firewall, which filters network packets by either IP address,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.