PDA

View Full Version : سوال: علت بروز این Exeption هنگام گزارش گیری با کریستال ریپورت چیه؟



Mofid.m
چهارشنبه 15 بهمن 1393, 07:50 صبح
درود به همه دوستان
من وقتی تو پروژم اقدام به گزارش گیری می کنم این خطا رخ میده؟

متنش اینه:


System.IO.FileNotFoundException was unhandled
Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.


و این:


System.IO.FileLoadException was unhandled
Message: An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

mmbguide
دوشنبه 02 شهریور 1394, 19:31 عصر
http://scn.sap.com/thread/3606863

mmbguide
سه شنبه 03 شهریور 1394, 09:56 صبح
گویا لینک بالا کار نمیکنه :متعجب:

ولی راه حل مشکل اینه که باید کد زیر رو به فایل AppConfig اضافه کنید


<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>