YAFLogo

kimlong008
  • kimlong008
  • 77% (Friendly)
  • YAF Lover Topic Starter
14 years ago
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

UserPostedImage

When I post new topic in my forum or register new bie it alway show error.

what is error ? please help me fix it !

And Can You help me use mail server ?

I can't use to my mail server from my forum

How do I setting it ?

<!--
	SMTP setup for sending of e-mails from your forum.
	If the SMTP is SSL, you must edit the appSettings and set
	"YAF.UseSMTPSSL" to "true".
-->
<smtp deliveryMethod="mail.khotien.vn" from="Admin@khotien.vn">
	<!-- Uncomment to specify SMTP settings -->
	<network host="mail.khotien.vn" port="25" password="mypass" userName="Admin" />
</smtp>

<!--<smtp from="Admin@khotien.vn" deliveryMethod="mail.khotien.vn">
  --><!-- Uncomment to specify SMTP settings --><!--
  --><!-- network host="localhost" port="25" password="" userName="" / --><!--
  --><!--Su dung he thong mail GOOGLE APPS port 465 hoac 587 --><!--
  <network host="smtp.gmail.com" port="587" password="matkhau" userName="admin@domain.vn" />
</smtp>-->


<!-- Use this setting for development: pickup directory must be exact path -->
<!--<smtp deliveryMethod="SpecifiedPickupDirectory">
  <specifiedPickupDirectory pickupDirectoryLocation="C:\Inetpub\wwwroot\email" />
</smtp>-->
Sponsor
herman_herman
14 years ago
For the first one you need to add your own MachineKey.For example:

<machineKey validationKey="DBAEF98E532D4161826F8351C794DFD27C0F814262FD6986"
          decryptionKey="DBAEF98E532D4161826F8351C794DFD27C0F814262FD6986"
          validation="SHA1" decryption="AES" />

within section of your web.config file.You can use this site  to create your own validationkey.

For the second one check with your hosting company and see if they use any specific settings.Yours look fine to me.