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
Solved

Report viewer ASP.NET

Posted on 2012-04-06
3
835 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS redirect 1 77
Get number of Files in Directory and Sub Directories 2 48
VB.NET Textbox input validation 4 37
Need syntax help building hyperlink 2 25
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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