in an effort to reduce strings in the view I'm trying to create some
helper methods (not helper like I FormHelper/AjaxHelper/HtmlHelper)
like
<%=Url.create<MyController>(x=>x.index())%>
which would produce a url "/my/index.mvc"

this works within controllers and tests, but when I place this in
aspview views and compile I get the following errors
Error   2       The command "copy "C:\jmeckley\Visual Studio 2008\Projects
\RetailLink.3\lib\castle\vcompile.exe" "C:\jmeckley\Visual Studio
2008\Projects\RetailLink.3\src\RetailLink.Web\bin\"
"C:\jmeckley\Visual Studio 2008\Projects\RetailLink.3\src
\RetailLink.Web\bin\vcompile.exe" /r:"C:\jmeckley\Visual Studio
2008\Projects\RetailLink.3\src\RetailLink.Web\"" exited with code -1.
RetailLink.Web

and

message from the compiler:
Could not compile.
System.Exception: Error while compiling views:
On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 51, Error CS1525:
Invalid expression term '>'
========================================

On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 52, Err
or CS1026:
) expected
========================================

On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 61, Err
or CS1002:
; expected
========================================

On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 61, Err
or CS1525:
Invalid expression term ')'
========================================

On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 62, Err
or CS1002:
; expected
========================================

On '\layouts\default.aspx' (class name: layouts_default) Line 70,
Column 62, Err
or CS1525:
Invalid expression term ')'
========================================

   at
Castle.MonoRail.Views.AspView.Compiler.AbstractCompiler.ThrowIfErrorsIn
(CompilerResults results, IEnumerable`1 files)
   at
Castle.MonoRail.Views.AspView.Compiler.AbstractCompiler.InternalExecute
()
   at Castle.MonoRail.Views.AspView.Compiler.OfflineCompiler.Execute()
   at Castle.MonoRail.Views.AspView.VCompile.VCompile.Main()

when I use vcompile at the command line.
from what I can tell it does not like the generic arguments. Is this
expected? it doesn't make sense that AspViewBase can use generics but
vcompile cannot.
--~--~---------~--~----~------------~-------~--~----~
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