Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've created an application and its works fine when i am running this in Visual Studio 2010 but getting an error
Quote:
String was not recognized as a valid DateTime
while adding the same web application in IIS 7.0

Can anyone please help me to solve this?
Posted

1 solution

Dear biswarup88,

Well from the message I could hypotize that your environment where you run VS has different culture settings. Possible then the parsing a string as a valid DateTime fails. Get the page in which this error occurs and try to do a culture specific parsing.

You can check this or google for some more info on parsing date time using a specific culture:
http://www.dotnetperls.com/datetime-parse[^]


Let us now if it helped.

Cheers
 
Share this answer
 
Comments
sahabiswarup 2-Nov-12 3:01am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900