Datasource disappeared and project lost....?

  • Thread starter Thread starter jer84
  • Start date Start date
J

jer84

Hi Everyone

I'm trying really hard not kill something, but I was just about to add
a new query to one of my datatables and then my datasource
disappeared... now I can't load anything and my project is essentially
useless.

There are 60 errors and the majority of them seem to revolve around my
table adapters. Here is one of them:

Error:
Type
'Maintenance_Inventory.Inventory_DataSetTableAdapters.UsersTableAdapter'
is not defined.
C:\Documents and Settings\abergje\My Documents\Visual Studio 2005
Projects\Maintenance Inventory\Maintenance
Inventory\LoginForm.Designer.vb

When I double-click that error, it brings me to this line of code:

Me.UsersTableAdapter1 = New
Maintenance_Inventory.Inventory_DataSetTableAdapters.UsersTableAdapter

It's all auto-generated code and can't be anything that I've programmed
incorrectly. It seems like a required file must have gotten deleted
somehow...? But I didn't do it...I've since restarted VS2005 and
restarted my PC...

I found this file in my recycle bin afterwards:
Inventory_DataSet.Designer.vb

The deleted date and time was the same time that everything went wrong.
I restored the file and it still won't work.

Any ideas? I've put a lot of work into this project, was nearly done
and I don't think I can bring myself to rewrite it.

Any help would be VERY much appreciated.

Jer
 
After all the time I spent investigating before I even posted this
message, I fixed the problem. But I have no idea how.

This is what I did:

When I tried to open 'Inventory_DataSet.xsd' by itself, it told me that
the source file was a 'null reference'. So I opened
'Inventory_DataSet.vb' and found that it was an empty file. I figured
that I had somehow lost the file...

For some reason, I decided to take the file I found in the recycle bin
named 'Inventory_DataSet.Designer.vb' and rename it to
'Inventory_DataSet.vb' .

After that, my project worked fine.

If you know why this happened, please let me know. Otherwise, I'm
alright and back to completing my project.

Thanks
Jer
 
Back
Top