I bought the book "ASP.NET website programming - problem, design,
solution"
and loaded the code successfully.
However, when I tried to access the website from
localhost,http://localhost/ThePhile/Modules/Forums/Topic.aspx?TopicID=50
I got the following error message:
An unexpected error has occurred on this page. The system administrators
have been notified. Please feel free to contact us with the information
surrounding this error.
The error occurred in: http://localhost/ThePhile/Modules/Forums/Topic.aspx?
TopicID=50
Error Message: 对 text 数据类型不支持代码页转换。从: (page change is not
support )1252 (from)到:(to) 936。
---------------------------------------------------------------------------
-----
Stack Trace:
System.Data.SqlClient.SqlException: 对 text 数据类型不支持代码页转换。从:
1252 到: 936。 at System.Data.SqlClient.SqlCommand.ExecuteReader
(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean
returnStream) at
System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader
(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(Object
data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand
command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill
(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable,
IDbCommand command, CommandBehavior behavior) at
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at
Wrox.WebModules.Data.DbObject.RunProcedure(String storedProcName,
IDataParameter[] parameters, String tableName) in
C:\Wrox\ThePhile\Modules\Core\DbObject.cs:line 147 at
Wrox.WebModules.Forums.Data.Replies.GetReplies(Int32 topicID, Int32
pageNumber, Int32 pageSize) in
C:\Wrox\ThePhile\Modules\Forums\Forums.Data\Replies.cs:line 55 at
Wrox.WebModules.Forums.Business.Topic.GetReplies(Int32 pageNumber) in
C:\Wrox\ThePhile\Modules\Forums\Forums.Business\Topic.cs:line 145 at
Wrox.WebModules.Forums.Web.Topic.BindGrid() in
C:\Wrox\ThePhile\Modules\Forums\Topic.aspx.cs:line 126 at
Wrox.WebModules.Forums.Web.Topic.Page_Load(Object sender, EventArgs e) in
C:\Wrox\ThePhile\Modules\Forums\Topic.aspx.cs:line 99 at
System.EventHandler.Invoke(Object sender, EventArgs e) at
System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()
I am using SQL 2000 MSDE on Win XP professional.
and everything is ok expect this error
sorry for my English is bad!
Could you help me with this problem? Thanks in advance!