Prasant Jinaga

Prasant Jinaga

  • 1k
  • 751
  • 425.2k

.NET Framework error

Dec 9 2011 2:06 AM
.NET Framework error

Hi,

I have an assembly which does some operations .then registered this assembly through Sql CLR

creted a stored proc which is using this Assembly

When i am executing this Proc with valid parameters its throuwing below error...

Did any one face this error before???

Msg 6522, Level 16, State 1, Procedure GenerateLoadReport, Line 0

A .NET Framework error occurred during execution of user-defined routine or aggregate "GenerateLoadReport":

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.FromSourceBatc

...

System.InvalidOperationException:

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)

at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)

at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)

at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)

at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)

at System.Web.Services.Protocols.SoapClientType..ctor(Type type)

at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()

at MSI.LoadReports.DEVRS2005.ReportingService2005..ctor()

at MSI.LoadReports.LoadReports.GenerateReport(Int32 FeedId, Int32 LoadInstanceId, String FileType, String LoadType)

at MSI.Lo...

Thanks,

Prasant


Answers (1)