Search code examples
asp.netvisual-studiovisual-studio-2010recovery

Visual Studio recover source file manually


I lost on of my ASP.NET usercontrol in Visual studio 2010
Is there any way to recover target file manually?
The UserControl is named billpay.ascx.
I saw some file with similar name in this directory: (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\negso.ui\b0ed5857\e612bf58)
They named as

  • billpay.ascx.f1005316.compiled
  • billpay.ascx.f1005316_CBMResult.ccu
  • billpay.ascx.f1005316_CBMResult.compiled
  • App_Web_billpay.ascx.f1005316.w4xcy81l.0.vb
  • App_Web_billpay.ascx.f1005316.w4xcy81l.1.vb
  • App_Web_billpay.ascx.f1005316.w4xcy81l.2.vb

Is there anyway to recover target file?
Auto recover window did not open for me.


Solution

  • In the same directory as you say, search for the DLL files and open them with an asp.net de-compiler like the "Net Reflector". You can then see the source code and get it back.