Solved

Report viewer ASP.NET

Posted on 2012-04-06
3
850 Views
Last Modified: 2012-04-06
Hello,

I have a problem with report viewer in my ASP.NET application.

The report have 2 dates in default parameters.

When i debug my ASP.NET application in Visual Sudio 2008 there are no error and the report is load  correctly but when i deploy the application on IIS this message appears :

The DefaultValue expression for the report parameter ‘dteDeb’ contains an error: Conversion from string "30/3/2010" to type 'Date' is not valid. (rsRuntimeErrorInExpression)

Any ideas?
Regards
0
Comment
Question by:ForumExpert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 37815490
You have a field (Edit Box / column) bound to type string and you are trying to populate date there.  The reason why date works properly in some systems is, if they perhaps type the date directly in the correct format.  If you trying to use CFL, then, it will give an error.  Check on this point.

One more point to be kept in mind is, date when saved, should go to the back end column as "yyyy-MM-dd".  Also check on this.


This may help you

http://www.c-sharpcorner.com/UploadFile/mahesh/DateFormatInCR06132007092248AM/DateFormatInCR.aspx


You can change regional setting for IIS by following way

http://www.vbdotnetheaven.com/uploadfile/asprabahar/regional-settings-for-iis/
0
 

Author Comment

by:ForumExpert
ID: 37815766
Thanks for your response techChallenger1

My parameters are in dateTime format in the report and when i load the report on my report server all is alright.

I think it's regional setting that is the problem. But, i can't change it.

Is there a solution to force regional settings in the ASP.NET application ?
0
 

Author Closing Comment

by:ForumExpert
ID: 37816169
I change the regional setting for my ASP.NET application on IIS and it works.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question