Unsupported Operation. A document processed by the JRC engine cannot be opened in the C stack. - crystal-reports-2010

My problem seems similar, but the situation is different. I'm using Windows Server 2003 64 Bit with Visual Studio 2010, Crystal Report 13.02.456 Runtime (64 Bit) for framework 4.0 and Crystal reports version for Visual studio 2010.
The report works perfectly in debug mode.
1.But when it is deployed on IIS at first it started giving jscript 'bobj' missing error.
2.Later I searched the internet and copied crystalreportviewer13 folder from IIS folder to my application root folder.
3.The error changed to 'Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.'
Any help would be great, as i am unable to find any solution yet.

This problem can be caused by the path being incorrect when loading the rpt file. Could probably be other things too, but certainly that's one thing to check first.
See forum posts here, here and here

Related

Error message in VS2013 Ultimate edition

I'm getting the following error message
Cannot access a disposed object. Object name: 'MarshalingWindowFrame'.
This message came when I tried to load a SLN file into VS2013.
What is the reason?
I am using VS2013 Ultimate with Update 4 on Windows8.1 pro x64 bit OS (8GB RAM, 500GB HDD)
If you get that when opening a solution, either an addon is bugging out or (worse, but less likely) you found a bug in VS itself. Try safe mode and see if that helps.
If however you get the error when opening a form rather than the solution itself (remember opening a solution loads the various forms), there's a bug in an user control that's trying to access a disposed object. Remember that user controls run as binaries when hosted in VS, so make sure you put actual code inside guards that require you not to be in design mode.
Was that project created in the earlier versions or in the Visual Studio 2013 Preview? Because, if you update this project from Visual Studio 2013 Preview, you have to check the update procedure (http://blogs.msdn.com/b/lightswitch/archive/2013/08/12/upgrading-your-lightswitch-projects-raghuveer-gopalakrishnan.aspx) first, perhaps it can give some hints why this happens.

OLE initialization failed - MFC Visual Studio 2010 Windows 7

I have a Visual Studio 2010 solution for an MFC application that used to run just fine on my Windows 7 machine. Today when I tried to run it, although it still compiles successfully, it gives me the following error on launch:
OLE initialization failed. Make sure that the OLE libraries are the
correct version.
Then the application closes. After some debugging, I found that the error occurs inside AfxOleInit as a result of the call to OleInitialize (return value RPC_E_CHANGED_MODE).
This application was actually provided to us by one of our vendors - so I did not write the code, and I personally have very little experience with MFC. What has me stumped is that the source code has not changed since the last time I ran it on this same machine (which was months ago). The only thing I can think of is that I have installed Visual Studio 2012 (alongside 2010) on this PC since the last time I successfully ran this application - could this have indirectly messed up references or DLL versions?
After spending some time Google searching for a solution and coming up with nothing, I am turning to you for any tips or suggestions you may have. Thanks in advance for your time and assistance.

VS2010 depends on SQL Server Compact 3.5 for IntelliSense?

I've just recently installed VS2010 Professional (trial) on my WinXP machine. Knowing that I only needed it for a VC++ project (with no databases), I "unchecked" the install options for SQL Server.
However, when I try to create a new project (I've tried all variations of MFC and Win32 project types), I am presented with a lovely error message box:
An error occurred while creating or opening the C++ browsing database file c:\path-to-project\testProject.sdf. IntelliSense and browsing information will not be available for C++ projects.
Ensure that Microsoft SQL Server Compact 3.5 is installed and that no other applications are accessing the file. If this problem persists, delete the file and reopen the solution.
If I hit "Ok" VS will still allow me to "develop," except for when I try to add an event handler to a control. Then I am given:
An error has occurred in the script on this page.
The solution's source code database may not have been opened. Please make sure the solution is not open in another copy of Visual Studio, and this its .sdf file is not read only.
Should I have checked the install SQL Server option? If so, why? I don't want it, nor will I be using it. Or rather, what do I need to do to make things work without the errors?
EDIT/Solution
So, it turns out that since the machine I was installing on is not connected to the internet, it was not getting those "wonderful" Microsoft updates, which coincidentally would've installed SQL Server Compact for me! much thanks to #ErikEJ for the clarification.
You have to install Sql Server Compact 3.5 with your Visual Studio because MFC application projects use a temporary database by default. IntelliSense, F12, Shift+F12 and viewing class diagrams will not be available without this database.
IntelliSense will still work when developing c# applications, but not when developing MFC applications.

Visual Studio 2010 Build Fails to File Copy Error

I'm building a project in Visual Studio 2010 and the build fails because it cannot copy the assemblyname.dll file from obj to bin folder. The exact error message is:
Error 7
Unable to copy file "obj\Debug\AssemblyName.dll" to "bin\AssemblyName.dll". The requested operation cannot be performed on a file with a user-mapped section open.
I think this is because the previous file in bin-folder is not accessible. When I try to delete the file manually, I get an error "The action can't be completed because the file is open in another program". If I try to see what application locks the file with Unlocker, I don't get any results (No Locking handle found).
If I restart Visual Studio, the error goes away but happens again after a build or two. Goes without saying that this is seriously slowing me down. Any advice how to start solving this?
VIsual Studio 2012 on Windows 8. I was receiving the same error message on my project. Restarting Visual Studio or cleaning the obj folder manually did not help. Finally I closed all open files (Windows -> Close All Documents) and the problem went away.
This behavior was due to a newly installed Visual Studio extension called Visual Studio Achievements (http://visualstudiogallery.msdn.microsoft.com/bc7a433b-b594-48d4-bba2-a2f24774d02f)
I noticed that the .pdb file was locked by FxCop (using Unlocker) and I think that the Achievements -extension uses it. After disabling the extension I've no longer got the error mentioned above.
This bug has been fixed in recent versions of the extension (>1.7). It was released as a beta, btw...
This behavior of VS happen very often even on my computer (and on computers of my coworkers).
In my experience it happen more frequently when:
I have some form opened in design when i compile
I stop the execution od the application by pressing the "stop" button
in VS instead of exiting the application
So, closing the form in design before compile, and exiting the application instead of stopping it, somewhat mitigate the issue... but it still happen :-|
My computer is Win 7 x64 SP1 with VS 2010 SP1, 8Gb ram, and no swap file
Platform: Windows 8 Pro, Visual Studio 2012
I found that I receive this error when I am accessing the folder in Windows Explorer.
I was creating PDF documents with Visual Studio 2012. To review the sample document I would right click in Solution Explorer and use Open Folder in File Explorer.
On Windows 7 I would get a SYSTEM.IO error if the actual PDF document was open in Adobe Reader which is expected. With Windows 8 I found that I receive the above error if I have the folder open. I suspect there is a conflict with the Windows 8 preview.
If I close the folder and run the program it works fine.
Check if you open the dll in visual studio.
I open the dll in visual studio and this error happen!!

Crystal Reports in Visual Studio 2010

I just made the move to Visual Studio 2010 from 2008 and I guess I didn't do enough research before I moved. I seem to have gotten myself in quite a bind.
I knew Crystal Reports was no longer a part of 2010 but the beta was downloadable. I followed this document for deployment. My only change to this document is on the bindingRedirect element I changed the newVersion attribute value to 10.5.3700.0 because that is what is in the GAC and what was in the manifest of my 2008 project.
Unfortunately this is not working. Whenever I try to run a crystal report I get the exception :
An error has occured while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registery key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
At this point I think I am going to have to roll back and go back to VS 2008 until SAP comes out with a runtime. I can't believe there is not a work around for this as it will break so many projects that have Crystal Reports included in them.
Has anyone been able to work around this? If so, how?
Download the required package from here, install it and it will work,
Crystal Report Runtimes
Edit:
Original link no longer working. Here is this other one (http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp) from this SO answer

Resources