PDA

View Full Version : HttpHandler


smhinsey
08-17-2005, 08:43 PM
Hello,

I can navigate to a page directly, but if I use SetResult to transfer to them, I receive this error:

[InvalidCastException: Specified cast is not valid.]
Spring.Web.DataModel.DataModelManager.get_DataMode l() in c:\projects\Spring.Net\src\Spring\Spring.Web\Web\D ataModel\DataModelManager.cs:112
Spring.Web.DataModel.DataModelManager.InitializeDa taModel() in c:\projects\Spring.Net\src\Spring\Spring.Web\Web\D ataModel\DataModelManager.cs:70
Spring.Web.DataModel.DataModelManager..ctor(IFeatu resAware target) in c:\projects\Spring.Net\src\Spring\Spring.Web\Web\D ataModel\DataModelManager.cs:55
Spring.Web.UI.Page.OnInit(EventArgs e) in c:\projects\Spring.Net\src\Spring\Spring.Web\Web\U I\Page.cs:88
*.browseNotebook.OnInit(EventArgs e) in c:\browsenotebook.aspx.cs:32
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Page.ProcessRequestMain() +195


The file paths are from the build directory of the latest incremental (slightly modified to protect the innocent).

Debugging this reveals that HttpContext.Current.Handler is not the PageHandler. During a normal request to the page, the HttpContext.Current.Handler is a SessionAwarePageHandler. During a SetResult-directed request, it's simply the class name of the aspx file.

Any ideas?

Thanks,
Shawn

smhinsey
08-17-2005, 11:01 PM
This issue was caused due to case-sensivity in the results mappings. Be careful! It's an exceptionally difficult issue to track down.