vs2005 clobbers converted project

G

GaryDean

(my original post was inaccurate but this post accurately describes what I
think is a very bad vs2005 bug)

short description...
Deleting a dataset and recreating it from the dataadapter causes VS.Net 2005
to render the associated .resx and .vb file inoperative.

detail...
I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and
then retested the app after conversion.
The app retested successfully - all code was intact.
In the Component Designer, I then deleted a dataset from the designer, then
deleted the .xsd file from the project. Without changing anything in the
associated DataAdapter, I recreated the dataset choosing to include the
dataset in the designer.

After the above change, vs.net 2005 had removed the handles clauses from
both my Page_Load and Page_Init subs ( a seemingly random action). It had
also made major changes to the associated .resx file rendering it useless.
The page would no longer run.

Unless this can be fixed it means that vs2005 can't be used to maintain
projects that contain DataAdapters and Datasets from 1.1./2003.

Please help!
 
S

Steven Cheng[MSFT]

Hi Gary,

I've just done some further test according to the scenario you mentioned, I
did reproduce the problem you encountered. Also, it seems the problem is
somewhat caused by the Data Adapter component used in the VS2005 ide, as we
know, in vs 2005 , the new ADO.NET 2.0 model provide the
DataSet/TableAdapter pair to help retrieve datatable from backend database
which much ease the orginal work through Data Adapter/connection +
DataSet..... And seems the problem you encountered (event handler
registering code being removed...) occurs when you edit a page converted
from vs2003 , and that page contains some DataAdpater and Data Command
component objects.... Also, the page.aspx.resx file is another thing
caused by the DataAdapter and Command object, I found that when we editing
the DataAdapter will store some of the info (such as UpdateCommand Text
into the resx file), however, vs 2005 /asp.net 2.0 doesn't support such
resx file which may cause additional error....

So currently I think the recommended means is if we convert such a page
from vs2003/asp.net 1.1, it can still work without change. However, we
should not modify them through the VS 2005 editor(component designer) since
vs 2005 dosn't include them as default components in the toolbox. Instead,
we'll suggest you use the TableAdapter/DataSet pair instead.... And We can
create TAbleAdapter/DataSet separately from page in App_Code dir and use
them in page with much less code than using DataAdapter/Connection +
DataSet.....

In addition, we also recommend you change those "handles mybase.XXX" to
"handles me.XXX" since the latter is the recommended code style according
to the new asp.net page compilation model....

Thanks,

Steven Cheng
Microsoft Online Support

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


--------------------
| From: "GaryDean" <[email protected]>
| Subject: vs2005 clobbers converted project
| Date: Mon, 26 Dec 2005 10:46:56 -0800
| Lines: 31
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#qYj#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: user-vcaui3t.dsl.mindspring.com 216.175.72.125
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:367081
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| (my original post was inaccurate but this post accurately describes what
I
| think is a very bad vs2005 bug)
|
| short description...
| Deleting a dataset and recreating it from the dataadapter causes VS.Net
2005
| to render the associated .resx and .vb file inoperative.
|
| detail...
| I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and
| then retested the app after conversion.
| The app retested successfully - all code was intact.
| In the Component Designer, I then deleted a dataset from the designer,
then
| deleted the .xsd file from the project. Without changing anything in the
| associated DataAdapter, I recreated the dataset choosing to include the
| dataset in the designer.
|
| After the above change, vs.net 2005 had removed the handles clauses from
| both my Page_Load and Page_Init subs ( a seemingly random action). It
had
| also made major changes to the associated .resx file rendering it
useless.
| The page would no longer run.
|
| Unless this can be fixed it means that vs2005 can't be used to maintain
| projects that contain DataAdapters and Datasets from 1.1./2003.
|
| Please help!
|
| --
| Regards,
| Gary Blakely
|
|
|
 
G

GaryDean

Steven,
I personally have six asp.net applications having a total of about 300
complex aspx pages and the page average is about 2.5 DataAdapters. So these
1.1 applications have about 750 DataAdapter/Dataset pairs.

When you say that vs2005 is unable to maintain DataAdapters and their
associated Datasets, this is a very big surprise to me and a major
disappointment. Although I haven't evaluated the TableAdapter/Dataset
maintenance alternative yet I am worried that this will make future
maintenance of 1.1 apps much more labor intensive than if we were to stay on
1.1.

