Missing Import statements since power failure

Posted on 2012-08-14
Last Modified: 2012-08-22
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?

Question by:BobCSD
    LVL 20

    Assisted Solution

    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).


    LVL 35

    Assisted Solution

    by:Miguel Oz
    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 ( or reinstalling VS.
    LVL 1

    Accepted Solution

    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.
    LVL 1

    Author Closing Comment

    none of others helped.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now