Solved

Report viewer ASP.NET

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now