473,395 Members | 1,872 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,395 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 1629

"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.