When you run with debugger attached (like press F5), you can see in
the modules window which assemblies get loaded. Maybe you see
something weird (like loaded from the wrong directory or something).

You can also try fusion to see more details about the assembly
loading.
The important part of the exception is "or one of its dependencies".
With fusion I can usually figure out which dependency.

http://devlicio.us/blogs/ziemowit_skowronski/archive/2007/06/28/debugging-assembly-loading-errors.aspx
http://www.grimes.demon.co.uk/workshops/fusWSFive.htm#Example_5_1

Maybe you have to enable it first (not sure), so I don't know if you
get something like this in your exception?

"WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM
\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value [HKLM\Software
\Microsoft\Fusion!EnableLog]."


Good luck

Alwin


On Mar 20, 11:53 am, "Bill Bixby" <[email protected]>
wrote:
> I'm going to make a back up and try that. Thanks for the advice.
>
> ________________________________
>
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Wayne
> Douglas
> Sent: 20 March 2009 10:31
> To: [email protected]
> Subject: Re: Newbie help needed
>
> I don't use NH directly - I use it through AR - I get the latest source
> from SVN - build and use those DLLs in my projects - it works fine
> everytime.
>
> This can be a problem if you're not doing this already in an app that is
> using dated DLLs but I think it's the prefered/advised way of working -
> as opposed to using the DLLs shipped with the castle install download.
>
> w://
>
> 2009/3/20 Bill Bixby <[email protected]>
>
> Hi Wayne
>
> What do you mean by 'use the trunk dlls'? - Should I have one repository
> for all the latest castle and nhibernate dlls and update the references
> in all my projects from that single repository?
>
> I'm slightly concerned that if I do that some of the existing
> functionality in the projects will stop working (this is an old site
> that has had many additions over the years)
>
> Thank you for helping!
>
> Bill
>
> ________________________________
>
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Wayne
> Douglas
> Sent: 20 March 2009 08:22
>
> To: [email protected]
> Subject: Re: Newbie help needed
>
> I find using the trunk dlls and keeping that up to date is the best way
> of avoiding versioning issues.
>
> Understand you may not be able to update that project but if you can -
> it's worth spending time getting it up to date.
>
> w://
>
> 2009/3/20 Robert C. Reyes <[email protected]>
>
> Hi Bill,
>
> Check IIS if it is allowed to serve .rails files.
>
> Thanks,
>
> Robert
>
> On Wed, Mar 18, 2009 at 7:17 PM, Bill Bixby
>
> <[email protected]> wrote:
>
>         I've inherited a monorail website and I'm having problems
> viewing it locally.
>
>         My web.config file seems correctly configured but when I browse
> to a folder I get the following error:
>
>         Parser Error Message: Could not load file or assembly
> 'Castle.MonoRail.Framework' or one of its dependencies. The system
> cannot find the file specified.
>
>         Source Error:
>
> Line 338:                
> Line 339:        <httpHandlers>    
> Line 340:                          <add verb="*" path="*.rails"
> type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
> Castle.MonoRail.Framework" />
> Line 341:                          <!--<add path="*.*" verb="*"
> type="System.Web.StaticFileHandler" /> -->
> Line 342:        </httpHandlers>
>
>         The castle .dlls are all in the bin directory of my website and
> are referenced properly in all the other .net projects. Everything
> compiles too. I'm sure I'm making a simple rookie mistake but can't for
> the life of me work it out.
>
>         Any help would me massively appreciated
>
>         Thanks
>
>         Bill
>
>         Nickelodeon UK Limited is incorporated in England and Wales
> (Registered Number: 2797365) with its registered office at 15/18
> Rathbone Place, London, W1T 1HU
>
> --
> Cheers,
>
> w://
>
> Nickelodeon UK Limited is incorporated in England and Wales (Registered
> Number: 2797365) with its registered office at 15/18 Rathbone Place,
> London, W1T 1HU
>
> --
> Cheers,
>
> w://
>
> Nickelodeon UK Limited is incorporated in England and Wales (Registered 
> Number: 2797365) with its registered office at 15/18 Rathbone Place, London, 
> W1T 1HU
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to