Very strange situation with CrystalReport and / or Visual studio 2010 I don’t know, maybe .Net Framework

I ran into a very strange problem. It seems very funny looking like some things are fun with me. I am using Crystal-Report Version 13.0.2000.0 and Visual Studio 2010. The number of days ago I had an error related to my Crystal-Report, which was:

Could not load file or assembly: /// C: \ Program Files (x86) \ SAP BusinessObjects \ Crystal Reports for .NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll 'or one of its dependencies. The system cannot find the specified file.

After googling, I found a solution , then I added the following code to the app.config file and worked fine, I had no error, no exception.

<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime Version="v4.0" sku=".NETFramework, Version=v4.0" /> </startup> 

Today, when I wanted to use the same solution in my other project, he showed a message that I have to download .NetFrwamework 4.0 and it forces the project to not start. I thought I missed something in the configuration, so I went to see what configurations I made in the previous project. An interesting point here, when I opened the project, it shows me the same message for downloading .NetFramework 4.0, while it worked very well a few days ago, and I have no problems with that. But now.....

I do not know what's the problem. Any advice would be helpful.

+6
source share
3 answers

After spending many hours, I solved my problem, I have no idea how? !! but it no longer throws any exceptions. What I've done:

  • I am removing app.config.
  • I changed the structure to 3.5, then compile it.
  • Delete all associated project files in the AppData / Local / Temp / folder (Windows 7).
  • I changed it to 4.0 (it generated app.config), then compiles it, it will automatically add the following code:

      <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime Version="v4.0" sku=".NETFramework, Version=v4.0" /> </startup> 

I ran the application without any errors or exceptions. I don’t know what the problem is, but by following these steps, I fixed my problems.

+6
source

Only one thing may be useful for someone: to use Crystal Reports in VS 2010 you must use Framewok 4.0 (not Framewok 4.0 user profile)

+1
source

You can create the "dotnet1" folder in C: \ Program Files (x86) \ SAP BusinessObjects \ Crystal Reports for .NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 and copy the dll crdb_adoplus.dll into it. this solution worked for me.

-2
source

Source: https://habr.com/ru/post/898434/


All Articles