I'm using Entity Framework and I have Mvc 1.0 installed.I keep getting weird errors when I try to generate a view for my details method. The first time I try to gen I get: error CS0234: Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) I rebuild and then I get: CodeTemplates\AddView\Details.tt(-1,-1) : error : The host threw an exception while trying to resolve the assembly reference 'System.Data.Entity'. The transformation will not be run. The following Exception was thrown:System.ArgumentOutOfRangeException: Length cannot be less than zero.Parameter name: length at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) Anyone have any ideas? I've searched google...I've searched the forums...I've moved the .tt templates into my solution. No luck.
View Complete Post