I am using VS.NET 2003, 1.1 Framework. I drag a table out of my SQL
Database from the Data Explorer onto the form which creates
SQLConnection1 and SQLDataAdapter1. So far, so good. Then, I generate
my dataset and it shows up in the try below the form right beside the
adapter and connection. As soon as I go and look at the form designer
generated code, i can notice that this line:
Friend WithEvents DsEmployee1 As Scheduling.dsEmployee
already has the Scheduling.dsEmployee underlined with the wavy line
telling me that there is something wrong with it. I switch back to
design mode and the dataset is missing.
Here is the error generated during compile:
Type 'Scheduling.dsEmployee' is not defined.
Like I said previously, I can start a new project and perform the same
steps and everything works. This is a project in which I already had
several forms built for but no previous data connections. Thanks for
any help in figuring this one out.
On Wed, 31 Dec 2003 23:51:30 -0500, "Val Mazur" <group51a@hotmail.com>
[quoted text, click to view] wrote:
>Hi David,
>
>Which version of VS.NET are you using? What kind of error do you get? Could
>you post exact steps which we could use to reproduce problem?
I have also had this problem. If Scheduling is the namespace for your
class, remove it. Then look at the designer. You should have the Dataset
back (at least untill the generated code is re-generated). For some reason
1.1 can't seem to find a dataset within the namespace it is defined in when
the fully qualified name is used. If that is not a bug I don'
[quoted text, click to view] "David Hearn" <dhearn@comcast.net> wrote in message
news:t7e7vv0uhrmbh43iif6l61ke200gs63cl5@4ax.com...
> I am using VS.NET 2003, 1.1 Framework. I drag a table out of my SQL
> Database from the Data Explorer onto the form which creates
> SQLConnection1 and SQLDataAdapter1. So far, so good. Then, I generate
> my dataset and it shows up in the try below the form right beside the
> adapter and connection. As soon as I go and look at the form designer
> generated code, i can notice that this line:
>
> Friend WithEvents DsEmployee1 As Scheduling.dsEmployee
>
> already has the Scheduling.dsEmployee underlined with the wavy line
> telling me that there is something wrong with it. I switch back to
> design mode and the dataset is missing.
>
> Here is the error generated during compile:
>
> Type 'Scheduling.dsEmployee' is not defined.
>
> Like I said previously, I can start a new project and perform the same
> steps and everything works. This is a project in which I already had
> several forms built for but no previous data connections. Thanks for
> any help in figuring this one out.
>
>
>
> On Wed, 31 Dec 2003 23:51:30 -0500, "Val Mazur" <group51a@hotmail.com>
> wrote:
>
> >Hi David,
> >
> >Which version of VS.NET are you using? What kind of error do you get?
Could
> >you post exact steps which we could use to reproduce problem?
>
That did it Chuck. That was the problem. Although it should work with
the namespace so I would like to know why it's not. Also, when I
remove the namespace from one of the lines that is referenceing it, it
keeps trying to add it back. Anyone know why?
Thanks!
On Thu, 01 Jan 2004 07:13:30 GMT, "Chuck" <ceatley@austin.rr.com>
[quoted text, click to view] wrote:
>Sorry about that. I am talking about the expression Scheduling.dsEmployee
>
>Chuck
>"Chuck" <ceatley@austin.rr.com> wrote in message
>news:VJPIb.21984$xU1.4192@fe1.texas.rr.com...
>> I have also had this problem. If Scheduling is the namespace for your
>> class, remove it. Then look at the designer. You should have the Dataset
>> back (at least untill the generated code is re-generated). For some
>reason
>> 1.1 can't seem to find a dataset within the namespace it is defined in
>when
>> the fully qualified name is used. If that is not a bug I don'
>> "David Hearn" <dhearn@comcast.net> wrote in message
>> news:t7e7vv0uhrmbh43iif6l61ke200gs63cl5@4ax.com...
>> > I am using VS.NET 2003, 1.1 Framework. I drag a table out of my SQL
>> > Database from the Data Explorer onto the form which creates
>> > SQLConnection1 and SQLDataAdapter1. So far, so good. Then, I generate
>> > my dataset and it shows up in the try below the form right beside the
>> > adapter and connection. As soon as I go and look at the form designer
>> > generated code, i can notice that this line:
>> >
>> > Friend WithEvents DsEmployee1 As Scheduling.dsEmployee
>> >
>> > already has the Scheduling.dsEmployee underlined with the wavy line
>> > telling me that there is something wrong with it. I switch back to
>> > design mode and the dataset is missing.
>> >
>> > Here is the error generated during compile:
>> >
>> > Type 'Scheduling.dsEmployee' is not defined.
>> >
>> > Like I said previously, I can start a new project and perform the same
>> > steps and everything works. This is a project in which I already had
>> > several forms built for but no previous data connections. Thanks for
>> > any help in figuring this one out.
>> >
>> >
>> >
>> > On Wed, 31 Dec 2003 23:51:30 -0500, "Val Mazur" <group51a@hotmail.com>
>> > wrote:
>> >
>> > >Hi David,
>> > >
>> > >Which version of VS.NET are you using? What kind of error do you get?
>> Could
>> > >you post exact steps which we could use to reproduce problem?
>> >
>>
>>
>
Hi David,
Try deleting obj and bin folder of project and the open the project.
Does your form (that holds datasets) have some code in parameterless
constructor?
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com [quoted text, click to view] "David Hearn" <dhearn@comcast.net> wrote in message
news:bj97vv0g532ssfhig0jn8q05h61o2r9idh@4ax.com...
> I am dragging my SQL Server table onto my Windows form to create my
> connection and adapter. I then go an generate my dataset and save
> everything. When I build, I keep getting compile errors and if I
> switch to code view and come back into design view or if I close the
> form and re-open it, my dataset is gone. This is driving me nuts. I
> can create a new project and drag the same table into it and
> everything is fine. What am I missing?
>
> Thanks in advance!
Ya, you are changing code inside a method reserved for vs. Any changes to
the design view will cause it to regenerate and there goes your 'fix'.
Chuck
[quoted text, click to view] "David Hearn" <dhearn@comcast.net> wrote in message
news:m5o8vvs9h6ku2r3cmhhd3nf77bpdkeriqo@4ax.com...
> That did it Chuck. That was the problem. Although it should work with
> the namespace so I would like to know why it's not. Also, when I
> remove the namespace from one of the lines that is referenceing it, it
> keeps trying to add it back. Anyone know why?
>
> Thanks!
>
>
> On Thu, 01 Jan 2004 07:13:30 GMT, "Chuck" <ceatley@austin.rr.com>
> wrote:
>
> >Sorry about that. I am talking about the expression
Scheduling.dsEmployee
> >
> >Chuck
> >"Chuck" <ceatley@austin.rr.com> wrote in message
> >news:VJPIb.21984$xU1.4192@fe1.texas.rr.com...
> >> I have also had this problem. If Scheduling is the namespace for your
> >> class, remove it. Then look at the designer. You should have the
Dataset
> >> back (at least untill the generated code is re-generated). For some
> >reason
> >> 1.1 can't seem to find a dataset within the namespace it is defined in
> >when
> >> the fully qualified name is used. If that is not a bug I don'
> >> "David Hearn" <dhearn@comcast.net> wrote in message
> >> news:t7e7vv0uhrmbh43iif6l61ke200gs63cl5@4ax.com...
> >> > I am using VS.NET 2003, 1.1 Framework. I drag a table out of my SQL
> >> > Database from the Data Explorer onto the form which creates
> >> > SQLConnection1 and SQLDataAdapter1. So far, so good. Then, I generate
> >> > my dataset and it shows up in the try below the form right beside the
> >> > adapter and connection. As soon as I go and look at the form designer
> >> > generated code, i can notice that this line:
> >> >
> >> > Friend WithEvents DsEmployee1 As Scheduling.dsEmployee
> >> >
> >> > already has the Scheduling.dsEmployee underlined with the wavy line
> >> > telling me that there is something wrong with it. I switch back to
> >> > design mode and the dataset is missing.
> >> >
> >> > Here is the error generated during compile:
> >> >
> >> > Type 'Scheduling.dsEmployee' is not defined.
> >> >
> >> > Like I said previously, I can start a new project and perform the
same
> >> > steps and everything works. This is a project in which I already had
> >> > several forms built for but no previous data connections. Thanks for
> >> > any help in figuring this one out.
> >> >
> >> >
> >> >
> >> > On Wed, 31 Dec 2003 23:51:30 -0500, "Val Mazur"
<group51a@hotmail.com>
> >> > wrote:
> >> >
> >> > >Hi David,
> >> > >
> >> > >Which version of VS.NET are you using? What kind of error do you
get?
> >> Could
> >> > >you post exact steps which we could use to reproduce problem?
> >> >
> >>
> >>
> >
>
Don't see what you're looking for? Try a search.