Forums: Open Discussion (Thread #19479)

リッチクライアントフレームワークでの入力値検証機能について (2008-07-31 15:25 by Anonymous #37962)

リッチクライアントフレームワークでの入力値検証機能を使おうとしています。
ダウンロードしたValidationConfiguration.zipテンプレートをインポートした
バリデーションファイルをカスタマイズして使っておりますが、
実行時に「TERASOLUNA.Fw.Common.TerasolunaException: 入力値検証設定情報は無効です。---> System.Configuration.ConfigurationErrorsException: validationのための構成セクションハンドラを作成中にエラーが発生しました。: ファイルまたはアセンブリ'Microsoft.Practices.EnterpriseLibrary.ValidationConfiguration, Version=3.1.0.0,(中略) またはその依存関係の1つが読み込めませんでした。指定されたファイルは見つかりません。(後略)」
という例外ポップアップダイアログが表示されてしまいます。
そもそも機能説明書CM-02_08に記載されている、
「EntribContrib.Validation」を参照設定に追加していないことが原因かと思うのですが、
「EntribContrib.Validation」は、参照の追加でどのコンポーネントを選択すればいいのでしょうか?
参照設定の追加の「.NET」タブにて、
・Enterprise Library Shared Library
・Enterprise Library Validation Application Block
を選択し、「OK」をクリックすることによって
・Microsoft.Practices.EnterpriseLibrary.Common
・Microsoft.Practices.EnterpriseLibrary.Validation
は追加されるのですが。

Reply to #37962×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: リッチクライアントフレームワークでの入力値検証機能について (2008-07-31 15:50 by Anonymous #37963)

投稿者本人です。
internetで検索して[Enterprise Library Contrib - Home]というサイトで「EntLibContrib.Validation.dll」をダウンロードすることはできました。
http://www.codeplex.com/entlibcontrib/Release/ProjectReleases.aspx?ReleaseId=7302
これを参照設定に追加して実行したのですが、やはり
<configSections>
<section name="validation" type="Microsoft.Practices.EnterpriseLibrary.ValidationConfiguration.Configuration.ValidationSettings, Microsoft.Practices.EnterpriseLibrary.ValidationConfiguration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
部分で同様のエラーが出てしまいました。
当初考えていた原因ではないのかもしれません。
Reply to #37962

Reply to #37963×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: リッチクライアントフレームワークでの入力値検証機能について (2008-07-31 16:51 by Anonymous #37964)

投稿者です。
フレームワークとは関係なく、一般的なdllの配置についての知識が不足していることが原因のような気がしてきました。このフォーラムで扱っていただくような内容ではないと思われるますので、この投稿は取り下げようと思います。お騒がして申し訳ありません。
(でも、まだ解決していません)
Reply to #37963

Reply to #37964×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: リッチクライアントフレームワークでの入力値検証機能について (2008-07-31 18:42 by Anonymous #37975)

投稿者です。
自己解決しました。
でも予想に反してフレームワークの提供方法の問題ではないかと思われたので投稿します。
ValidationConfigurationのテンプレートでは、<section>タグのtype属性に「$safeitemname$」を書いていますが、この部分は「Validation」固定でないとまずいと思います。(機能説明書 CM-02_02 表1の「Type」属性の値の説明)
<configSections>
<section name="validation" type="Microsoft.Practices.EnterpriseLibrary.$safeitemname$.Configuration.ValidationSettings, Microsoft.Practices.EnterpriseLibrary.$safeitemname$, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
インストール手順どうりにValidationConfugurationテンプレートをインポートすると「$safeitemname$」はファイル名によっては「Validation」以外の文字に置換され、上記のようなエラーになってしまうと思います。
Reply to #37964

Reply to #37975×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: リッチクライアントフレームワークでの入力値検証機能について (2008-07-31 19:34 by sejimos #37981)

ご指摘いただいた通り、提供しているValidationConfugurationテンプレート(ValidationConfiguration.zip)に問題がありました。

テンプレート作成時に「$safeitemname$」というパラーメータが自動で生成されてしまったようです。
この部分は「Validation」固定とするのが正です。

近日中に修正・更新します。
ありがとうございました。
Reply to #37975

Reply to #37981×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login