Finally it starts to work after  I put the below content in the boo
file.
# Rhino Commons
Component("nhibernate.repository", IRepository, NHRepository)
Component("nhibernate.unit-of-work.factory",
          IUnitOfWorkFactory,
          NHibernateUnitOfWorkFactory,
          configurationFileName: "hibernate.cfg.xml")


On Mar 11, 3:12 pm, Ken <[email protected]> wrote:
> Correction: I find it can find Windsor.boo file but not Windsor.xml
> file.
> Now the error seems to be incorrect contents in Windsor.boo file.
>
>  Could not compile configuration! Windsor(1,1): BCE0043:
> Boo.Lang.Compiler.CompilerError: Unexpected token: <. ---> Windsor:
> 1:1: unexpected token: ["<",<98>,line=1,col=1]
>   --- End of inner exception stack trace ---
> Windsor(1,39): BCE0044: Boo.Lang.Compiler.CompilerError: unexpected
> char: '>'. ---> Windsor:1:39: unexpected char: '>'
>   --- End of inner exception stack trace ---
>
> On Mar 11, 2:57 pm, Ken <[email protected]> wrote:
>
> > Still same error after adding file Windsor.xml or Windsor.boo to the
> > path. I'm not sure what the contents should be in these files, I just
> > put the file to try if it will show different error.
>
> > BTW, what is the content in the Windsor.xml or Windsor.boo file?
>
> > On Mar 11, 1:35 pm, Ayende Rahien <[email protected]> wrote:
>
> > > By default, UoW App will look for a file called Windsor.xml or Windsor.boo
>
> > > On Wed, Mar 11, 2009 at 8:54 AM, Ken <[email protected]> wrote:
>
> > > > I want to use NHRepository in ASP.NET 3.5. But I have run into problem
> > > > setting it up.
>
> > > > For a new created ASP.NET website project. I added a Global.ascx with
> > > > its codebehind file.
>
> > > > Global is inherited from
> > > > Rhino.Commons.HttpModules.UnitOfWorkApplication in Global.asax.cs
> > > > public class Global : Rhino.Commons.HttpModules.UnitOfWorkApplication
> > > >    {
> > > >    }
>
> > > > The website project has referenced
> > > > Castle.Core,
> > > > Castle.MicroKernel,
> > > > Castle.Windsor,
> > > > Rhino.Commons,
> > > > Rhino.Commons.NHibernate
>
> > > > The complilation is succeeded not. Then I view the default.aspx in IE
> > > > and get error
>
> > > > File D:\LocalWorkspace\PerformancePortal\Windsor could not be found
>
> > > > Stack Trace:
>
> > > > [ResourceException: File D:\LocalWorkspace\PerformancePortal\Source
> > > > \Product\HTInns.PerformancePortalUnitOfWorkSite\Windsor could not be
> > > > found]
> > > >   Castle.Core.Resource.FileResource.CheckFileExists(String path) +235
> > > >   Castle.Core.Resource.FileResource.CreateStreamFromPath(String
> > > > resourcePath, String rootPath) +254
> > > >   Castle.Core.Resource.<>c__DisplayClassa.<.ctor>b__8() +64
> > > >   Castle.Core.Resource.AbstractStreamResource.GetStreamReader() +42
>
> > > > Castle.Windsor.Configuration.Interpreters.XmlProcessor.XmlProcessor.Process
> > > > (IResource resource) +137
>
> > > > [ConfigurationProcessingException: Error processing node resource
> > > > FileResource: [] []]
>
> > > > Castle.Windsor.Configuration.Interpreters.XmlProcessor.XmlProcessor.Process
> > > > (IResource resource) +371
>
> > > > Castle.Windsor.Configuration.Interpreters.XmlInterpreter.ProcessResource
> > > > (IResource source, IConfigurationStore store) +217
> > > >   Rhino.Commons.RhinoContainer.InitalizeFromConfigurationSource
> > > > (IConfigurationInterpreter interpreter, IEnvironmentInfo env) +252
> > > >   Rhino.Commons.RhinoContainer..ctor(String fileName,
> > > > IEnvironmentInfo env) +185
> > > >   Rhino.Commons.RhinoContainer..ctor(String fileName) +38
> > > >   Rhino.Commons.HttpModules.UnitOfWorkApplication.CreateContainer
> > > > (String windsorConfig) +55
> > > >   Rhino.Commons.HttpModules.UnitOfWorkApplication.CreateContainer()
> > > > +272
> > > >   Rhino.Commons.HttpModules.UnitOfWorkApplication.InitializeContainer
> > > > (UnitOfWorkApplication self) +82
> > > >   Rhino.Commons.HttpModules.UnitOfWorkApplication.Application_Start
> > > > (Object sender, EventArgs e) +35
>
> > > > I'm totally new to the Rhino tools. Any help is appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to