MikeC
07-18-2005, 08:34 PM
.NET neophyte here, and having a problem with a simple application. I'm sure it's my fault, but I've done a pretty thorough check...
I've copied the 3 files from the spring.net distribution (2 dll's, 1 xml) into a "lib" directory under my apps root dir, and added the 2 references in the project. VS.NET shows the XML well formed.
I'm at a loss; any help appreciated.
My error:
================================
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception in configuration section handler.
Source Error:
Line 10:
Line 11: <spring>
Line 12: <context type="Spring.Context.Support.XmlApplicationContext, Spring.Core">
Line 13: <resource uri="config://spring/objects"/>
Line 14: </context>
Source File: c:\inetpub\wwwroot\PdfServletTest\web.config Line: 12
--------------------------------------------------------------------------------
My web.config:
=========================================
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context type="Spring.Context.Support.XmlApplicationContext, Spring.Core">
<resource uri="config://spring/objects"/>
</context>
<objects>
<object name="FilenameProvider"
type="PdfServletTest.FilenameProvider, PdfServletTest">
<property name="FileName">c:/downloads/onlisp.pdf</property>
</object>
</objects>
</spring>
<system.web>
... (generated stuff follows)
I've copied the 3 files from the spring.net distribution (2 dll's, 1 xml) into a "lib" directory under my apps root dir, and added the 2 references in the project. VS.NET shows the XML well formed.
I'm at a loss; any help appreciated.
My error:
================================
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception in configuration section handler.
Source Error:
Line 10:
Line 11: <spring>
Line 12: <context type="Spring.Context.Support.XmlApplicationContext, Spring.Core">
Line 13: <resource uri="config://spring/objects"/>
Line 14: </context>
Source File: c:\inetpub\wwwroot\PdfServletTest\web.config Line: 12
--------------------------------------------------------------------------------
My web.config:
=========================================
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context type="Spring.Context.Support.XmlApplicationContext, Spring.Core">
<resource uri="config://spring/objects"/>
</context>
<objects>
<object name="FilenameProvider"
type="PdfServletTest.FilenameProvider, PdfServletTest">
<property name="FileName">c:/downloads/onlisp.pdf</property>
</object>
</objects>
</spring>
<system.web>
... (generated stuff follows)