This project is read-only.

Failing to Load Assembly

Jul 31, 2011 at 11:24 PM

I am trying to compile a simple template, however I can't to compile because the template engine can't find another assembly.

I keep getting the error message:

{c:\Windows\Temp\1xriutew.0.cs(37,27) : error CS1061: 'Glass.Sitecore.Mapper.FieldTypes.Image' does not contain a definition for 'Url' and no extension method 'Url' accepting a first argument of type 'Glass.Sitecore.Mapper.FieldTypes.Image' could be found (are you missing a using directive or an assembly reference?)}


                string output = Razor.Parse<T>(reader.ReadToEnd(), Model);
            catch(RazorEngine.Templating.TemplateCompilationException  ex){
                throw new Exception(ex.Errors.First().ErrorText, ex);

It seems like the assembly itself isn't being loaded by the compiler, any ideas?



Aug 1, 2011 at 8:34 AM

Ignore this, the issue is resolved.