<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>.Text (Blogs)</title><link>http://forums.asp.net/149.aspx</link><description>.Text is a powerful blogging engine that is used to host hundreds of blogs for ASP.NET 1.x.
&lt;a target="_blank" href="http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=e99fccb3-1a8c-42b5-90ee-348f6b77c407"&gt;.Text GDN Workspace&lt;/a&gt;
&lt;a href="http://aspadvice.com/SignUp/list.aspx?l=153&amp;amp;c=25"&gt;Mailing List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/3105759.aspx</link><pubDate>Mon, 20 Apr 2009 21:04:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3105759</guid><dc:creator>lordvegeta84</dc:creator><author>lordvegeta84</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3105759.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=3105759</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Where do you find that code?? i have an aplication that dos not run because this error..&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/1986628.aspx</link><pubDate>Fri, 02 Nov 2007 09:52:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1986628</guid><dc:creator>nthillaiarasu</dc:creator><author>nthillaiarasu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1986628.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=1986628</wfw:commentRss><description>&lt;p&gt;
Hi i also had the same problem my applications will be running in localhost but when i use IIS or apache it will throw the error&amp;nbsp; &lt;b&gt;String was not recognized as a valid DateTime.&lt;/b&gt;After a lot of search i finally got the solution &lt;/p&gt;&lt;p&gt;just declare ur date field as &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;System.DateTime str_date=DateTime.Parse(sel3.Text,System.Globalization.CultureInfo.CreateSpecificCulture(&amp;quot;en-AU&amp;quot;).DateTimeFormat);&lt;/p&gt;&lt;p&gt;I hope it will work fine in ur application&lt;/p&gt;&lt;p&gt;Thanks in Advance,&lt;/p&gt;&lt;p&gt;N.ThillaiArasu,&lt;/p&gt;&lt;p&gt;&lt;u&gt;http://nthillaiarasu.blogspot.com&lt;/u&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/671909.aspx</link><pubDate>Fri, 20 Aug 2004 21:10:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:671909</guid><dc:creator>Edoode</dc:creator><author>Edoode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/671909.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=671909</wfw:commentRss><description>Hi,
&lt;br /&gt;

&lt;br /&gt;
After doing some looking around in the code I changed one line in Dottext.Framework.Util.WebPathStripper
&lt;br /&gt;

&lt;br /&gt;
I replaced the private static readonly string[] dateFormats with:
&lt;br /&gt;

&lt;br /&gt;
{&amp;quot;yyyy\\/MM\\/d&amp;quot;,&amp;quot;yyyy\\/MM\\/dd&amp;quot;,&amp;quot;yyyy\\/M\\/dd&amp;quot;,&amp;quot;yyyy\\/M\\/d&amp;quot;,&amp;quot;yyyy\\/MM&amp;quot;,&amp;quot;yyyy\\/M&amp;quot;};
&lt;br /&gt;

&lt;br /&gt;
This solved my problem. I only wonder why noone else has it?!?
&lt;br /&gt;

&lt;br /&gt;
Grt,
&lt;br /&gt;

&lt;br /&gt;
  -Edo</description></item><item><title>Re: Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/671792.aspx</link><pubDate>Fri, 20 Aug 2004 19:33:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:671792</guid><dc:creator>Edoode</dc:creator><author>Edoode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/671792.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=671792</wfw:commentRss><description>Hi,
&lt;br /&gt;

&lt;br /&gt;
thanks for the reply.
&lt;br /&gt;

&lt;br /&gt;
Web.config reads: 
&lt;br /&gt;
&amp;lt;HttpHandler pattern = &amp;quot;^(?:/archive/\d{4}/\d{1,2}\.aspx)$&amp;quot; controls = &amp;quot;ArchiveMonth.ascx&amp;quot; /&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
Stack Trace: 
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
[FormatException: String was not recognized as a valid DateTime.]
&lt;br /&gt;
   System.DateTime.ParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style) +106
&lt;br /&gt;
   Dottext.Framework.Util.WebPathStripper.GetDateFromRequest(String uri, String archiveText) +164
&lt;br /&gt;
   Dottext.Web.UI.Controls.ArchiveMonth.OnLoad(EventArgs e) +61
&lt;br /&gt;
   System.Web.UI.Control.LoadRecursive() +35
&lt;br /&gt;
....
&lt;br /&gt;
 System.Web.UI.Page.ProcessRequestMain() +731
&lt;br /&gt;

&lt;br /&gt;
 I've checked globalisation settings, it all seems in order.
&lt;br /&gt;

&lt;br /&gt;
Grt,
&lt;br /&gt;

&lt;br /&gt;
  -Edo
&lt;br /&gt;</description></item><item><title>Re: Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/671632.aspx</link><pubDate>Fri, 20 Aug 2004 17:01:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:671632</guid><dc:creator>grant</dc:creator><author>grant</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/671632.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=671632</wfw:commentRss><description>In your web.config, search for a line containing ArchiveMonth in the HttpHandlers section.
&lt;br /&gt;

&lt;br /&gt;
What is that line?
&lt;br /&gt;

&lt;br /&gt;
Should be
&lt;br /&gt;

&lt;br /&gt;
&lt;pre&gt;&amp;lt;HttpHandler pattern = &amp;quot;/archive/\d{4}/\d{1,2}\.aspx$&amp;quot; controls = &amp;quot;ArchiveMonth.ascx&amp;quot; /&amp;gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;br /&gt;
Typically this is related to a globalization issue. I would also just double check that (but it also looks less likely that that's the issue since your daily archive pages pass dateformat muster).
&lt;br /&gt;

&lt;br /&gt;
Can you turn off custom exceptions and post the full exception with code lines/stack?</description></item><item><title>Error: String was not recognized as a valid DateTime</title><link>http://forums.asp.net/thread/671457.aspx</link><pubDate>Fri, 20 Aug 2004 14:02:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:671457</guid><dc:creator>Edoode</dc:creator><author>Edoode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/671457.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=149&amp;PostID=671457</wfw:commentRss><description>Hi,
&lt;br /&gt;

&lt;br /&gt;
I'm running an unmodified dotText latest version on a Windows2003 server. Whenever I click on a 'monthly archive' link I receive the error 'String was not recognized as a valid DateTime.' An example URL is http://blog.swiftalpha.com/archive/2004/07.aspx
&lt;br /&gt;

&lt;br /&gt;
The server is configured to use the English regional settings. The web.config reads '&amp;lt;globalization culture=&amp;quot;en-US&amp;quot; /&amp;gt;' as expected. I've looked around for a solution but didn't find one.
&lt;br /&gt;

&lt;br /&gt;
Anyone?
&lt;br /&gt;

&lt;br /&gt;
  -Edo
&lt;br /&gt;

&lt;br /&gt;</description></item></channel></rss>