Has it been previously known, or announced that vs2005 is unable to maintain
dataadapters and datasets created in vs2003? Are there any other major
surprises in store for me?

Gary
 
S

Steven Cheng[MSFT]

Thanks for your response Gary,

As for the DataAdapter, their design-time feature mostly target the vs 2003
IDE(design-time implement dosn't change specific to 2005), so when changing
to the VS2005 environment, some of the IDE autogenerating behavior will
cause unexpected behavior in vs 2005 (ans some are conflict with new
asp.net 2.0 compilation model, such as using the page.aspx.resx to store
info....).

However, as for the event handling removing issue, it is not previously
reported, so I'll help you forward this to our dev team. Also, you can
submit problem request through the MSDN product feedback center:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

Sorry for the inconvenience it brings you and thanks for your understanding.

Regards,

Steven Cheng
Microsoft Online Support

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


--------------------
| From: "GaryDean" <[email protected]>
| References: <#qYj#[email protected]>
<[email protected]>
| Subject: Re: vs2005 clobbers converted project
| Date: Tue, 27 Dec 2005 09:10:21 -0800
| Lines: 128
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: user-vcaur7q.dsl.mindspring.com 216.175.108.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:367164
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven,
| I personally have six asp.net applications having a total of about 300
| complex aspx pages and the page average is about 2.5 DataAdapters. So
these
| 1.1 applications have about 750 DataAdapter/Dataset pairs.
|
| When you say that vs2005 is unable to maintain DataAdapters and their
| associated Datasets, this is a very big surprise to me and a major
| disappointment. Although I haven't evaluated the TableAdapter/Dataset
| maintenance alternative yet I am worried that this will make future
| maintenance of 1.1 apps much more labor intensive than if we were to stay
on
| 1.1.
|
| Has it been previously known, or announced that vs2005 is unable to
maintain
| dataadapters and datasets created in vs2003? Are there any other major
| surprises in store for me?
|
| Gary
|
|
| --
| Regards,
| Gary Blakely
| | > Hi Gary,
| >
| > I've just done some further test according to the scenario you
mentioned,
| > I
| > did reproduce the problem you encountered. Also, it seems the problem is
| > somewhat caused by the Data Adapter component used in the VS2005 ide,
as
| > we
| > know, in vs 2005 , the new ADO.NET 2.0 model provide the
| > DataSet/TableAdapter pair to help retrieve datatable from backend
| > database
| > which much ease the orginal work through Data Adapter/connection +
| > DataSet..... And seems the problem you encountered (event handler
| > registering code being removed...) occurs when you edit a page converted
| > from vs2003 , and that page contains some DataAdpater and Data Command
| > component objects.... Also, the page.aspx.resx file is another thing
| > caused by the DataAdapter and Command object, I found that when we
editing
| > the DataAdapter will store some of the info (such as UpdateCommand Text
| > into the resx file), however, vs 2005 /asp.net 2.0 doesn't support such
| > resx file which may cause additional error....
| >
| > So currently I think the recommended means is if we convert such a page
| > from vs2003/asp.net 1.1, it can still work without change. However, we
| > should not modify them through the VS 2005 editor(component designer)
| > since
| > vs 2005 dosn't include them as default components in the toolbox.
Instead,
| > we'll suggest you use the TableAdapter/DataSet pair instead.... And We
| > can
| > create TAbleAdapter/DataSet separately from page in App_Code dir and use
| > them in page with much less code than using DataAdapter/Connection +
| > DataSet.....
| >
| > In addition, we also recommend you change those "handles mybase.XXX"
to
| > "handles me.XXX" since the latter is the recommended code style
according
| > to the new asp.net page compilation model....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "GaryDean" <[email protected]>
| > | Subject: vs2005 clobbers converted project
| > | Date: Mon, 26 Dec 2005 10:46:56 -0800
| > | Lines: 31
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <#qYj#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: user-vcaui3t.dsl.mindspring.com 216.175.72.125
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:367081
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | (my original post was inaccurate but this post accurately describes
what
| > I
| > | think is a very bad vs2005 bug)
| > |
| > | short description...
| > | Deleting a dataset and recreating it from the dataadapter causes
VS.Net
| > 2005
| > | to render the associated .resx and .vb file inoperative.
| > |
| > | detail...
| > | I converted an asp 1.1 vb.net app using the vs2005 conversion wizard
and
| > | then retested the app after conversion.
| > | The app retested successfully - all code was intact.
| > | In the Component Designer, I then deleted a dataset from the designer,
| > then
| > | deleted the .xsd file from the project. Without changing anything in
| > the
| > | associated DataAdapter, I recreated the dataset choosing to include
the
| > | dataset in the designer.
| > |
| > | After the above change, vs.net 2005 had removed the handles clauses
from
| > | both my Page_Load and Page_Init subs ( a seemingly random action). It
| > had
| > | also made major changes to the associated .resx file rendering it
| > useless.
| > | The page would no longer run.
| > |
| > | Unless this can be fixed it means that vs2005 can't be used to
maintain
| > | projects that contain DataAdapters and Datasets from 1.1./2003.
| > |
| > | Please help!
| > |
| > | --
| > | Regards,
| > | Gary Blakely
| > |
| > |
| > |
| >
|
|
|
 
G

GaryDean

Steven:
Unfortunately there is a bug in your MSDN Profile center page that prevents
me, or anyone else I suspect, from reporting a bug.

It shows my profile and all of the required fields are complete however upon
hitting Continue it simply shows me the page again indicating that required
fields are not filled out - but they are. I tried filling out all fields
but that did not help.

So, because of this apparent bug I can't report the problem. can you help?

(If you need a good ASP developer to help with that site, my services are
available! :)

--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
 
S

Steven Cheng[MSFT]

Hi Gary,

So you get the error when try associating your passport with the profile,
as for those fills, you can check the one with red flag which indicate it
need fill or select a value different from the default one..... Based on
my local test, seem the page works well, I can successfully go to the bug
search page.....

Also, if you still encountering problem, you can ask for help through the
"Contact Us" link in the footer of the page....

Thanks,

Steven Cheng
Microsoft Online Support

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




--------------------
| From: "GaryDean" <[email protected]>
| References: <#qYj#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: vs2005 clobbers converted project
| Date: Wed, 28 Dec 2005 10:38:09 -0800
| Lines: 233
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: user-vcaur7q.dsl.mindspring.com 216.175.108.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:367365
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven:
| Unfortunately there is a bug in your MSDN Profile center page that
prevents
| me, or anyone else I suspect, from reporting a bug.
|
| It shows my profile and all of the required fields are complete however
upon
| hitting Continue it simply shows me the page again indicating that
required
| fields are not filled out - but they are. I tried filling out all fields
| but that did not help.
|
| So, because of this apparent bug I can't report the problem. can you
help?
|
| (If you need a good ASP developer to help with that site, my services are
| available! :)
|
| --
| Regards,
| Gary Blakely
| Dean Blakely & Associates
| www.deanblakely.com
|
|
| | > Thanks for your response Gary,
| >
| > As for the DataAdapter, their design-time feature mostly target the vs
| > 2003
| > IDE(design-time implement dosn't change specific to 2005), so when
| > changing
| > to the VS2005 environment, some of the IDE autogenerating behavior will
| > cause unexpected behavior in vs 2005 (ans some are conflict with new
| > asp.net 2.0 compilation model, such as using the page.aspx.resx to store
| > info....).
| >
| > However, as for the event handling removing issue, it is not previously
| > reported, so I'll help you forward this to our dev team. Also, you can
| > submit problem request through the MSDN product feedback center:
| >
| > http://lab.msdn.microsoft.com/productfeedback/default.aspx
| >
| > Sorry for the inconvenience it brings you and thanks for your
| > understanding.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "GaryDean" <[email protected]>
| > | References: <#qYj#[email protected]>
| > <[email protected]>
| > | Subject: Re: vs2005 clobbers converted project
| > | Date: Tue, 27 Dec 2005 09:10:21 -0800
| > | Lines: 128
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: user-vcaur7q.dsl.mindspring.com 216.175.108.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:367164
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Steven,
| > | I personally have six asp.net applications having a total of about 300
| > | complex aspx pages and the page average is about 2.5 DataAdapters. So
| > these
| > | 1.1 applications have about 750 DataAdapter/Dataset pairs.
| > |
| > | When you say that vs2005 is unable to maintain DataAdapters and their
| > | associated Datasets, this is a very big surprise to me and a major
| > | disappointment. Although I haven't evaluated the TableAdapter/Dataset
| > | maintenance alternative yet I am worried that this will make future
| > | maintenance of 1.1 apps much more labor intensive than if we were to
| > stay
| > on
| > | 1.1.
| > |
| > | Has it been previously known, or announced that vs2005 is unable to
| > maintain
| > | dataadapters and datasets created in vs2003? Are there any other
major
| > | surprises in store for me?
| > |
| > | Gary
| > |
| > |
| > | --
| > | Regards,
| > | Gary Blakely
| > | | > | > Hi Gary,
| > | >
| > | > I've just done some further test according to the scenario you
| > mentioned,
| > | > I
| > | > did reproduce the problem you encountered. Also, it seems the
problem
| > is
| > | > somewhat caused by the Data Adapter component used in the VS2005
ide,
| > as
| > | > we
| > | > know, in vs 2005 , the new ADO.NET 2.0 model provide the
| > | > DataSet/TableAdapter pair to help retrieve datatable from backend
| > | > database
| > | > which much ease the orginal work through Data Adapter/connection +
| > | > DataSet..... And seems the problem you encountered (event
handler
| > | > registering code being removed...) occurs when you edit a page
| > converted
| > | > from vs2003 , and that page contains some DataAdpater and Data
Command
| > | > component objects.... Also, the page.aspx.resx file is another
| > thing
| > | > caused by the DataAdapter and Command object, I found that when we
| > editing
| > | > the DataAdapter will store some of the info (such as UpdateCommand
| > Text
| > | > into the resx file), however, vs 2005 /asp.net 2.0 doesn't support
| > such
| > | > resx file which may cause additional error....
| > | >
| > | > So currently I think the recommended means is if we convert such a
| > page
| > | > from vs2003/asp.net 1.1, it can still work without change. However,
we
| > | > should not modify them through the VS 2005 editor(component
designer)
| > | > since
| > | > vs 2005 dosn't include them as default components in the toolbox.
| > Instead,
| > | > we'll suggest you use the TableAdapter/DataSet pair instead....
And
| > We
| > | > can
| > | > create TAbleAdapter/DataSet separately from page in App_Code dir
and
| > use
| > | > them in page with much less code than using DataAdapter/Connection +
| > | > DataSet.....
| > | >
| > | > In addition, we also recommend you change those "handles
mybase.XXX"
| > to
| > | > "handles me.XXX" since the latter is the recommended code style
| > according
| > | > to the new asp.net page compilation model....
| > | >
| > | > Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | >
| > | > --------------------
| > | > | From: "GaryDean" <[email protected]>
| > | > | Subject: vs2005 clobbers converted project
| > | > | Date: Mon, 26 Dec 2005 10:46:56 -0800
| > | > | Lines: 31
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | > | X-RFC2646: Format=Flowed; Original
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | > | Message-ID: <#qYj#[email protected]>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host: user-vcaui3t.dsl.mindspring.com 216.175.72.125
| > | > | Path:
| > TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| > | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:367081
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > | (my original post was inaccurate but this post accurately
describes
| > what
| > | > I
| > | > | think is a very bad vs2005 bug)
| > | > |
| > | > | short description...
| > | > | Deleting a dataset and recreating it from the dataadapter causes
| > VS.Net
| > | > 2005
| > | > | to render the associated .resx and .vb file inoperative.
| > | > |
| > | > | detail...
| > | > | I converted an asp 1.1 vb.net app using the vs2005 conversion
wizard
| > and
| > | > | then retested the app after conversion.
| > | > | The app retested successfully - all code was intact.
| > | > | In the Component Designer, I then deleted a dataset from the
| > designer,
| > | > then
| > | > | deleted the .xsd file from the project. Without changing
anything
| > in
| > | > the
| > | > | associated DataAdapter, I recreated the dataset choosing to
include
| > the
| > | > | dataset in the designer.
| > | > |
| > | > | After the above change, vs.net 2005 had removed the handles
clauses
| > from
| > | > | both my Page_Load and Page_Init subs ( a seemingly random
action).
| > It
| > | > had
| > | > | also made major changes to the associated .resx file rendering it
| > | > useless.
| > | > | The page would no longer run.
| > | > |
| > | > | Unless this can be fixed it means that vs2005 can't be used to
| > maintain
| > | > | projects that contain DataAdapters and Datasets from 1.1./2003.
| > | > |
| > | > | Please help!
| > | > |
| > | > | --
| > | > | Regards,
| > | > | Gary Blakely
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top