Crystal report for Visual Studio 2008 Caching old rpt file - crystal-reports-2008

I've used Visual Studio 2008 to make a desktop application that use cristal report plugin.
I've a very strange problem: I've done some change to .rpt file and copied it into executable folder files.
The old report file is correctly overwritten by new one, but when I launch the application (Windows xp pro sp3) and run Report Viewer form, I get my data displayed into old rpt file! I'm becaming crazy but I don't find a way to remove the suspected cached rpt file.
Any ideas?
Regards.

It will be still referencing to old report in the temp folder. Delete the Temp files in:
C:\Users\YourUser\AppData\Local\Temp
AppData folder is hidden, so check the option to show hidden files from control panel

Related

How to update web-installed Microsoft Visual Studio 2017 offline (saved layout)?

I have Visual Studio 2017 which was installed from the web.
Meanwhile, the corporate firewall rules changed and it's no longer possible to update the installation (download.visualstudio.microsoft.com is blocked).
At home I was able to download a complete Visual Studio 2017 layout to an external drive.
Now, how can I instruct Visual Studio Installer to use the external drive layout instead of trying to download from the web?
After googling a bit, I found some clues here and there, but never got a direct answer. I had to do some experiments until I found a very simple solution:
Open folder C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances (or equivalent in your machine). This folder should contain a subfolder with the VS2017 instance GUID (from now on referred to as VS_GUID). Note: ProgramData is a hidden folder.
(Optional) Create a backup of file C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\{VS_GUID}\state.json in another directory of your choice.
Edit file C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\{VS_GUID}\state.json (note: VS_GUID is the sub-folder name found in step 1)
and change layoutPath to your local layout folder and installChannelUri to the full path to ChannelManifest.json (which should be present in the layout folder root).
Example (when layout path is D:\vs2017layout):
(...)
"layoutPath":"D:\\vs2017layout",
"installChannelUri":"D:\\vs2017layout\\ChannelManifest.json"
(...)
Save state.json and launch vs_professional_xxxxxxxxx.yyyyyyyy.exe (or equivalent) which is located in the layout folder. If it detects the updated installation files then the "download" progress should move to 100%.
This worked for me.

How to open an .rdl file in Visual Studio?

I have an .rdl file that I need to open in Visual Studio. When I try to open this file, I got an XML file. However, I am unable to see the designer format.
I don't know which version of Visual Studio is used to create this .rdl file.
Is it possible to open a random .rdl file in Visual Studio and see the designer format and, if so, how can I do that?
Correct, the Report Definition Language is just XML. And, as with any other file, you can just open it (File/Open/File...) in Visual Studio, just like in a text editor. In order to see a designer you need to give Visual Studio a bit of context about what sort of file it is by making it part of a Report Server Project.
Install SSDT for Visual Studio if you haven't already done so
Create a new project using the 'Report Server Project' template
Copy/move the .rdl file(s) you have into the folder for the newly created project (eg ..\Visual Studio 2015\Projects\My Report Project\My Report Project)
Use the "Add Existing Item..." context menu option in Solution Explorer to add the .rdl to the project
Open report designer by double-clicking the newly added report project item(s)
For opening RDL file in designer make sure you have "
Microsoft Reporting Services Projects" Installed.
Refer this : https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio
Once you have the needed extensions (Microsoft Reporting Services, Report Designer) installed and everything updated, what worked for me was to open the .rptproj project, and then open the needed .rdl.
In my case, I was opening the folder and not the project file.
Once I opened the project directly, the reports were opening with the report editor, not the xml editor.

VS2010 devenv.exe.config issue

I am unable to open vs2010 .I have windows 7 OS and it is 32 bit machine. Event log says
Activation context generation failed for "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe".Error in manifest or policy file "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.Config" on line 13. Invalid Xml syntax.
devenv.exe.config file got corrupted lot of junk characters i do not know how it got corrupted.Reset my config setting will be my last option.I do not have any back up of the file
I tried to fix my self i know it is a bad idea.After fixing the file I am not able to save the file. I tried to find out any process has locked the file using Procmon.exe and using another software called unlockit .There is no process locked this config file.
Is there a way to regenerate the config file with out resetting it ?
The only option I can think is to create a copy of your devenv.exe.config, then regenerate the devenv.exe.config and paste the additional settings from your copy into the regenerated devenv.exe.config.
You should consider installing a backup application and regularly backing up your development machine. This will allow you to restore individual files or recover your hard disk in the event of a failure. It really is a time saver when something goes wrong.
Try to fix file with a Text Editor running as a Administrator (not windows user account, administrator for program).
Open notepad as Administrator.
Open devenv.exe.config in notepad, make changes
And Save it in same location.
It worked for me for machine.config.

Visual Studio Setup project should not delete file during uninstall

I created Visual Studio 2005 Setup project for my application. Windows Installer during installation put one xml file into AppData/myCustomFolder. I used File System Editor and added special folder - user's app data folder, then included that xml there.
When I uninstall application from Control Panel folder from Program Files is deleted, but also my xml file from AppData is deleted too. I need to leave this xml file in the AppData always, even when user re-install application.
How I could do it?
Set the Permanent property to True
Permanent Property

Visual Studio 2010 hangs up when opening a .sql file

I launch VS 2010, and simply open any ordinary (or blank) .sql file and it shows up incorrectly drawn inside the IDE. It draws the document tab, but nothing else. If I type on the keyboard, VS locks up. This only appears to be a problem with files that have the extension ".sql" and has no bearing on the actual content. I also noticed that in the Solution Explorer, those .sql files show the icon that is the same one associated with .js files.
Problem solved. I was able to resolve the problem by running the DACProjectSystemSetup_enu.msi installer found on the VS2010-SP1 ISO under the root directory. You might also need to re-install DACFramework_enu.msi and TSqlLanguageService_enu.msi.
I believe the problem was created as a result of installing SQL Server 2008 R2 after installing VS2010.
I was able to fix the issue by:
Downloading the SP1 DVD ISO from here.
Executing DACProjectSystemSetup_enu.msi from the root of the ISO.
These 2 simple steps resolved it.
Copy and Install below MSIs from VS 2010 Setup folder:
DACFramework_enu.msi
DACProjectSystemSetup_enu.msi
TSqlLanguageService_enu.msi
microsoft.visualstudio.editor.implementation clr20r3
I got mine working with the following steps
Navigate to
C:\Users\USERNAME\AppData\Local\Microsoft\VisualStudio\12.0\
Rename ComponentModelCache directory to 1ComponentModelCache1 and
the folder will be recreated later
Retry

Resources