Hello everyone.
I'm working with Visual Studio 2012. I'm working in a XBAP Project (WPF Browser App.)
When i try to load the report in the application, Visual Studio gives me this message:
"Could not load file or assembly 'file:///C:\Program Files(x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XL 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies".
In the Properties Project, the NET Framework version is .NET Framework 4.5.
Looking for in internet, i read i must add this code in App.config:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
But i could not find the App.config file. So, i changed the .NET Framework version to .NET Framework 4.0 and then i could find the App.config file in the Solution Explorer.
When i open the file, i read this:
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
And, this part i don't understand well, I must add or REPLACE.
I tried with:
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
and with,
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0"/>
</startup>
but i can't solve the problem.
Please, give me some guide to solve it.
Thank you!