tags:

views:

37

answers:

1

I have a dataset in a project which I'm using to provide databinding for winforms controls. Everything has been working fine (tableadapters with select, insert, update, delete methods provided by stored procedures) until I added another tableadapter this morning.

Since adding it, every tableadapter in the dataset broke. My project now has 63 errors reporting errors along the lines of :

Error 60 The type name 'SelectCompanyStatusesDataTable' does not exist in the type '..Search.Presentation.dsSearchTableAdapters.dsSearch' C:\Data\Visual Studio Projects\.\..Search.Presentation\dsSearch.Designer.cs 32210 33 ..Search.Presentation

(Using and to censor sensitive names)

I'm at a complete loss with regards to what has gone wrong, let alone how to fix it.

I'm wondering, has anyone seen anything like this happen before and maybe provide a few pointers for what direction I shoulod be looking in?

A: 

I have only encountered this after an unsuccessful attempt to rename a dataset's namespace -- the namespace and classnames in the auto-generated and manually generated partial classes didn't match. In the end I went for a scorched-earth policy and created a new dataset with a slightly different name, and used cut and paste to get the items of the designer in the original into the new dataset. I then deleted the original and updated all references to use the new one.

Dr Herbie
That worked, thanks :-)Still not sure why it went wrong, maybe something interrupted it when it was rebuilding the designer.cs file? Anyway, at least it's sorted
Daniel Snowden