snelson
02-12-2007, 01:27 PM
Hello,
I'm having trouble getting my aspx pages to be found using Spring. I cam certain its a misconfiguration issue by myself but after many hours of looking I'm not having a lot of luck tracking it down. I'm hoping a fresh pair of (more competent) eyes can help me out.
I have this in my web.config:
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
</httpHandlers>
</system.web>
When deploying the app I cannot view any aspx pages. I've verified they are there under the path I am requesting. I found that taking out the httpHandler above and they work (obviously without the DI).
My web.config references a pages.xml containing page definitions. This is like:
<resource uri="~/Config/pages.xml"/>
This file is stored in the web application under the config directory.
Each page which requires DI is listed as:
<object type="Login.aspx">
<property name="Authenticator" ref="authenticationService"/>
</object>
As an aside do I need to specifiy every page whether it uses DI or not? I am thinking so as I presume the httpHandler is using this xml file to perform a lookup.
Every page is request is getting a 404 error. In addition I cannot seem to get log4net running to give me a clue where things are going wrong!
If you can help me that'd be great. Once I get up to speed with Spring.net I'll try to re-pay by helping some others out.
Many thanks
Stephen
I'm having trouble getting my aspx pages to be found using Spring. I cam certain its a misconfiguration issue by myself but after many hours of looking I'm not having a lot of luck tracking it down. I'm hoping a fresh pair of (more competent) eyes can help me out.
I have this in my web.config:
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
</httpHandlers>
</system.web>
When deploying the app I cannot view any aspx pages. I've verified they are there under the path I am requesting. I found that taking out the httpHandler above and they work (obviously without the DI).
My web.config references a pages.xml containing page definitions. This is like:
<resource uri="~/Config/pages.xml"/>
This file is stored in the web application under the config directory.
Each page which requires DI is listed as:
<object type="Login.aspx">
<property name="Authenticator" ref="authenticationService"/>
</object>
As an aside do I need to specifiy every page whether it uses DI or not? I am thinking so as I presume the httpHandler is using this xml file to perform a lookup.
Every page is request is getting a 404 error. In addition I cannot seem to get log4net running to give me a clue where things are going wrong!
If you can help me that'd be great. Once I get up to speed with Spring.net I'll try to re-pay by helping some others out.
Many thanks
Stephen