Hi,

I'm newbie in mono, and i tried to execute a simple ASP .NET application
that uses MonoRail Framework, and i got this error message:

*Error Message: *HTTP 500. Failed to load httpHandler type
`Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework'
*Stack Trace: *

System.TypeLoadException: Could not load type
'Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework'.
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Type:internal_from_name
(string,bool,bool)
  at System.Type.GetType (System.String typeName, Boolean
throwOnError) [0x00000]
  at System.Web.Configuration.HttpHandlerAction.LoadType
(System.String type_name) [0x00000]

I tried to tried to put the dll files(Castle.MonoRail.Framework.dll,
etc...) to the directories /usr/lib/mono/1.0 and /usr/lib/mono/2.0
and didn't work yet.

here is my Web.config:

<configuration>
        <configSections>
                <section
                name="monorail"
                
type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
Castle.MonoRail.Framework" />
        </configSections>

        <monorail>
                <controllers>
                        <assembly>GettingStartedSample</assembly>
                </controllers>

                <viewEngines viewPathRoot="Views">
                        <add 
type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
Castle.MonoRail.Framework.Views.NVelocity" />
                </viewEngines>
        </monorail>

        <system.web>
                <httpHandlers>
                        <add
                        verb="*"
                        path="*.castle"
                        
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" />
                        <add
                        verb="*"
                        path="*.rail"
                        
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" />
                </httpHandlers>
                <httpModules>
                        <add
                        name="monorail"
                        type="Castle.MonoRail.Framework.EngineContextModule,
Castle.MonoRail.Framework" />
                </httpModules>
        </system.web>

</configuration>


** I used xsp2.
*
thanks.*
*
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to