Issue with Crystal Report - c#

When I try to create crystal report "rssdk" automatically added to my file name which cause file not found error.
Can any one suggest why this is the issue.
Thank you.

Can you please show the related code
where you are facing the issue related to it...
I guess you are not able to find the file at your location and the it fails to load that file in
server.mappath("your path");

Related

Issues with Sub Reports in Crystal Reports Windows Forms?

I have developed an windows application, in which I'm using Crystal Reports to generate reports. Added some sub reports in it and it's working all fine. I have added a new report and a sub report in it, The new report is not working and causing the specific error attached in screenshot below.
I have observed in the temp folder, while generating this report, The following file is created and for my other reports no such files are created. Attached the screenshot of that also for your reference. And this file causes the issue.
Can anyone help on this as I have surfed all possible solutions and anything didn't help me out. Thanks in advance.
What version of the Crystal runtime? RDC?
Does your report use dynamic parameters?
Does the problem go away if you change them to static parameters?

C# solution and source file corrupted due to windows system crash

I am using Windows 7 and Visual Studio 2010.
My system crashed. Now, I am not able to open my C# project solution file.
The source file also corrupted. In Notepad++, its showing NULL characters. However, size of the file is correct.
How can I solve this problem? I really need the project, as it is very important to me.
EDIT:
I find the solution. I used this program (http://ilspy.net/) and able to find the source code from its binary file. Thanks to everyone.
I found solution. I used this program (http://ilspy.net/) and able to find the source code from its binary file.
If the project is corrupted it's likely gone and you'll need to look to your backups.
I've used a few different text editors. I find TextPad to be the best at opening files. I'm even able to open locked files with TextPad. I've been using it for years and I Love It.
Good Luck

Parser Error Message: Could not load type

We are working on a Web Application.We are using ASP.net with c# (3.5 framework). We are Continue getting this error on a specific page
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Page Name'.
Each time we build the solution & upload the file,it will work and then suddenly after 2 to 3 days same problem again.Please help me resolve the issue.Thanks in Advance.
We found 2 things,may be that will help in future who will face an issue.
a)The file in which we have changed it was not updated properly,so
that's why It was causing an error,so project .dll has updated but
that page was not updated properly.
b)That page Excluded from the project.
so Please keep these thing in your mind.Most of the cases files was not updated.
Thanks.
This happened to me after creating a new page. It turns out I was running under x86 CPU instead of Any CPU mode under the Configuration Manager. When testing in debug mode the application was running against the local bin, but the file was actually being placed in the bin/x86 directory until I reconfigured it.
It sounds to me like there is some other software on the machine (anti-virus, backup, indexing software, ???) that is modifying the page source.
You could try making the directory or file readonly after uploading it to see if that resolves the problem.
Check the Inherits property of your page directive. It may have a number of attributes, but I suspect it will contain at least the following:
<%# Page Language="C#" Inherits="Page Name" %>
Change the value of Inherits to the fully qualified name of the class outlined in the page's code behind file, i.e. something like: MyProject.MyFaultyPage. If you don't have a code behind file for that page, you can inherit System.Web.UI.Page.
Close Visual Studio and select the solution folder and uncheck Readonly that will solve your issue!

Unable to find the report in the manifest resources - Crystal Report / C#

I have a windows application written in C# and am trying to display crystal report using crystal report viewer. The name of my report is "receiptReport" and I am using following line to show report in viewer:
receiptReport rpt = new receiptReport();
crystalReportViewer.ReportSource = rpt;
I am receiving following error: Unable to find the report in the manifest resources. Please build the project, and try again.
I have tried by setting Build Action of report file 'receiptReport.rpt' to Embedded Resource but still now luck.. Im using VS2010..
A lot of things go wrong with CR after a lot of googling one of these fixes will solve the problem.
1) Full FullResourceName property in the reports code file (.cs) will be wrong if the containing folder(s) has spaces in its name. The best fix is to rename the folder to remove spaces if you manually edit the code file the error will keep coming back
2) Make sure the build property of the rtp file is set to Embedded Resource
3) Use Developer Express for reporting and avoid all headaches in the first place
Well... I had the same problem.
My solution was to edit the properties of the Report, and change the Custom Name Space.
Lets say that I was caling the report from Name Space "A", and my report was in the same Tool Name Space but in other DLL.
So, I've cleared the Custom Name Space... and rebuilt everything.
Problem solved for me.
I received the same "Unable to find the report in the manifest resources" error in VS 2010 after manually copying *.rpt and *.vb files into a different solution's directory.
After checking the embedded resource setting everyone speaks about in this post (it was already set to embedded resource),
I solved the problem by right-clicking the .rpt file in Solution Explorer and selected "Run Custom Tool".
Name the Folder name which contains the Crystal Report, without Space.
For Eg: Folder Name "Report Section" as "ReportSection"
My issue was that the directory's name where my reports was located was all numbers in order to correspond to the client codes we use. So what happened was that Visual Studio named the class Reports._1234567, while my directory was "\Reports\1234567". When I renamed the folder "_1234567" then the folder matched the class name and everything worked fine.
In the report's code behind the FullResourceName property is this:
public override string FullResourceName {
get {
return "app700.Reports._1234567.CrystalReport1.rpt";
}
set {
// Do nothing
}
}
The underscore character was added by VS because you can't have a class name that does not start with a letter or underscore.
This is a silly mistake done by a number of programmers.
It actually happens only when you transfer or change a project or report from one project to another project.
"Unable to find the report in the manifest resources - Crystal Report / C#"
Solution:
Go into the project's Report Form's .CS file
Now You have:
public override string FullResourceName
{
get
{
//Note this path it must be yours project name Or full path of Crystal report
return "FullPath_from_project_name.Crystalreport.rpt";
}
set
{
// Do nothing
}
}
I"m deadly sure you must Error free
If not mail me with Error:kapil.dev824#yahoo.com
My problem was solved by removing a folder which contain space .
after i change it then this error is gone.
:)
VS2010 in VB.Net. In the Solution Explorer window, I moved the .rpt file from the root folder to a sub folder for reports. This fixed the error for me.

C# .net -> SQLite error: Unable to open the database file

I'm getting "System.Data.SQLite.SQLiteException: Unable to open the database file." when I attempt to access the database to save a record upon the "first" opening of my program.
Here's the thing, it works fine when debugging locally in Visual Studio, but stops working when I package the program in an installer, and then install the program somewhere.
I was guessing that it was the location of the database, which I just have set at database.s3db without a path, because it is stored next to the program's exe, but how could that cause problems?
I'm at a loss, any further ideas or suggestions for solving this problem would be greatly appreciated.
Maybe you are installing the program in a folder which the user doesn't have write permissions so cannot modify the database file.
Please update your DataSource Format like this :
#"C:\Users\Mehmeto\Documents\Visual Studio 2015\Projects\......\bin\myDB.sqlite";
Where the directory points to where your project is located.

Categories