We help IT Professionals succeed at work.

Missing Import statements since power failure

Starr Duskk
Starr Duskk asked
I was tooling along in my web app with no problems, and my power went out and shut everything down. So I got power back, started up the app again and now my catche's are erroring:

Catch ex As Exception

Open in new window

Says I need to Import System...

however, I didn't have it Imported in the file before and it was fine.

Did I lose a an automatic setting or something? Anyone know what's going on.

Don't tell me just to import system, I know I can do that. I want to know why it worked before and not now.

Added Note: After importing system, i'm finding a lot of other pages that require imports of other libraries that weren't required before. I feel there was something included automatically somewhere that is no longer there for some reason. I pulled a backup of my web.config prior to the power loss and that doesn't help.

I saw a website that said right click properties on the project and add references, but in VB.NET I don't find a spot to add references. And when I click to Add reference to System it says it already exists.

Any ideas?

Watch Question

Obadiah ChristopherDeveloper User Interface
Close Visual Studio and try this.

Try this

 ResetSettings-- No need to provide the settings file name.
(Make sure you provide the settings file name if u have made any custom settings to Visual Studio).


Miguel OzSenior Software Engineer
Top Expert 2009
hard to say without PC access.YOur PC hard drive may be damaged.

Please try:
Restart PC.
Do a check disk.
Restart PC.
Use system restore to go to a restore point before the power failure.
Test again.
Note: If it does not work, you can try reseting VS (http://msdn.microsoft.com/en-us/library/ms247075(v=vs.80).aspx) or reinstalling VS.
ASP.NET VB.NET Developer
I took an previous backup copy and copied all of my current files to it, thus getting the settings i the project before the munge and that fixed it.
Starr DuskkASP.NET VB.NET Developer


none of others helped.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.