Report compilation error - How to prevent CS file deletion ?

Stimulsoft Reports.WEB discussion
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report compilation error - How to prevent CS file deleti

Post by Alex K. »

Hello,

For parameter expression you uses the String.IsNullOrWhiteSpace method which supported in .Net framework v.4 and higher. Please check that your project uses correct version.
If we replace this on String.IsNullOrEmpty method, preview works without any issues.

Also please check the attached archive, it is corrupted.
Thank you.
Attachments
Capture.PNG
Capture.PNG (51.25 KiB) Viewed 4703 times
kgb2013
Posts: 85
Joined: Fri Nov 01, 2013 9:52 am
Location: Earth

Re: Report compilation error - How to prevent CS file deleti

Post by kgb2013 »

Hello.

I have just tried turning it into IsNullOrEmpty, but it didn't help. Again, I get infinite queries sent to the DB. :(
If the link to the project didn't work, try this one (just use the MRT from "Bug.zip" which is attached to my previous post, not the one in the project):
http://www.sendspace.com/file/4xxdgr
(I can download the other file (Bug.zip) from your site and it seems OK, so you should be OK)

Thanks,
Kostas
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Report compilation error - How to prevent CS file deleti

Post by Vladimir »

Hello,

Sorry, we need a little more time to solve this issue.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report compilation error - How to prevent CS file deleti

Post by Alex K. »

Hello,

Please check the last prerelease build and attached report.
Also we say you in other topic about the parameters with "Sender" name. Please DO NOT USE this word as name for objects.

Thank you.
Attachments
4_1.mrt
(28.72 KiB) Downloaded 384 times
kgb2013
Posts: 85
Joined: Fri Nov 01, 2013 9:52 am
Location: Earth

Re: Report compilation error - How to prevent CS file deleti

Post by kgb2013 »

OK. Thanks.
I just thought that since C# is case sensitive, "Sender" with a capital 'S' would cause no problems.
(You have warned me about 'sender' then)


But the MRT that reproduced the error was in this post:
http://forum.stimulsoft.com/viewtopic.p ... =10#p71655
There is no 'sender' in there.

As far as I see, (if I don't miss sth), your MRT was modified only in the 'sender' variable.
I will check your latest release soon.

Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report compilation error - How to prevent CS file deleti

Post by Alex K. »

Hello,

We couldn't reproduce this bug on last prerelease build.
Please check it. If the issue still present. Please send us a sample with test data and step by step guide how to reproduce the issue.

Thank you.
kgb2013
Posts: 85
Joined: Fri Nov 01, 2013 9:52 am
Location: Earth

Re: Report compilation error - How to prevent CS file deleti

Post by kgb2013 »

Hello.

I have just downloaded and tried "SW_2014.01.17_Trial".
I can still reproduce the problem.
I have noticed that it occurs when you don't specify a user-value for parameter "Apostoleas" (when you leave it empty).
When you fill it, nothing bad happens. I don't understand why.
SSSSSSStim0.PNG
SSSSSSStim0.PNG (88.29 KiB) Viewed 4654 times
If that detail doesn't help you, I will try to make a step-by-step process when I find free time.

Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report compilation error - How to prevent CS file deleti

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample in which will be contain all necessary items for reproducing the issue - project, sql query for create database object, sql query for create a test data etc. Also please send us a step by step guide how to reproduce the issue, what variables and which value we need to set for variable in viewer.

Thank you.
kgb2013
Posts: 85
Joined: Fri Nov 01, 2013 9:52 am
Location: Earth

Re: Report compilation error - How to prevent CS file deleti

Post by kgb2013 »

Hello.

I have an update.
Download this ZIP:
http://www.sendspace.com/file/b21iz9

In the folder `DB scripts` there is a script that will create a DB.
Run it and then run the project.
When the MVC Viewer loads, put a smaller date (some years back) in the first date picker (in the user paramenters panel) and press `Submit`.

Notes:
- I use SQL Server 2008 R2.
- It seems that this problem doesn't appear when there are fewer entries in table DocumentCopy (I don't know why - perhaps sth to do with the pagination or the delay to get the result?).

Please let me know if you managed to reproduce it.

Thanks,
Kostas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report compilation error - How to prevent CS file deleti

Post by Alex K. »

Hello,

You query for Ekkrem datasource is wrong. This query causes an infinite loop. Please check and fix it.

Thank you.
Attachments
Capture.PNG
Capture.PNG (46.56 KiB) Viewed 4617 times
Post Reply