tags:

views:

231

answers:

1

Hi,i got an error while loading a page in asp.net.I have renamed the page before loading it.The error is as follows:-

**could not read state "obj\Debug\ResolveAssemblyReference.cache"**

Please help

+2  A: 

Sounds to me like you need to clear your ASP.NET cache directory, located in:

C: \ Windows directory \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \

Navigate to that directory and delete all folders in it.



Or Perhaps resetting your IIS will do the trick:

  1. Hit Windows-key + R
  2. Type "cmd" to open up the console
  3. Hit enter
  4. Type "iisreset" to reboot your IIS
  5. Hit enter



Or perhaps Visual Studio crapped out on you when you re-named the file. Check so see if your .aspx page is referencing it's .aspx.cs code-behind file and partial class correctly:

// First line of Default.aspx:
<%@ Page CodeFile="Default.aspx.cs" Inherits="_Default" %>

The Inherits property should be set to your partial class's name in your .aspx.cs code-behind file. The CodeFile property should point to your .aspx.cs. code-behind file.

roosteronacid