﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Enterprise Server - V1 » How do I?  » Error messages localization keys?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:40:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Error messages localization keys?</title><link>http://forum.strataframe.net/FindPost23449.aspx</link><description>Hi,&lt;br&gt;
I develop a web application and evaluate StrataFrame security dialogs for my web application.&lt;br&gt;
For example.. when I want to change a password.. and my new password value brake a business rules I'v got an excelption on&lt;br&gt;
&lt;br&gt;
Here little code block&lt;br&gt;
[code]&lt;br&gt;
                   loSFSUserBO.us_PasswordPlainText = lcNewPassword&lt;br&gt;
                    loSFSUserBO.us_ConfirmPassword = lcNewPassword&lt;br&gt;
                    Try&lt;br&gt;
                        If loSFSUserBO.Save() = MicroFour.StrataFrame.Data.SaveUndoResult.Success Then&lt;br&gt;
                            Response.Redirect("~/PenSolutionOffice.aspx")&lt;br&gt;
                        Else&lt;br&gt;
                            Me.mmks_ShowNotification(Error_ChangePassword)&lt;br&gt;
                        End If&lt;br&gt;
                    Catch ex As Exception&lt;br&gt;
                        Me.mmks_ShowNotification(ex.InnerException.Message)&lt;br&gt;
                    End Try&lt;br&gt;
&lt;br&gt;
[/code]&lt;br&gt;
&lt;br&gt;
So.. I'v got a Catch block... and ex.InnerException.Message = The specified key [SFST_PasswordComplexityRequirements] was not found within the localization database.&lt;br&gt;
&lt;br&gt;
I understand - the broken rule password is simple.. but where can I get SFST_PasswordComplexityRequirements ? Should I create in my localization XML ? but there a lot of diffrent SFST_ keys when diffrent rules are broken.&lt;br&gt;
&lt;br&gt;
So, the question is - how can I get a valid error message instead SFST_PasswordComplexityRequirements...&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
Denis</description><pubDate>Fri, 12 Jun 2009 09:16:47 GMT</pubDate><dc:creator>dgsoft</dc:creator></item><item><title>RE: Error messages localization keys?</title><link>http://forum.strataframe.net/FindPost23471.aspx</link><description>This relates to the same issue on another thread you had asked about this.  You can refer back to that post here: [url=http://forum.strataframe.net/FindPost23324.aspx]http://forum.strataframe.net/FindPost23324.aspx[/url].  This is actually because you are requiring complex passwords based on your global settings and your password doesn't meet these requirements.  So the broken rules are trying to create that message and you have not embedded the localization files in your assembly.</description><pubDate>Fri, 12 Jun 2009 09:16:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>