Page 1 of 1
Web.config file?
Posted: Thu Apr 09, 2009 8:49 am
by gio50000
Guys,
My web host is moving our AbleCommerce site to another web server. The say the AC software is using a file called web.config as the application's configuration file and must be decrypted before they can move it. Can this be done in the admin area of the software?
Gio
Re: Web.config file?
Posted: Fri Apr 10, 2009 6:50 am
by gio50000
Guys I could really use your help on this issue below.
Server error:
"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster."
Has anyone had this issue?
Gio
Re: Web.config file?
Posted: Fri Apr 10, 2009 7:22 am
by jmestep
That does happen occasionally on a dev machine and re-starting the machine could fix it. For the live site, it is better to put a key in the web.config. That key is normally picked up from the server and if you move your site to another server or run it on a web farm, you will have trouble unless you use one you have set in the web.config file.
This post talks about some of the problems and how to add a machine key.
viewtopic.php?f=42&t=7121&hilit=machinekey
If you search for machinekey on the forums, there are also posts about getting that error if you have added <form> tags to the page since there is already a set of them generated automatically.
The web.config is not encrypted, but there are other configuration files in the App_Data folder that can cause a problem with a move. There are help topics at help.ablecommere.com that deal with moving a site.
Re: Web.config file?
Posted: Fri Apr 10, 2009 7:31 am
by mazhar
Re: Web.config file?
Posted: Fri Apr 10, 2009 8:51 am
by gio50000
Gange,
mazhar - I attempted this resolution recommendations in the ASP.NET article but no luck.
jmestep - I recently added a constant contact signup form. Are you suggesting the forms tags from something like that could casuse issues?
Ideas anyone else?
Gio
Re: Web.config file?
Posted: Fri Apr 10, 2009 10:19 am
by jmestep
Yes, they could cause that. Take it off the page and see if that helps.
Here is a site that had that problem and they had to recode it.
http://www.christmasdealz.com
I believe his forum name is combra, but I'm not sure.
Re: Web.config file?
Posted: Fri Apr 10, 2009 2:06 pm
by gio50000
jmestep - That was it! I removed the constant contact sign up code and now all is well. It was added to the left side bar layout snippet.
Now, I still need a newsletter sign up form on the left side of our site. Any work around suggestions?
Gio
Re: Web.config file?
Posted: Sat Apr 11, 2009 6:41 am
by jmestep
You might be able to use the view source on the page for the link I gave you. It looks like his is inside an asp:panel. I just don't remember what he said his web person did to get it to work. He might have taken the contents from the <form> tag from CC, put that inside a conlib in the custom folder, then used that conlib in the left nav. Maybe you can pm him.
Re: Web.config file?
Posted: Mon Apr 13, 2009 9:28 am
by gio50000
Guys,
Any other ideas on how to use form tags in your site without experiencing the issues I had in this thread?
Gio
Re: Web.config file?
Posted: Mon Apr 13, 2009 10:53 am
by mazhar