the views compiler tries to compile the templates one by one, if a compilation error has occured. the reason is to find the exact name of the failing file so fixing it will be easier.
try to set savefiles="false" on aspview config section, so that no file will be saved at all On Thu, Jan 29, 2009 at 4:39 AM, RyanDBair <[email protected]> wrote: > > I've been working on getting my beginnings of an AspView powered site > working on Mono 2.2's xsp2. When I actually try to load the page, I > get the following error... > > System.Exception: Error while compiling views: > On '\Home\Index.aspx' (class name: home_index) Line 0, Column 0, Error > CS0016: Could not write to file `c:\DOCUME~1\rbair\LOCALS~1\Temp > \6a5d50c\3ffacd65.dll', cause: > Could not find a part of the path "c:\DOCUME~1\rbair\LOCALS~1\Temp > \6a5d50c\3ffacd65.dll". > > and so forth for my other view files. > > > I've tried to track down where its going wrong. Here's roughly what I > observed... > > 1. Temp directory is created containing a single temp file of a random > name.tmp. > 2. gmcs starts (called by CSharpCodeCompiler) and runs with 4 > temporary cs files (I have 3 views and 1 layout). The dll is created > in the temporary directory. > 3. mono reads the newly created dll, I can only assume that its loaded > sucessfully. > 4. The dll and temp directory are deleted. Looking in the source, this > seems to be the expected behavior. > 5. gmcs starts 4 more times with a single cs file and it tries to > place it in the same temp directory which no longer exists and causes > the mentioned errors. > > Any thoughts on this? It sounds to me like the compiler should only be > called once, but I'm unsure why it's being called multiple times. > > Thanks, > --Ryan > > > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.gotfriends.co.il --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en -~----------~----~----~----~------~----~------~--~---
