<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    志水です。<br>
    お世話になっております。<br>
    <br>
    表題とおりなのですが、最終的にDBFluteを動作させたいと思っています。<br>
    いまBlazor(サーバ)に現在稼働中のQuillやseasarなど必要なDllを参照させて<br>
    動作するか試してますが<br>
    QuillInjector.GetInstance().Inject(this);が実行され正常に帰ってきたあと<br>
    Tantou AA = _MTantouFacade.GetMTantouData(11521);を実行して<br>
    データを読もうとしたのですが、以下のエラーとなってしまいます。<br>
    ※Castle.DynamicProxy.dllがSeasar.Quill.dllの参照はしています。<br>
    ※Blazor(サーバ)には以下のパッケージをインストールしています。<br>
    ・System.Configuration.ConfigurationManager<br>
    ・System.AppDomain<br>
    ・System.Reflection.Emit<br>
    <br>
    どうやら、protected MTantouBhv mMTantouBhv;を宣言したら下記の事象がでています。<br>
    Seasar.Framework.Aop.ProxyのDynamicAopProxyクラスで<br>
    インスタンス生成?する箇所でエラーとなっているようです。<br>
    #if NET_4_0<br>
            /// &lt;summary&gt;<br>
            /// プロキシオブジェクトを生成します<br>
            /// &lt;/summary&gt;<br>
            public object Create()<br>
            {<br>
                if (_componentType.IsInterface)<br>
                {<br>
    ココ➡                return
    _generator.CreateInterfaceProxyWithoutTarget(_componentType,
    _interceptors);<br>
                }<br>
                else<br>
                {<br>
                    return _generator.CreateClassProxy(_componentType,
    _interceptors);<br>
                }<br>
            }<br>
    <br>
    色々とググってみたのですが、このエラーに関する記事をみると<br>
    Net Coreで<span style="color: rgb(51, 51, 51); font-family:
      -apple-system, &quot;Segoe UI&quot;, &quot;Helvetica Neue&quot;,
      &quot;Hiragino Kaku Gothic ProN&quot;, メイリオ, meiryo, sans-serif;
      font-size: 16px; font-style: normal; font-variant-ligatures:
      normal; font-variant-caps: normal; font-weight: 400;
      letter-spacing: normal; orphans: 2; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); text-decoration-style:
      initial; text-decoration-color: initial; display: inline
      !important; float: none;">AppDomainが云々と難しいことが書いてあって<br>
    </span>実装されていないような感じのことがかかれていたり<br>
    質問がCLOSEとなっているようなんですが、実装されてないんですかね??<br>
    また回避方法など知っておられたら教えてください。<br>
    <br>
    <br>
    以上、宜しくお願い致します。<br>
    <br>
    <br>
    <br>
*************************************************************************************************<br>
    Exceptionのスタックトレース<br>
*************************************************************************************************<br>
    Seasar.Quill.Exception.QuillApplicationException<br>
      HResult=0x80131600<br>
     
Message=[EQLL0037]プロキシオブジェクト(MTantouDao)の生成に失敗しました。コンストラクタ内の処理、アクセス修飾子、インターセプターを設定しているメソッドがインターフェースor
virtualになっているか、Castle.DynamicProxy.dllがSeasar.Quill.dllと同じ場所にあるか等をご確認下さい。<br>
      Source=Seasar.Quill<br>
      スタック トレース:<br>
       at Seasar.Quill.QuillComponent.CreateProxyObject(Type
    componentType, Type receiptType, IAspect[] aspects) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillComponent.cs:line
    270<br>
       at Seasar.Quill.QuillComponent..ctor(Type componentType, Type
    receiptType, IAspect[] aspects) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillComponent.cs:line
    100<br>
       at Seasar.Quill.QuillContainer.GetComponent(Type type, Type
    implType) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillContainer.cs:line
    130<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, Type implType) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    346<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, ImplementationAttribute implAttr) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    333<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    269<br>
       at Seasar.Quill.QuillInjector.Inject(Object target) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    191<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, Type implType) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    349<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, ImplementationAttribute implAttr) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    333<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    269<br>
       at Seasar.Quill.QuillInjector.Inject(Object target) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    191<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, Type implType) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    349<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field, ImplementationAttribute implAttr) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    333<br>
       at Seasar.Quill.QuillInjector.InjectField(Object target,
    FieldInfo field) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    269<br>
       at Seasar.Quill.QuillInjector.Inject(Object target) in
C:\TEST\Source\s2container.net-1.4.0-RC3\source\Seasar.Quill\QuillInjector.cs:line
    191<br>
       at BlazorApp5.Server.Controllers.WeatherForecastController.Get()
    in
C:\Users\admin\source\repos\BlazorApp5\BlazorApp5\Server\Controllers\WeatherForecastController.cs:line
    52<br>
       at
    Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object
    target, Object[] parameters)<br>
       at
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper
    mapper, ObjectMethodExecutor executor, Object controller, Object[]
    arguments)<br>
       at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()<br>
       at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State&amp;
    next, Scope&amp; scope, Object&amp; state, Boolean&amp; isCompleted)<br>
       at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()<br>
    <br>
    内部例外 1:<br>
    MissingMethodException: Method not found:
    'System.Reflection.Emit.AssemblyBuilder
    System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,
    System.Reflection.Emit.AssemblyBuilderAccess)'.<br>
    <br>
    <br>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">ウイルス フリー。 <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>                 </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>