asp.net - TypeInitializerException thrown by ReportDocument constructor -
i have asp .net web application has references assemblies 32-bit crystal reports runtime. (installed crredist2008_x86.msi) server on has been deployed has 64-bit crystal reports runtime. form containing crystalreportviewer throws next exception:
system.typeinitializationexception: type initializer 'crystaldecisions.crystalreports.engine.reportdocument' threw exception. ---> system.unauthorizedaccessexception: retrieving com class mill component clsid {5ff57840-5172-4482-9ca3-541c7878ae0f} failed due next error: 80070005. @ crystaldecisions.crystalreports.engine.reportdocument..cctor() --- end of inner exception stack trace --- @ crystaldecisions.crystalreports.engine.reportdocument..ctor() @ [qualifiedformname]_load(object sender, eventargs e)
while realize making dev environment identical runtime environment ideal solution, hoping there way resolve without having upgrade development environment.
would updating references crystal reports assemblies in web.config on server work?
open windows registry (regedit.exe) search 5ff57840-5172-4482-9ca3-541c7878ae0f you should find key, expand , go each kid nodes until find installation path. go path (usually c:\program ...\business objects...\bin...)
grant total permission asp .net, iis worker process, anonymous web user process accounts
you should go.
asp.net .net crystal-reports 32bit-64bit
No comments:
Post a Comment