Web.config file?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Web.config file?

Post by gio50000 » Thu Apr 09, 2009 8:49 am

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
Thank you,
Gio

User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Re: Web.config file?

Post by gio50000 » Fri Apr 10, 2009 6:50 am

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
Thank you,
Gio

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Web.config file?

Post by jmestep » Fri Apr 10, 2009 7:22 am

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Web.config file?

Post by mazhar » Fri Apr 10, 2009 7:31 am


User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Re: Web.config file?

Post by gio50000 » Fri Apr 10, 2009 8:51 am

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
Thank you,
Gio

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Web.config file?

Post by jmestep » Fri Apr 10, 2009 10:19 am

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Re: Web.config file?

Post by gio50000 » Fri Apr 10, 2009 2:06 pm

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
Thank you,
Gio

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Web.config file?

Post by jmestep » Sat Apr 11, 2009 6:41 am

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Re: Web.config file?

Post by gio50000 » Mon Apr 13, 2009 9:28 am

Guys,

Any other ideas on how to use form tags in your site without experiencing the issues I had in this thread?

Gio
Thank you,
Gio

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Web.config file?

Post by mazhar » Mon Apr 13, 2009 10:53 am


Post Reply