cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio (2010) has encountered an error when saving a Crystal Report

Former Member
0 Kudos

I have Visual Studio 2010 installed on a Windows 7, 64 bit machine. I am using SAP Crystal Reports, version for Visual Studio 2010. I have built a new report which consists of a picture (loaded at run time) and a detail list of items. If I build the report in its entirety and click the report tab and choose save, nothing happens. Doing the same thing again, I get an error that says 'Visual Studio has encountered an error and is searching for a solution.'. Of course, a solution isn't found, and VS re-starts. When I reload my project and reload my reports (as files, since they are not tied to the project), the work I did in the report is not there. If I make a couple of changes, then save, it saves fine. It seems to be at a certain point in the building process that CR fails to save due to 'Visual Studio searching for a solution.'

I have not been able to get past this and I am at a point now where the report does not save when I make any change. The report is a simple data dump of three fields out of thirty-one.

I have no idea how to save other than the right click and save. The reports are not part of a project, but are separate stand-alone reports. These reports are called from within the code and are built dynamically as needed.

How do I save a report?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

From your description, I am not entirely sure about how you are choosing to save the report so here are my steps.

1) in the .NET IDE I have the report in the design view

2) In the .NET IDE, I click the File menu and select "Save", or "Save As"

Alternatively, I can save the whole project. The report will be in the project's directory. E.g.;

C:\test\WindowsApplication1

Another way of saving out the report is to view it in the IDE (Main Report Preview) and export to RPT file format from there.

Perhaps an uninstall and reinstall will also help.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

0 Kudos

It may also be that because it crashes the IDE those files are still locked by the OS.

Try emptying your \temp folder and if you happen to be using a c"\temp folder, don't. It's know to cause problems. Rename it to c:\mytemp

Thank you

Don

Answers (3)

Answers (3)

Former Member
0 Kudos

To answer your questions, Ludek, I uninstalled VS 2010 and also CRVS2010. I reinstalled both (rebooting after each install). I still have the same issue, although I have found a workaround as explained in the previous post.

The machine I am running is a VMWare Virtual Machine running Windows 7 Professional, 64 bit. I have never installed any of the betas on this machine. It is a newly built virtual machine with VS2010 and CRVS2010. I don't even have MS Office or OpenOffice on this machine.

This is the error from the Event Log. I don't know if it helps or not, but thought I would give it a shot.

General Error:

Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3

Faulting module name: ntdll.dll, version: 6.1.7600.16559, time stamp: 0x4ba9b29c

Exception code: 0xc015000f

Fault offset: 0x0008454b

Error Detail:

+ System

- Provider

[ Name] Application Error

- EventID 1000

[ Qualifiers] 0

Level 2

Task 100

Keywords 0x80000000000000

- TimeCreated

[ SystemTime] 2011-01-25T19:51:18.000000000Z

EventRecordID 5020

Channel Application

Computer Win7Clean

Security

- EventData

devenv.exe

10.0.30319.1

4ba1fab3

ntdll.dll

6.1.7600.16559

4ba9b29c

c015000f

0008454b

fb4

01cbbcc8b42e7ae3

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

C:\Windows\SysWOW64\ntdll.dll

7919211a-28bc-11e0-9cd5-000c29f4fdfd

0 Kudos

Hi Again,

I've seen the error happen in ntdll for just about everything so it's not much help.

Have you ever used DebugDiag before? It's quite a useful tool for debugging these kinds of issues. It just creates a DUMP file and then you can analyze it. I can send you the PDB's for our dll's that are reported in the dump file. It will tell you it can't find them. With the PDB's it will drill into the API causing the issue, if it's one of ours.

There may be some third party dll that we have a dependency on and could be either a higher or lower version.

Disconnect from your network and disable your local firewall and anti-virus and see if it still has problems.

Run Modules also, this will produce a list of dll's we can use to compare.

Also, look in your anti-virus logs to see if it is giving you an access denied error. Process Monitor should show you also.

Thank you

Don

Former Member
0 Kudos

I am using Visual Studio 2010, Professional, programming in Visual Basic. I use SourceSafe 8.0 as my source control. The file I am working with has not been in source control, yet, though.

I have full control of the directory where I have my reports stored.

I use the Visual Studio IDE to build and modify reports, because that is all I have, now, in VS 2010. Anytime a file is changed in the IDE, a visual cue is displayed in the tab to indicate that file has been changed. The file name, 01P.rpt will then show 01P.rpt*. I know the file has changed and I can save at anytime. After saving, the * is gone.

I have installed SAP Crystal Report, version for Visual Studio 2010.

MsiMajorVersion=3

MsiMinorVersion=0

MsiBuildNumber=2600

TempFilePrefix=CR4VS_

I have found a sort of a workaround for the issue I am having. If I build the report I want in Crystal Reports XI, save it, then open it in the VS 2010 IDE and save it, it will save. I confirm the conversion to the new report format. After that, I don't have the error in saving as often. Even though I still get the error, I don't get it quite as frequently as I have been.

I have this saving issue only when I build a report in Visual Studio 2010, using Crystal Reports for Visual Studio 2010. It will initially save, but after that, any changes I make will no longer save.

Former Member
0 Kudos

OK, I have tried both suggestions. Clearing out the temp directory did not help, neither did an uninstall and re-install. I can load the reports and they have a* beside them indicating changes have been made. Newly loaded, the report does not have any changes.

So I make a change, and go to save. I get an error from Visual Studio 2010. I have right-clicked on the tab of the report. Error. I have clicked on the Save icon. Error. I have click File Save. Error. I have clicked File Save As. Error.

It does not matter what I do, reports in Visual Studio 2010 will not save. Either Visual Studio 2010 has an error or Crystal Reports has an error. In all likelihood, neither Microsoft or SAP will admit an issue on their product. It is the other product. A circular argument.

What's next?

former_member183750
Active Contributor
0 Kudos

I don't thing we've pointed at MS as bering the source of the issue. Yet...

So, what's next? Probably something you don't want to hear. But consider that you are the 1st one to report this issue so far. My impression is that this is environmental. And only way I know of possibly resolving the quandary is to uninstall CRVS2010, VS2010 and reinstall.

If the above does not help, we can move on to utilities such as Process Monitor, Modules and others.

BTW.; in all of this it is assumed that this machine never had a sniff of CRVS 2010 Beta(?).

- Ludek

0 Kudos

Are you using the Microsoft's Team foundation Server or some other source control software?

We've also seen issues where Permissions are a problem, for some reason the folder your are trying to save to is being blocked by a third party anti-virus or firewall utility.

Try running DebugDiag also to capture the devenv.exe crash and see it it tells you more. Process Monitor will also log any access denied errors.

Like Ludek indicated, first time we've see or heard anything like this from your description....

I am curious, where are you seeing the * beside the file indicating it's been modified?

And what Programming language are you using?

Thank you

Don