Page 1 of 1

Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 12:21 am
by tonygets
Hi,

I am in the process of moving my stores to a new server and I have run into some critical issues. Both the live and new stores are not working.

I am trying to install a fresh version of AC 7.0.3 onto the new server (as per the move instructions) however I cannot run the install file /install/default.aspx). I am receiving a Error in / Server Application error message.

The staging install error can be viewed at: http://xxxxx.mytempweb.com/staging/install/default.aspx

In addition, the old version of the store is also not working now and the error message can be viewed here: (this is not as critical to troubleshoot as I need the new version up and running asap).

http://www.xxxxx.com/shop/install/default.aspx

My other store has the same issues. Here is the error message for the live store:

http://www.xxxxx.com

Please can someone provide me with guidance as to how to resolve these issues asap? If they are server issues please let me know what to instruct my hosting company?

The server does have .net 2.0 and .net 3.5 installed and I have modified the files for .net 2.0 just incase.

I have also been using this same hosting company for my websites before the upgrade and they have advised me that the servers are the same as before with the same applications etc. just faster processors and memory etc.

Thanks in anticipation of a prompt response.

Tony

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 1:19 am
by afm
tonygets wrote:Hi,

I am in the process of moving my stores to a new server and I have run into some critical issues. Both the live and new stores are not working.

I am trying to install a fresh version of AC 7.0.3 onto the new server however I cannot run the install file. The error message can be viewed at:

http://xxxxxxx.mytempweb.com/shop/install/default.aspx
Follow the instructions in the error message:

Code: Select all

To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
In addition, the old version of the store is also not working now and the error message can be viewed here:

http://xxxxxxx/shop/install/default.aspx
The message says the file (/shop/install/default.aspx) is not there. Is it?
My other store has the same issues. Here is the error message for the live store:

http://xxxxxxx
Is that URL going to the right server? The SSL certificate is one of Applied Innovations own certificates. It kind of looks like the URL is going to one of AI's own servers.
Please can someone provide me with guidance as to how to resolve these issues asap? If they are server issues please let me know what to instruct my hosting company? The server does have .net 2.0 and .net 3.5 installed and I have modified the files for .net 2.0 just incase. I have also been using this same hosting company however was upgrading to a faster server package.

Thanks in anticipation of a prompt response.

Anthony
Get is touch with AI. They are quite good at hosting and can probably figure this out quicker than anyone.

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 1:29 am
by tonygets
Hi,

Thanks for your response.

I am currently trying to work this out with appliedi. I have modified the web.config file to show the error on a remote machine but it did not work and the same page was displayed.

My major concern is trying to get a fresh install working in a new, 'clean' directory on a new staging domain (on the same server as the others) which can be viewed at http://xxxxx.mytempweb.com/stagin/install/default.aspx

I think this is related to appliedi so hopefully they can resolve this issue.

Please let me know if you have any additional advise?

Thanks and regards,

Tony

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 2:18 am
by afm
Hmmm...it is very unusual for the setting described in the error message to not work. Note that web.config is case sensitive. So "off" is not the same as "Off" and <CustomErrors> is not the same as <customErrors>.

But now that you have AI on the case, making any more changes to the web.config file would not help much and may confuse things.

Once they get the custom errors turned off so you can see the "real" error, the solution will probably become obvious.

Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 2:53 pm
by tonygets
Hi,

I have now resolved the server runtime error however the next problem is that I do not have a new live or demo key and I have already used the demo install once in the past for this domain. I am not able to install AC without the key however I will only be able to obtain the key when AC re-opens their office in 8 hours.

Does anyone know another way to install?

Thanks and regards,

Anthony

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 3:38 pm
by mike92117
Do you need a new key? If your old store and new store are the same version and the domain is exactly the same, then I would think the old key should work fine.

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 6:17 pm
by afm
tonygets wrote:Hi,

I have now resolved the server runtime error however the next problem is that I do not have a new live or demo key and I have already used the demo install once in the past for this domain. I am not able to install AC without the key however I will only be able to obtain the key when AC re-opens their office in 8 hours.

Does anyone know another way to install?

Thanks and regards,

Anthony
1. Make a backup copy of App_Data\ablecommerce.config.
2. Open App_Data\ablecommerce.config in a text editor.
3. Add demoMode="true" to the <application> element. For example,

<application demoMode="true" connectionStringName="" maintenanceInterval="360" viewStateWarning="0" readOnlyInstance="false" checkoutRetries="100">

Note that both demoMode and true are case sensitive. You must type them exactly like I have shown.

After making this change, the site will run in demo mode and you should be able to complete the install.

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 6:42 pm
by tonygets
Thanks for that information.

It has however not resolved the issue.

I thought that it may have something to do with the database. So I tried installing it onto a new clean database. This did not resolve it either.

Here is the error message:

Code: Select all

Server Error in '/' Application.
--------------------------------------------------------------------------------

The remote certificate is invalid according to the validation procedure. 
Description: 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. 

Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace: 


[AuthenticationException: The remote certificate is invalid according to the validation procedure.]
   System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) +1116298
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +1116345
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +248
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +53
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +208
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +178
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +107
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +248
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +53
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +208
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +178
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +107
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +248
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +53
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +208
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +178
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +107
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +248
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +130
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +85
   System.Net.TlsStream.CallProcessAuthentication(Object state) +47
   System.Threading.ExecutionContext.runTryCode(Object userData) +66
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +166
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +145
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +728
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +44
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +25
   System.Net.ConnectStream.WriteHeaders(Boolean async) +122

[WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.]
   System.Net.HttpWebRequest.GetRequestStream() +1549709
   ASP.install_configure1_aspx.GetDemoKey() +695
   ASP.install_configure1_aspx.ValidateKey() +31
   ASP.install_configure1_aspx.InstallButton_Click(Object sender, EventArgs e) +83
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Do you have any further recommendations?

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 7:12 pm
by mike92117
Based on the info you sent in your last post, it sure looks like there is something awry with your SSL certificate. I tried to hit your staging server with https and got a severe warning (try it yourself). I think this may be the root of your problems and you should get your hosting company to help you out here.


This Connection is Untrusted

You have asked Firefox to connect
securely to xxxxx.com.au.xxxxx.com, but we can't confirm that your connection is secure.

Normally, when you try to connect securely,
sites will present trusted identification to prove that you are
going to the right place. However, this site's identity can't be verified.

What Should I Do?
If you usually connect to this site without problems, this error could mean that someone is
trying to impersonate the site, and you shouldn't continue.

Technical Details
xxxxx.com.au.xxxxx.com uses an invalid security certificate.

The certificate is only valid for the following names:
*.appliedi.net , appliedi.net

(Error code: ssl_error_bad_cert_domain)

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 7:20 pm
by tonygets
The error message is actually from our live server for our http://www.xxxxx.com.au site. (appliedi have not rolled back to the backup server yet)

Can you also please check to see if you think the SSL is related to the install on this site?

The address is http://www.xxxxx.com.au/install/configure1.aspx

Thanks.

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 9:26 pm
by mike92117
exact same err message on the 2nd site.

Re: Errors with moving a store. emergency advise requested

Posted: Sun Nov 15, 2009 9:30 pm
by tonygets
applied have been working on the website and now things seem to have gone from bad to worse.

The latest message on http://xxxx.au.mytempweb.com/shop/ is below. It seems that there is now an encryption issue. I was browsing the forums but don't really understand how to resolve this issue. Can you please help?

Code: Select all

Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)

Source Error: 


Line 1:  <connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">
Line 2:    <EncryptedData>
Line 3:      <CipherData>
Line 4:        <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAADS2LQZe8tEyuRdlo8/XRxwQAAAACAAAAAAADZgAAqAAAABAAAADMQeaaaLlhuDQ2MOKH/wd6AAAAAASAAACgAAAAEAAAAGSx4wIeCYNihSGWqeGfRhDwAQAA9PvssjNzsaq3ByKgVK3Sd32k/rRxF2k0MWmS2Urt38Wj15/ZHOYO/ma1i8Qz73mM7vf3iidl4lEYFtt1JcXbw/gzfLjkgR5LOWBe/7j5ISTUemV/r01+LI58m0Orc1+dOTXsUq17nJnlO3n0GO9jaG3aAI+hyV4XPgIoBqxK6OCrwc4lUVMbwn6w58JAAwcCk0IH6I8J7OgjdZ2M8TKrN/yYDgWLReL3HKuMsKHOx2gKYahb4gUJrFr3AaTtj8gaxCYWJxMjFRDTYodGM66Wr7nSI2mSDmmT3IFj/5R+62sHmMem+1ZnSZTHFyYXcKoBrYqjE7lAoOJSh6tisIdYADarUzYJPQ85aVF5UM4VOvyp3P668jjsQtmqbvC4eskWt13KMPyWEeVFLusNw/X7dVVA1WRJ8unb2/Fuwrj5LCi+mTGGZynLPl5QnUOW9SN+w1kyukDLZocSLu81xDFtq2YZjkGS36H1ri4qUOcw0P5zxScE+6zeXv/7i7/yIHgBP3kMKtn6qkMR9j/jccsWZEMNHw+gALNfCMk37EGg74qHltuK/B3ndcusp0jKf/rDHfGvW1f+jgfu4ouewdIvJOsIxRZkrgFieKVk2QoQ4xkbIPV+HMyxAyKE40wuZo2aIab61G0QiMV3fd3EH3sTtRQAAABBbPPwBIGEdwEb8b9T5NGkMQNeqg==</CipherValue>
 

Source File: D:\Domains\xxxx.com.au\wwwroot\App_Data\database.config    Line: 2 
Thanks.

Re: Errors with moving a store. emergency advise requested

Posted: Mon Nov 16, 2009 6:32 am
by jmestep
Assuming you have a valid store license now:
It looks like you need to go back to unencrypted. If you saved the generated keys from the admin, you might be able to apply them if you had a machineKey entered into the web.config file. If you moved the site and didn't have a machineKey set in the web.config file, previous encryption won't work because it would have been picking up the machineKey from the old server, which it does if there is not one in the web.config.
Here is probably what you need to do. In the App_Data folder, change the content of the encryption.config to <encryption />.
In the database.config file, put the connection string in as clear text. The contents of the file would be something like
<connectionStrings>
<add name="AbleCommerce" connectionString="Server=precision\developer;Database=12458Test;Uid=xxx;Pwd=xxx;" providerName="System.Data.SqlClient" />
</connectionStrings>
Add a machineKey entry to your web.config file. You can generate one here:
You can generate one here:
http://aspnetresources.com/tools/keycreator.aspx
Leave the default settings as 64,24, SHA1
It can be entered like the following- in the <system.web> section
<system.web>
<machineKey validationKey="xxxxxxxxxxxxxxxxxxxx42D5CEE96F5212BC3D318A215C1925273EB8BD3AE0D1E5B900994FF30A0FD5AD2DAAF50E827095CBA09363CFC28E9BBC091FBE"
decryptionKey="CEE30DAF29D32D5AD2B44507DF8EBB63A84954039004168E" validation="SHA1" />

After you get the site working again, re-encrypt the database connection string in the admin and create an encryption key there also.(Configure-->Security-->Encryption key