473,394 Members | 1,866 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,394 software developers and data experts.

Repost: Dataset problems

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 few reasons.

All was OK until testing a particular form, and I got a
strange error when opening it whilst running, and I got
an exception stating that the dataset I was using to fill
a table was not initialised.

I opened the form and I noticed that all of the datasets
that I had in the designer had dissapeared!!! I then
tried to recreate them through the dataadapter, but I
just kept getting "Unspecified Error". I changed the
connection string back from a dynamic property into the
string it originally was and it still didn't work.

The named datasets still appear on in the code page, but
they do not appear within the "Windows Forms" code run
when initialising.

Bringing a form in from a backup still doesn't seem to
work either!

Thanks

Martin

Nov 15 '05 #1
7 1289
Hi Martin,

I guess designer has problems.
What happens if you create a new form and place a dataset on it?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote in
message news:05****************************@phx.gbl...
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 few reasons.

All was OK until testing a particular form, and I got a
strange error when opening it whilst running, and I got
an exception stating that the dataset I was using to fill
a table was not initialised.

I opened the form and I noticed that all of the datasets
that I had in the designer had dissapeared!!! I then
tried to recreate them through the dataadapter, but I
just kept getting "Unspecified Error". I changed the
connection string back from a dynamic property into the
string it originally was and it still didn't work.

The named datasets still appear on in the code page, but
they do not appear within the "Windows Forms" code run
when initialising.

Bringing a form in from a backup still doesn't seem to
work either!

Thanks

Martin

Nov 15 '05 #2
The designer will allow me to create a new form, add some
datasets, and will work fine! The next time I open that
form, those datasets have gone, and I start
getting "Unspecified Errors" on the new form.

Thanks

Martin

-----Original Message-----
Hi Martin,

I guess designer has problems.
What happens if you create a new form and place a dataset on it?
--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote inmessage news:05****************************@phx.gbl...
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 few reasons.

All was OK until testing a particular form, and I got a
strange error when opening it whilst running, and I got
an exception stating that the dataset I was using to fill a table was not initialised.

I opened the form and I noticed that all of the datasets that I had in the designer had dissapeared!!! I then
tried to recreate them through the dataadapter, but I
just kept getting "Unspecified Error". I changed the
connection string back from a dynamic property into the
string it originally was and it still didn't work.

The named datasets still appear on in the code page, but they do not appear within the "Windows Forms" code run
when initialising.

Bringing a form in from a backup still doesn't seem to
work either!

Thanks

Martin

.

Nov 15 '05 #3
Are datasets in the same project?
Also, try deleting obj and bin folders.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote in
message news:06****************************@phx.gbl...
The designer will allow me to create a new form, add some
datasets, and will work fine! The next time I open that
form, those datasets have gone, and I start
getting "Unspecified Errors" on the new form.

Thanks

Martin

-----Original Message-----
Hi Martin,

I guess designer has problems.
What happens if you create a new form and place a

dataset on it?

--
Miha Markic - RightHand .NET consulting & software

development
miha at rthand com

"Martin Hazell"

<ma***********@toomuchspam.iomcreameres.com> wrote in
message news:05****************************@phx.gbl...
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 few reasons.

All was OK until testing a particular form, and I got a
strange error when opening it whilst running, and I got
an exception stating that the dataset I was using to fill a table was not initialised.

I opened the form and I noticed that all of the datasets that I had in the designer had dissapeared!!! I then
tried to recreate them through the dataadapter, but I
just kept getting "Unspecified Error". I changed the
connection string back from a dynamic property into the
string it originally was and it still didn't work.

The named datasets still appear on in the code page, but they do not appear within the "Windows Forms" code run
when initialising.

Bringing a form in from a backup still doesn't seem to
work either!

Thanks

Martin

.

Nov 15 '05 #4
I have deleted the obj and bin folders, and it has let me
recreate the datasets fine - and it also hasn't deleted
them on me either.

Thanks

Martin

-----Original Message-----
Are datasets in the same project?
Also, try deleting obj and bin folders.

--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote inmessage news:06****************************@phx.gbl...
The designer will allow me to create a new form, add some datasets, and will work fine! The next time I open that form, those datasets have gone, and I start
getting "Unspecified Errors" on the new form.

Thanks

Martin

>-----Original Message-----
>Hi Martin,
>
>I guess designer has problems.
>What happens if you create a new form and place a

dataset on it?
>
>--
>Miha Markic - RightHand .NET consulting & software

development
>miha at rthand com
>
>"Martin Hazell"

<ma***********@toomuchspam.iomcreameres.com> wrote in
>message news:05****************************@phx.gbl...
>> 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 few reasons.
>>
>> All was OK until testing a particular form, and I got a >> strange error when opening it whilst running, and I got >> an exception stating that the dataset I was using to

fill
>> a table was not initialised.
>>
>> I opened the form and I noticed that all of the

datasets
>> that I had in the designer had dissapeared!!! I then
>> tried to recreate them through the dataadapter, but I >> just kept getting "Unspecified Error". I changed the >> connection string back from a dynamic property into the >> string it originally was and it still didn't work.
>>
>> The named datasets still appear on in the code page,

but
>> they do not appear within the "Windows Forms" code run >> when initialising.
>>
>> Bringing a form in from a backup still doesn't seem to >> work either!
>>
>> Thanks
>>
>> Martin
>>
>
>
>.
>

.

Nov 15 '05 #5

Hi Martin,

This can happen when your conenction String is not properly made or there
is some error in the SQL Command. You must check for Connection string
whether you are logged in as NT Authentication or SQL Authentication.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #6

If you create a project, manipulate your dataset and data in the new
project, does the error still generate?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #7
Hi,

Thanks - I think that is what originally caused the
problem, but resetting it did not solve it.

I have managed to fix this error by deleting the obj and
bin files (see Miha Markic's reply for more details) and
this has cured the problem.

Many thanks for your help

Martin

-----Original Message-----

Hi Martin,

This can happen when your conenction String is not properly made or thereis some error in the SQL Command. You must check for Connection stringwhether you are logged in as NT Authentication or SQL Authentication.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Nov 15 '05 #8

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

Similar topics

6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
0
by: Doug | last post by:
This is a repost of an item that I still cannot resolve. I have 3 combo boxes. The first leads to the second to the third. When I have selected a value in the second box, the third box shows...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
2
by: Learning SQL Server | last post by:
Forgive the repost, but this is really troublesome and I hope SOMEONE can shed some light on it. I am trying to update a datarow via in-place editing from a dataset stored in session. When I...
11
by: Steve B. | last post by:
How can I keep the ComboBox textbox empty of datasource items when my local application starts AND keep them empty even after the user clicks different Tabs on the form. I welcome any questions....
0
by: Ken Powers | last post by:
Hello everyone, Sorry about the repost, my second VB.NET App is done with the exception of this error. I'm getting a strange error when I try to bind a combo box to a Dataset. Here's my code! ...
7
by: Mythran | last post by:
Been 11 days since I posted this and 0 replies (although, in OE, it looks like there was 1 but it's just another post with the same subject as before): Part #1: I have a Thread, MainThread, and...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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.