<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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>.NET Framework</title><link>https://www.dotnetzone.gr:443/cs/forums/14/ShowForum.aspx</link><description>Θέματα για threading, remoting, reflection, exception handling, security, regex κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Webapplication που στέλνει mail ... ok σε μένα ... error στο hosting</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10733.aspx</link><pubDate>Fri, 17 Mar 2006 03:00:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10733</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10733.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=10733</wfw:commentRss><description>Καταρχήν, το σφάλμα φαίνεται άσχετο με το email. Κάτι δεν πάει καλά με το viewstate. Το μήνυμα αναφέρει τους λόγους που μπορεί να προκαλέσανε το σφάλμα, να τρέχεις σε cluster . Είσαι σίγουρος ότι δεν φταίει κάτι απ' όλα αυτά? &lt;br /&gt;&lt;br /&gt;</description></item><item><title>Webapplication που στέλνει mail ... ok σε μένα ... error στο hosting</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10704.aspx</link><pubDate>Thu, 16 Mar 2006 18:16:34 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10704</guid><dc:creator>dtakis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10704.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=10704</wfw:commentRss><description>Έγραψα τον εξής κώδικα για να στέλνω mail από μία φόρμα:&lt;br&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;%@ Page Language=&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"C#"&lt;/span&gt; ContentType=&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"text/html"&lt;/span&gt; ResponseEncoding=&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"iso-8859-7"&lt;/span&gt; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Import Namespace=&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"System.Web.Mail"&lt;/span&gt; %&amp;gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script runat=&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"server"&lt;/span&gt;&amp;gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;void&lt;/span&gt; btnSubmit_Click(Object sender, EventArgs e) {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        MailMessage objEmail &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;new&lt;/span&gt; MailMessage();&lt;br /&gt;&lt;br /&gt;        objEmail.To &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"test@test.gr"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        objEmail.From &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; txtFrom.Text;&lt;br /&gt; &lt;br /&gt;        objEmail.Subject &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"Μήνυμα από την φόρμα Επικοινωνίας"&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;        objEmail.Body &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; txtName.Text &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; &lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;", Τηλέφωνο: "&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; txtPhone.Text &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt;&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"\n "&lt;/span&gt;, email: &lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;" + txtFrom.Text + "&lt;/span&gt; : &lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;" + txtComments.Text;&lt;br /&gt;&lt;br /&gt;        objEmail.Priority = MailPriority.High;&lt;br /&gt;&lt;br /&gt;        objEmail.BodyFormat = MailFormat.Html;&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;                SmtpMail.SmtpServer = "&lt;/span&gt;localhost&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        try{&lt;br /&gt;&lt;br /&gt;            SmtpMail.Send(objEmail);&lt;br /&gt;&lt;br /&gt;            txtMessage.Text="&lt;/span&gt;Ευχαριστούμε για την παρατήρησή σας&lt;span style="color: #666666;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;";&lt;br /&gt;&lt;br /&gt;            txtName.Text="";&lt;br /&gt;&lt;br /&gt;            txtFrom.Text="";&lt;br /&gt;&lt;br /&gt;            txtPhone.Text="";&lt;br /&gt;&lt;br /&gt;            txtComments.Text="";&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        catch (Exception exc){&lt;br /&gt;&lt;br /&gt;            txtMessage.Text="&lt;/span&gt;Αποτυχία αποστολής: " &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; exc.ToString();&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;        &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;, ο οποίος λειτουργεί κανονικά σε μένα που βάζω το smtp του παροχέα μου για να στέλνει τα mail αλλά στο hosting που έχω βάλει localhost μου βγάζει το εξής η εφαρμογή:&lt;br&gt;&lt;br&gt;&lt;span&gt;&lt;h1&gt;Server Error in '/' Application.&lt;hr&gt;&lt;/h1&gt;

            &lt;h2&gt; &lt;i&gt;Unable to validate data.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;

            &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;

            &lt;b&gt; Description: &lt;/b&gt;An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code. &lt;br&gt;&lt;br&gt;

            &lt;b&gt; Exception Details: &lt;/b&gt;System.Web.HttpException: Unable to validate data.&lt;br&gt;&lt;br&gt;

            &lt;b&gt;Source Error:&lt;/b&gt; &lt;br&gt;&lt;br&gt;

            &lt;table bgcolor="#ffffcc" width="100%"&gt;
               &lt;tr&gt;
                  &lt;td&gt;
                      &lt;code&gt;
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.&lt;/code&gt;

                  &lt;/td&gt;
               &lt;/tr&gt;
            &lt;/table&gt;

            &lt;br&gt;

            &lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br&gt;&lt;br&gt;

            &lt;table bgcolor="#ffffcc" width="100%"&gt;
               &lt;tr&gt;
                  &lt;td&gt;
                      &lt;code&gt;&lt;/code&gt;&lt;pre&gt;[HttpException (0x80004005): Unable to validate data.]&lt;br&gt;   System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32&amp;amp; dataLength) +196&lt;br&gt;   System.Web.UI.LosFormatter.Deserialize(String input) +60&lt;br&gt;&lt;br&gt;[HttpException (0x80004005): Authentication of viewstate failed.  1) If this is a cluster, edit &amp;lt;machineKey&amp;gt; configuration so all servers use the same validationKey and validation algorithm.  AutoGenerate cannot be used in a cluster.  2) Viewstate can only be posted back to the same page.  3) The viewstate for this page might be corrupted.]&lt;br&gt;   System.Web.UI.LosFormatter.Deserialize(String input) +118&lt;br&gt;   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102&lt;br&gt;&lt;br&gt;[HttpException (0x80004005): Invalid_Viewstate&lt;br&gt;	Client IP: 193.92.136.93&lt;br&gt;	Port: 3907&lt;br&gt;	User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1&lt;br&gt;	ViewState: dDwtMTA3MjQ4NzkwNzs7Pr0SIwTwykBmeE36gkwOZ+tYiXEv&lt;br&gt;	Http-Referer: http://www.fiberfun.com.gr/contact.aspx&lt;br&gt;	Path: /contact.aspx.]&lt;br&gt;   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448&lt;br&gt;   System.Web.UI.Page.LoadPageViewState() +18&lt;br&gt;   System.Web.UI.Page.ProcessRequestMain() +447&lt;br&gt;&lt;/pre&gt;

                  &lt;/td&gt;
               &lt;/tr&gt;
            &lt;/table&gt;

            &lt;br&gt;

            &lt;hr&gt;

            &lt;b&gt;Version Information:&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Έχετε καμία ιδέα τι φταίει που δεν μπορεί να κάνει validation?&lt;br&gt;</description></item></channel></rss>