在Orchard项目中碰的各种错误整理
1 打开网站出现404 。
查看日志
日志位置Orchard.WebApp_DataLogsorchard-error-2016.03.23.log
错误信息
2016-03-18 16:12:20,899 [6] NHibernate.Transaction.AdoTransaction - (null) - Begin transaction failed [(null)]
System.Data.SqlClient.SqlException (0x80131904): 用户 'Orchard' 登录失败。
在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
在 System.Data.SqlClient.SqlConnection.Open()
在 NHibernate.Connection.DriverConnectionProvider.GetConnection()
在 NHibernate.AdoNet.ConnectionManager.GetConnection()
在 NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel)
ClientConnectionId:3d21ccd7-c965-44de-9bc0-1018e69aae9f
Error Number:18456,State:1,Class:14
|
修改网站配置后解决
数据库连接字符串存放位置
Orchard.WebApp_DataSitesDefaultSettings.txt
State: Running
Themes:
Modules:
Name: Default
DataProvider: SqlServer
DataConnectionString: Data Source=.;Initial Catalog=Orchard;User ID=Orchard;Password=test123
DataTablePrefix: T
RequestUrlHost: null
RequestUrlPrefix: null
EncryptionAlgorithm: AES
EncryptionKey: AA9EFD95AD4EEF64D6CBBA1B3D76EEC9410CAA217E376B8CDF11CD2D72B560AD
HashAlgorithm: HMACSHA256
HashKey: C007A38470F40A2C9B6353EDC2F8D14EEBB5CF62CE57ADF39BB413FD18205400BD6492F00617114916A4BCA641F0A153BA83816A1175DC4AF2E4EE3C0DA787C8