[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
如题。
这个问题是在打包之后部署到服务才出现的,在vs调试是没有问题的,
在打包安装之后运行安装目录下的exe 文件也是正常的。
只在启动服务才出现错误,下面是我的错误日志
---------------------------START---------------------------2011-8-10 2:56:10Message: HandlingInstanceID: 27a13e8a-8a38-4319-b589-0d45df65716bAn exception of type 'System.Exception' occurred and was caught.----------------------------08/10/2011 10:56:10Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Message : 获取数据失败:ERROR [IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序Source : Easyway.Framework.DBHelperHelp link : Data : System.Collections.ListDictionaryInternalTargetSite : System.Data.DataSet ExecuteDataset(System.Data.CommandType, System.String, System.Data.Common.DbParameter[])Stack Trace : 在 Easyway.Framework.DBHelper.SyBase.SybaseHelper.ExecuteDataset(CommandType commandType, String commandText, DbParameter[] commandParameters) 在 Easyway.Framework.DBHelper.SyBase.SybaseHelper.ExecuteDataset(CommandType commandType, String commandText) 在 Easyway.Interfaces.Collect.TBS.Code.TbsData.GetTBSJkdpt()Additional Info:MachineName : 836417FAA3D2471TimeStamp : 2011-8-10 2:56:10FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35AppDomainName : Easyway.Interfaces.Collect.TBS.exeThreadIdentity : WindowsIdentity : NT AUTHORITY\SYSTEMSeverity: Error---------------------------END-----------------------------