Como configurar o generate serialization assembly
Como configurar o generate serialization assembly...
Preciso acessar um web service via Stored Procedure, mas dá erro:
Msg 6522, Level 16, State 1, Procedure spChamarWsConsultaCPF, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "MinhaProcedure":
System.InvalidOperationException: Cannot load dynamically generated serialization assembly. In some hosting environments assembly load functionality is restricted, consider using pre-generated serializer. Please see inner exception for more information. ---> System.IO.FileLoadException: LoadFrom(), LoadFile(), Load(byte[]) and LoadModule() have been disabled by the host.
System.IO.FileLoadException:
at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection)
at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.Compi
leAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sourcesEntão fui tentar configurar o generate serialization assembly porém não aparece essa opção em Propriedades da minha Solution...Alguém sabe como?
Tks
Discussão (3)
Carregando comentários...