codesmithtools / Templates

CodeSmith Generator Templates
http://www.codesmithtools.com/product/generator
54 stars 35 forks source link

unable to build objects using Codesmith 7 + csla 4 on VS2013 #695

Closed GoogleCodeExporter closed 4 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open template explorer and try and build any object (e.g. editable root) in 
either vb.net/c#
2.Using VS2013
3.

What is the expected output? What do you see instead?

Object window is expected, but get error message

What version of the product are you using?

CSLA 4 
Codesmith 7
VS2013

Please provide any additional information below. ERROR MESSAGE BELOW

Could not load file or assembly 'file:///C:\Users\andrew 
stellakis\AppData\Local\CodeSmith\v7.0\TemplateCache\-1745122077\jakl45ik\vxdeps
4d.dll' or one of its dependencies. Operation is not supported. (Exception from 
HRESULT: 0x80131515)
Stack Trace:
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
   at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
   at CodeSmith.Engine.Compiler.CompileResult..ctor(CompilerResults results, ISet`1 fileDependencies, Dictionary`2 metadata, TimeSpan duration)
   at CodeSmith.Engine.Compiler.CachedCompiler.Compile(CompileRequest request)
   at CodeSmith.Engine.TemplateEngine.Compile(String path, Boolean useCache)
   at CodeSmith.Engine.Remoting.TemplateSession.#Cpd(Boolean #Dpd)
   at CodeSmith.Engine.Remoting.TemplateSession.#as.#bAd()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
 --> An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
Stack Trace:

Original issue reported on code.google.com by andrew.s...@q2q-it.com on 18 Jan 2014 at 9:43

GoogleCodeExporter commented 9 years ago
Hello,

To resolve this issue, you need to unblock the zip file before extracting the 
csla templates. Please let us know if this does not resolve this behavior.

Original comment by bniemyjski on 19 Jan 2014 at 3:07

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.