title: Where can I find Default.aspx.cs file after deploying the asp.net application
body: <p>I accidentally deleted an asp.net solution from my PC.  I need to recover it. I tried to use every File recovery softwares out there but none of them was able to recover it. </p>
  
  <p>However the website is deployed on a server. So I was able to get the binary dll from the wwwroot folder and the aspx files. I also have the deployement package that I used to publish it.</p>
  
  <p>I used <a href="http://www.jetbrains.com/decompiler/" rel="nofollow">dotPeek</a> to decompile the dll, I recovered all the classes. However only thing left is the Code Behind Default.aspx.cs. It was not available in the dll I got from the deployment.</p>
  
  <p>After some research I found out it is created at runtime in the </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\MyProject\
  </code></pre>
  
  <p>there is a file called <code>default.aspx.cdcab7d2</code> with a <code>.compile</code> extension</p>
  
  <p>I open it in notepad and this is its content:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;preserve resultType="3" virtualPath="/MyProject/Default.aspx" hash="d32ddda84" filehash="5c7767628c373188" flags="110000" assembly="App_Web_wcetn4cy" type="ASP.default_aspx"&gt;
      &lt;filedeps&gt;
          &lt;filedep name="/MyProject/Default.aspx" /&gt;
          &lt;filedep name="/MyProject/Site.Master" /&gt;
      &lt;/filedeps&gt;
   &lt;/preserve&gt;
  </code></pre>
  
  <p>So I get the <code>App_Web_wcetn4cy</code> and decompile it with dotpeek, I get a cs file but it is some sort of autogenerated file and not the code behind I had.</p>
  
  <p>Any idea where I can get the Code behind file Default.aspx.cs ? </p>
  
  <p>Thanks</p>