PDA

View Full Version : Urls using master pages


rivaaj
05-08-2005, 08:12 AM
Hi

Apologies for posting this question again (it may have been lost in a previous post of mine). I'd like to confirm whether url's to child pages are case sensitive? I have a basic master page example, using spring, working but experience an error depending on the case of the url.

As an example:

Visiting "http://localhost/webapp/child.aspx" works fine but "http://localhost/webapp/Child.aspx" results in an exception. The object config file lists the child.aspx page as
<object type="child.aspx" parent="basePage">

</object>
</objects>


The exception raised when using the uppercase spelling is:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 198: typeName = control.GetType().BaseType.FullName;
Line 199: }
Line 200: if (ApplicationContext.ContainsObjectDefinition(typeN ame))
Line 201: {
Line 202: ApplicationContext.ConfigureObject(control, typeName);


Source File: E:\source_public\dotnet\springframework.net\Spring .Net\src\Spring\Spring.Web\Web\UI\Page.cs Line: 200

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
Spring.Web.UI.Page.InjectDependenciesRecursive(Con trol control) in E:\source_public\dotnet\springframework.net\Spring .Net\src\Spring\Spring.Web\Web\UI\Page.cs:200
Spring.Web.UI.Page.OnLoad(EventArgs e) in E:\source_public\dotnet\springframework.net\Spring .Net\src\Spring\Spring.Web\Web\UI\Page.cs:113
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


Thanks for the great work on Spring guys!

Rivaaj

Mark Pollack
05-13-2005, 02:10 PM
Hi Rivaaj,

Yes, they are case sensitive because Spring object identifiers are case sensitive. FYI, the previous post was here (http://forum.springframework.net/viewtopic.php?t=105). We didn't follow up with asking the dev group about this issue...I'll do that now.

Cheers,
Mark