1
Bad Data error message
Question asked by Ray White - 9/23/2014 at 12:24 PM
Unanswered
Hi I am moving my old smartermail 5.5 to another server as a backup (I also have the latest version on another server)
I followed the instructions about moving to another server and it works ok if I log in without SSL. It's on windows server 2008 now  it was on server 2003 before.
But when I go there with an SSL connection I get the login page just fine, but then when I try to login I get this error below.
Anybody know what this might be and what to check?
I only copied over the files in the domain folder and the .xml and .dat files in the service folder.

 

Server Error in '/' Application.


Bad Data.

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.Cryptography.CryptographicException: Bad Data.


Source Error:

 
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.

Stack Trace:
 
[CryptographicException: Bad Data.
]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7604687
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275
   SmarterTools.SmarterMail.Remoting.IMail.Login(String initializationStr, Byte[] emailAddress, Byte[] password, Boolean recordLogin) +0
   SmarterTools.SmarterMail.Remoting.RemoteMail.Login(String initializationStr, Byte[] email, Byte[] password, Boolean recordLogin) +40
   SMWeb05.Login.login(String email, String password) +185
   SMWeb05.Login.DoLoginInternal(String username, String password, Boolean rememberMe) +1016
   SMWeb05.Login.DoLogin(String username, String password, Boolean rememberMe) +21
   SMWeb05.Login.DoLogin() +62
   SMWeb05.Login.LoginImageButton_Click(Object sender, EventArgs e) +5
   SmarterTools.Web.Controls.ButtonBarIcon.RaisePostBackEvent(String eventArgument) +58
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483

7 Replies

Reply to Thread
0
Steve Reid Replied
Seems like your SSL cert may be corrupt?
0
Ray White Replied
I tried it with two different certs that work for other things. Plus I get the first login page just fine and it's encypted.
0
Bruce Barnes Replied
It's on windows server 2008 now  it was on server 2003 before.
When you moved your SSL cert, did you remember to use the MMC Security console to add the cert, and associated certs, to the proper security base?
 
Even though IIS 7 allows some shortcuts for SSL certs, SmarterMail still needs them to be added to the security base via the MMC Security panel.  Once that's done, you also have to export the required cer file for SmarterMail, and place it in an area where it can be accessed by SmarterMail.
 
You can probably check your cer file validity by re-verifying your SSL and TLS port mappings in SmarterMail.  If they fail, you have a certificate issue and need to troubleshoot from there.
Bruce Barnes ChicagoNetTech Inc brucecnt@comcast.net Phonr: (773) 491-9019 Phone: (224) 444-0169 E-Mail and DNS Security Specialist Network Security Specialist Customer Service Portal: https://portal.chicagonettech.com Website: https://www.ChicagoNetTech.com Security Blog: http://networkbastion.blogspot.com/ Web and E-Mail Hosting, E-Mail Security and Consulting
0
Ray White Replied
New update it doesn't work even with a regular http: unencrypted url. I thought it had had first. It only works with the built in web server. I think that version 5.5 is no longer compatible with IIS on server 2008?
0
giovanni salucci Replied
I had same problem.
I solved it by setting AppPool "Enable 32 bit Application" to FALSE
0
Fernando Sosa Replied
I'm having similar issue, except that I am not using SSL. Didn't use it in the previous server.
 
I moved SM to a new server on a Google Cloud VM.
 
Copied over XML and domains, etc. I'm able to get to login page, but when I click to login I get the bad data error.  It works fine with internal SM webserver.
 
- AppPool is set to allow 32 bit. It doesn't work if false.
- Tried changing the logon for application pool to local, network, app identity
- Using Version Information: Microsoft .NET Framework Version:2.0.50727.8669; ASP.NET Version:2.0.50727.8653  
 
Seems like it's a permission issue. I'm seeing the error in the event viewer.
          
Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          6/24/2017 6:54:51 AM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      webserver
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 6/24/2017 6:54:51 AM 
Event time (UTC): 6/24/2017 10:54:51 AM 
Event ID: 065f821a4ad54923a4a1c8c73dc14e38 
Event sequence: 2 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/3/ROOT-1-131427752861314253 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\ 
    Machine name: WEBSERVER 
 
Process information: 
    Process ID: 4044 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\SYSTEM 
 
Exception information: 
    Exception type: CryptographicException 
    Exception message: Bad Data.
 
 
Request information: 
    Request URL: ttp://localhost:9998/Login.aspx 
    Request path: /Login.aspx 
    User host address: 127.0.0.1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\SYSTEM 
 
Thread information: 
    Thread ID: 3 
    Thread account name: NT AUTHORITY\SYSTEM 
    Is impersonating: False 
    Stack trace:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SmarterTools.SmarterMail.Remoting.IMail.Login(String initializationStr, Byte[] emailAddress, Byte[] password, Boolean recordLogin)
   at SmarterTools.SmarterMail.Remoting.RemoteMail.Login(String initializationStr, Byte[] email, Byte[] password, Boolean recordLogin)
   at SMWeb05.Login.login(String email, String password)
   at SMWeb05.Login.DoLoginInternal(String username, String password, Boolean rememberMe)
   at SMWeb05.Login.DoLogin(String username, String password, Boolean rememberMe)
   at SMWeb05.Login.DoLogin()
   at SMWeb05.Login.LoginImageButton_Click(Object sender, EventArgs e)
   at SmarterTools.Web.Controls.ButtonBarIcon.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 
Event Xml:
<Event xmlns="ttp://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2017-06-24T10:54:51.000000000Z" />
    <EventRecordID>1542</EventRecordID>
    <Channel>Application</Channel>
    <Computer>webserver</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>6/24/2017 6:54:51 AM</Data>
    <Data>6/24/2017 10:54:51 AM</Data>
    <Data>065f821a4ad54923a4a1c8c73dc14e38</Data>
    <Data>2</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/3/ROOT-1-131427752861314253</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\</Data>
    <Data>WEBSERVER</Data>
    <Data>
    </Data>
    <Data>4044</Data>
    <Data>w3wp.exe</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>CryptographicException</Data>
    <Data>Bad Data.
</Data>
    <Data>ttp://localhost:9998/Login.aspx</Data>
    <Data>/Login.aspx</Data>
    <Data>127.0.0.1</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>3</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>False</Data>
    <Data>   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
   at SmarterTools.SmarterMail.Remoting.IMail.Login(String initializationStr, Byte[] emailAddress, Byte[] password, Boolean recordLogin)
   at SmarterTools.SmarterMail.Remoting.RemoteMail.Login(String initializationStr, Byte[] email, Byte[] password, Boolean recordLogin)
   at SMWeb05.Login.login(String email, String password)
   at SMWeb05.Login.DoLoginInternal(String username, String password, Boolean rememberMe)
   at SMWeb05.Login.DoLogin(String username, String password, Boolean rememberMe)
   at SMWeb05.Login.DoLogin()
   at SMWeb05.Login.LoginImageButton_Click(Object sender, EventArgs e)
   at SmarterTools.Web.Controls.ButtonBarIcon.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
  </EventData>
</Event>
 
Any assistance is greatly appreciated.
0
Fernando Sosa Replied
bump

Reply to Thread