登录失败 [英] Logon failed

查看:73
本文介绍了登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我来自墨西哥所以如果我的英语不是最好的我很抱歉


我正在工作使用visual basic .net 2003,SQL Server 2000和Crystal Reports .NET(Visual Studio .NET 2003中包含的那个)


我在服务器机器上工作并完成了上周项目,一切都很完美。


当我试图在客户机上运行应用程序时出现问题。当crystalreportviewer在客户端计算机上打开时,它会询问我是否有登录信息,例如服务器名称,数据库,用户ID和密码。


当我在服务器上运行它时,不需要这些信息。无论如何这根本不是问题


最大的问题是即使我在登录窗口输入正确的信息,也会出现一个消息框,说"登录失败"。请再次尝试"


我试图在运行时将信息提供给报告,但它没有解决问题


什么是我做错了?我真的没有想法,我希望你能帮助我


谢谢你

解决方案


关于数据库连接的几个问题。先是什么类型的? (OLEDB,ODBC等)其次,您使用的是集成安全性吗?如果是这样,也许该用户无法访问数据库。

如果您正在使用像数据库这样的访问权限,如果它是磁盘上的文件,那么您需要将其放在完全相同的目录中你在设计报告时有,否则它将无法正常工作。解决此问题的唯一方法是创建与文件的ODBC连接。

如果您使用的是ODBC,则需要确保在您的计算机上使用的完全相同的DSN在客户端计算机上可用,不能出现任何拼写错误,并且区分大小写。


hello

i'm from mexico so i'm sorry if my english isn't the best

i am working with visual basic .net 2003, SQL Server 2000 and Crystal Reports .NET (the one that is included in Visual Studio .NET 2003)

i was working in a server machine and had finished the project last week, everything was working perfect.

the problem showed up when i tried to run the application on a client machine. when the crystalreportviewer open on the client machine it asks me for login information such as server name, database, user id and password.

this information is not required when i run it on the server machine. anyway this wouldn't be a problem at all

the big problem is that even if i enter the correct information on the login window it appears a messagebox saying "Logon failed. Please tried again"

i have tried to give the information to the report at run time but it it doesn't solve the problem

what am i doing wrong?? i'm really out of ideas, i hope you can help me

thank you

解决方案

hi,

couple of questions on your database connection.  First what type? (OLEDB, ODBC, etc)  Secondly, are you using integrated security?  If so, maybe that user doesn't have access to database.

If you are using a access like database where it is a file on disk, if so, you need to place it in the exact same directory as you had when you designed the report, otherwise it won't work.  The only way around this is if you create an ODBC connection to the file. 

If you are using ODBC, you need to make sure that the exact same DSN that you used on your machine is available on the client machine, can't be any typos, and is case sensitive.


这篇关于登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