Link to home
Start Free TrialLog in
Avatar of Daniel Wilson
Daniel WilsonFlag for United States of America

asked on

ASPX Redirect confusion

One of my customers runs an ASP.Net site.  The code is from Visual Studio 2005, the OS is Win 2003 SP2, and the IIS version is 6.0.

One of her folders is MySite_Info and under that she has Blog.aspx.

Every attempt to go to MySite_Info/Blog.aspx results in an error-based redirect  with the querystring ?aspxerrorpath=/MySite_Info/Blog.aspx.  Her MySite_Info folder is configured to send 404's back to the home page.  That setting is being triggered ... BUT the PAGE is THERE!

The permissions on that file are the same as on other files in the same folder.

What would trigger the redirect?

Thanks!
Avatar of Daniel Wilson
Daniel Wilson
Flag of United States of America image

ASKER

OK, I got a little further.  With CustomErrors Mode="RemoteOnly",  I see what's wrong.

Kind of.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'SiteName.database.VSS`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.vwzdvpzh, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error:

 

Line 52:     // and the Pick
Line 53:     protected void LoadFields() {
Line 54:         DataTable dt = PickDB.GetRandomPicks(1, Master.vsi);    // get the next random pick
Line 55:         try {
Line 56:             int id = Util.ToInt(dt.Rows[0]["LayoutID"]);
 
Line 54 is the one it's complaining about.  But that's a REALLY weird assembly name to be missing.  And ... this thing was working a few months ago ...
per http://stackoverflow.com/questions/496269/asp-net-page-says-i-need-to-reference-an-assembly-that-does-not-exist

I will try deleting the temp files from C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\ but some are locked.  I think I'll need to take IIS down for a couple minutes to do so.
ASKER CERTIFIED SOLUTION
Avatar of Sanjay Santoki
Sanjay Santoki
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wrong answer.  Clearing that temp folder accomplished nothing.
Actually ... clearing the temp folder did get me to a different error message.  I'll try working through that.  Clearing the Bin folder unfortunately took down the whole site, so I put the DLL's back there.
If you clear temp file; i would compile your website and generate supported files again...
Doesn't that compilation happen automatically?

The DLL's in the Bin folder were controls or libraries referenced by the project, not the DLL(s) for the project itself.
Partial solution ... thanks!