<small id='jSKZL'></small><noframes id='jSKZL'>

      <legend id='jSKZL'><style id='jSKZL'><dir id='jSKZL'><q id='jSKZL'></q></dir></style></legend>
        <bdo id='jSKZL'></bdo><ul id='jSKZL'></ul>
    1. <i id='jSKZL'><tr id='jSKZL'><dt id='jSKZL'><q id='jSKZL'><span id='jSKZL'><b id='jSKZL'><form id='jSKZL'><ins id='jSKZL'></ins><ul id='jSKZL'></ul><sub id='jSKZL'></sub></form><legend id='jSKZL'></legend><bdo id='jSKZL'><pre id='jSKZL'><center id='jSKZL'></center></pre></bdo></b><th id='jSKZL'></th></span></q></dt></tr></i><div id='jSKZL'><tfoot id='jSKZL'></tfoot><dl id='jSKZL'><fieldset id='jSKZL'></fieldset></dl></div>
      1. <tfoot id='jSKZL'></tfoot>

        SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3

        SQL1159 Initialization error with DB2 .NET Data Provider, reason code 10, tokens 0.0.0, 9.7.3(SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3)
          <tbody id='uBgST'></tbody>

        1. <small id='uBgST'></small><noframes id='uBgST'>

              <bdo id='uBgST'></bdo><ul id='uBgST'></ul>
            • <tfoot id='uBgST'></tfoot>
              <legend id='uBgST'><style id='uBgST'><dir id='uBgST'><q id='uBgST'></q></dir></style></legend>
                <i id='uBgST'><tr id='uBgST'><dt id='uBgST'><q id='uBgST'><span id='uBgST'><b id='uBgST'><form id='uBgST'><ins id='uBgST'></ins><ul id='uBgST'></ul><sub id='uBgST'></sub></form><legend id='uBgST'></legend><bdo id='uBgST'><pre id='uBgST'><center id='uBgST'></center></pre></bdo></b><th id='uBgST'></th></span></q></dt></tr></i><div id='uBgST'><tfoot id='uBgST'></tfoot><dl id='uBgST'><fieldset id='uBgST'></fieldset></dl></div>

                  本文介绍了SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在控制台应用程序中打开与 DB2 的连接.它工作正常.当我在托管在 IIS 中的服务中使用相同的代码时,它会为 DB2 引发错误.以下是错误详情.我是否缺少 IIS 中的某些权限?

                  dll :IBM.data.DB2.dll

                  代码:

                  DB2Connection db2Connection = new DB2Connection(connectionString);DB2Command cmdSelectUsrNameAndPassword = new DB2Command(querySelectUsernameAndPassword, db2Connection);cmdSelectUsrNameAndPassword.Connection.Open();

                  投掷:

                  <块引用>

                  SQL1159 DB2 .NET 数据提供程序初始化错误,原因码 10,令牌 0.0.0、9.7.3

                  如果我在控制台中尝试使用 ODBC 的 DSN,它可以工作,但同样会在 IIS 中引发另一个错误.

                  OdbcConnection DbConnection = new OdbcConnection(DSNName);DbConnection.Open();

                  投掷:

                  <块引用>

                  ASP.NET V4.0 无权执行请求的命令或操作.

                  解决方案

                  猜猜它与应用程序池身份有关.我将应用程序池标识设置为网络服务",并在 C:Program FilesIBMSQLLIBBIN etf20_32 中的IBM.Data.DB.dll"上授予网络服务"的完全权限.p>

                  I am trying to open a connection to DB2 in console application. It works fine. when I use the same code in a service, hosted in IIS it throws an error for DB2. Following is the error details. Am I missing some permissions in IIS ?

                  dll :IBM.data.DB2.dll

                  Code :

                  DB2Connection db2Connection = new DB2Connection(connectionString);
                  DB2Command cmdSelectUsrNameAndPassword = new DB2Command(querySelectUsernameAndPassword, db2Connection);
                  cmdSelectUsrNameAndPassword.Connection.Open();
                  

                  Throws :

                  SQL1159 Initialization error with DB2 .NET Data Provider, reason code 10, tokens 0.0.0, 9.7.3

                  If I try a DSN with ODBC in console it works, but same throws another error in IIS.

                  OdbcConnection DbConnection = new OdbcConnection(DSNName);
                  DbConnection.Open();
                  

                  Throws :

                  ASP.NET V4.0 does not have the authority to perform the requested command or operation.

                  解决方案

                  guess it has something to do with App pool identity. I set the app pool identity as "Network service" and gave full permission to "Network Service" on "IBM.Data.DB.dll" in C:Program FilesIBMSQLLIBBIN etf20_32 Worked neat.

                  这篇关于SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  IBM.Data.DB2.Core connection problems(IBM.Data.DB2.Core 连接问题)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  Datetime field overflow with IBM Data Server Client v9.7fp5(IBM Data Server Client v9.7fp5 的日期时间字段溢出)
                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                  IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                  .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                  <i id='BI7Q1'><tr id='BI7Q1'><dt id='BI7Q1'><q id='BI7Q1'><span id='BI7Q1'><b id='BI7Q1'><form id='BI7Q1'><ins id='BI7Q1'></ins><ul id='BI7Q1'></ul><sub id='BI7Q1'></sub></form><legend id='BI7Q1'></legend><bdo id='BI7Q1'><pre id='BI7Q1'><center id='BI7Q1'></center></pre></bdo></b><th id='BI7Q1'></th></span></q></dt></tr></i><div id='BI7Q1'><tfoot id='BI7Q1'></tfoot><dl id='BI7Q1'><fieldset id='BI7Q1'></fieldset></dl></div>

                        <tfoot id='BI7Q1'></tfoot>

                            <bdo id='BI7Q1'></bdo><ul id='BI7Q1'></ul>

                            <small id='BI7Q1'></small><noframes id='BI7Q1'>

                              <tbody id='BI7Q1'></tbody>
                            <legend id='BI7Q1'><style id='BI7Q1'><dir id='BI7Q1'><q id='BI7Q1'></q></dir></style></legend>