1. <i id='U8kQz'><tr id='U8kQz'><dt id='U8kQz'><q id='U8kQz'><span id='U8kQz'><b id='U8kQz'><form id='U8kQz'><ins id='U8kQz'></ins><ul id='U8kQz'></ul><sub id='U8kQz'></sub></form><legend id='U8kQz'></legend><bdo id='U8kQz'><pre id='U8kQz'><center id='U8kQz'></center></pre></bdo></b><th id='U8kQz'></th></span></q></dt></tr></i><div id='U8kQz'><tfoot id='U8kQz'></tfoot><dl id='U8kQz'><fieldset id='U8kQz'></fieldset></dl></div>
    2. <small id='U8kQz'></small><noframes id='U8kQz'>

    3. <tfoot id='U8kQz'></tfoot>

    4. <legend id='U8kQz'><style id='U8kQz'><dir id='U8kQz'><q id='U8kQz'></q></dir></style></legend>

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

        已发布的报告不起作用 - 数据库登录失败错误

        published reports don#39;t work - Database logon failed Error(已发布的报告不起作用 - 数据库登录失败错误)

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

            • <small id='386xK'></small><noframes id='386xK'>

                <tfoot id='386xK'></tfoot>
                <legend id='386xK'><style id='386xK'><dir id='386xK'><q id='386xK'></q></dir></style></legend>
                  <tbody id='386xK'></tbody>
                • <bdo id='386xK'></bdo><ul id='386xK'></ul>
                  本文介绍了已发布的报告不起作用 - 数据库登录失败错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个简单的 Web 应用程序,它在 VS 2013 上创建了 3 个报告,出于某种原因,这些报告在开发人员模式下运行良好,但是当我发布网站时,他们给我数据库登录失败"错误.这可能是什么原因造成的?VS 安装在我发布报告的同一台服务器上.我创建了一个本地管理员用户,其信息与用于 IIS 身份验证的 ODBC 连接登录用户完全相同,但仍然没有运气.

                  I am developing a simple web app that has 3 reports created on VS 2013, for some reason those reports run fine from developer mode, but when I publish the website they give me "Database logon failed" Error. What could be causing this? VS is installed on the same server that I am publishing the reports. I have created a local admin user with exactly the same info as the ODBC connection logon user for IIS authentication, but still no luck.

                  下面是我的代码:

                  public partial class OpenWOsWebForm : System.Web.UI.Page
                      {
                          ConnectionInfo EPAKconnectionInfo = new ConnectionInfo();
                  
                          protected void SetConnectionInfo()
                          {
                  
                              EPAKconnectionInfo.ServerName = ConfigurationManager.AppSettings["EPAK_SERVER_NAME"];
                              EPAKconnectionInfo.UserID = ConfigurationManager.AppSettings["EPAK_USER_NAME"];
                              EPAKconnectionInfo.Password = ConfigurationManager.AppSettings["EPAK_PASSWORD"];
                          }
                  
                          private void Page_Init(object sender, EventArgs e)
                          {
                  
                              ReportDocument report = new ReportDocument();
                              report.Load("C:\Delray Beach\Delray Beach\Reports\OpenWOsReport.rpt");
                              SetConnectionInfo();
                              TableLogOnInfo crTableLogoninfo = new TableLogOnInfo();
                  
                              foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in report.Database.Tables)
                              {
                                  crTableLogoninfo = CrTable.LogOnInfo;
                                  crTableLogoninfo.ConnectionInfo = EPAKconnectionInfo;
                                  CrTable.ApplyLogOnInfo(crTableLogoninfo);
                              }
                              foreach (ReportDocument subreport in report.Subreports)
                              {
                                  foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in subreport.Database.Tables)
                                  {
                                      crTableLogoninfo = CrTable.LogOnInfo;
                                      crTableLogoninfo.ConnectionInfo = EPAKconnectionInfo;
                                      CrTable.ApplyLogOnInfo(crTableLogoninfo);
                                  }
                              }
                  
                              OpenWOsViewer.ReportSource = report;
                  
                              OpenWOsViewer.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
                          }
                      }
                  

                  谢谢

                  推荐答案

                  在我的情况下,问题在于 IIS 应用程序池/我的 web 应用程序/高级设置 32 位应用程序 被禁用,我没有在我的项目中包含 aspnet_client 文件夹,其中 水晶运行时文件 是存储的,所以当我发布应用程序时,那些文件没有传输.一旦我启用连接并包含该文件夹,问题就解决了.

                  In my case the problem was that on IIS Application Pools/ my web app/ Advanced Settings the 32 bit Applications was disable and I wasn't including on my project the folder aspnet_client where crystal run-times files are storage, so the time I was publishing the app, those files wren't transferred. Once I enabled the connection and included that folder the issue got resolved.

                  这篇关于已发布的报告不起作用 - 数据库登录失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  C# Attributes and their uses(C# 属性及其用途)
                  C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)
                    <bdo id='hqMsn'></bdo><ul id='hqMsn'></ul>
                  • <tfoot id='hqMsn'></tfoot>

                        <tbody id='hqMsn'></tbody>

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

                          • <legend id='hqMsn'><style id='hqMsn'><dir id='hqMsn'><q id='hqMsn'></q></dir></style></legend>