Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i was working on my asp page and suddenly the laptop turned off when i turned it on again i open my projects and i started getting several errors such as:

VB
value of type 'ASP.upload_content_aspx' cannot be converted to 'System.Web.UI.Page'.    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\homecare_content_web\252a48e8\d856e841\App_Web_3jh3gacb.2.vb

function 'GetTypeHashCode' cannot be declared 'Overrides' because it does not override a function in a base class.  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\homecare_content_web\252a48e8\d856e841\App_Web_3jh3gacb.2.vb

Class 'upload_content_aspx' must implement 'Sub ProcessRequest(context As HttpContext)' for interface 'System.Web.IHttpHandler'.    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\homecare_content_web\252a48e8\d856e841\App_Web_3jh3gacb.2.vb


and my aspx.vb page is completely cleared and i'm getting a sequence of binary numbers... all my code disappeared does anyone know how can i fix this? i can't imaging myself writing the code all over again !
Posted

Possibly these could help you.

AutoRecover[^]
Did you know... Where Visual Studio saves auto-recovered files in the case of an unexpected shutdown?[^]

If you're using any Source control(VSS, SVN or something else) then there's more possibility to recover. If not then try to use a source control now onwards.
 
Share this answer
 
Do your best with the suggestions above to recover your code. Save it off on a flash drive (or some other external device), and then when you have recovered as much of your code as possible, do a disk check.

This is probably happening because there's corruption in your file system. Maybe it was caused by the improper shutdown, or maybe your computer shut down because of the corruption - or possible failing hard drive.

Either way, a disk check is the answer.

I don't know what operating system you're using, but in windows 7 you would click start and then Computer. Locate your operating system partition (this is usually your c: drive), and right click on it. Select "Properties". Select the tools tab on the dialog box that comes up, and then click the "Check" button in the "Error Checking" Group box.

Windows will want to schedule the disk check for the next boot - click "Ok" for that, and restart your computer.

Good luck.

-Pete
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900