Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7675367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:56:45+00:00 2026-05-31T16:56:45+00:00

I have a web project working perfecly on my web server and on my

  • 0

I have a web project working perfecly on my web server and on my local machine.

I sign up on another server provider because I need to migrate my application to a better place, and when I run my application I am receiving this error message:

the conversion of a varchar data type to a datetime data type resulted in an out-of-range value

But I don’t receive this error locally nor on the other server, so I thought it would be some SQL configuration, sadly this error just occur on the code, when I run query on the database, it works perfectly. So I don’t really know what to do at all!

I think its got to be the C# .net configuration but I have no clue where to start.

Since the application is working on everywhere else and for longtime, I’ve discarded the possibility of coding problem.

By the way, the error only occur when the code executes the query on the line: sqlDa.Fill(dt);

************************* UPDATED **********************

My web.config file which sets the culture of the application is the same as on the other servers as well. This server is located in another country so the culture is the problem.

Is there anywhere else I need to change the culture for the server? or/and how can I see the culture of my sql data base?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:56:46+00:00Added an answer on May 31, 2026 at 4:56 pm

    Well guys, for everyone that helped me thx a lot..

    I solved my problem, and I doubt someone will have the same problem as mine, but anyway, here is what i did to fix it:

    You’ll Need to have full access to the server, else you would have to use the CONVERT() function on every query, and that would be too much work.

    So what I did was to change the default langue of my user on the sql server, and that solved my problem 100%

    Ps: Never store a DateTime value on another data type. With that in mind, you will not have the same problem as mine!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project where I have 2 web services that need the
On a project I'm working on we have a web application with three configuration
I have web application Project having RPC call. one RPC async is working fine.
I have a asp.net web project I am working on, and found out my
I'm working on a web project, which have to process so many client requests.
I am about to start a web project and have been working almost exclusively
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I have been working on a web services related project for about the last
I'm working on a project where we have several SOAP Web Services developed on
We have a .net 3.5 Web Application Project. It has a custom http handler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.