Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Report viewer ASP.NET

Posted on 2012-04-06
3
Medium Priority
?
864 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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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