The Code(
VB) of book ASP.NET Website Programming Error
I come from China,and i had bought the book of ASP.NET Website Programming Error(Problem-Design-Solution),in China,GB2312 Edtion was pressed by Tsinghua University.
I am a
VB Programmer,but in China,the book haven't
VB Edtion,so i bought the C# Edtion,becase i can read it.
Then i download the source code(
VB) of the book,follow the readme file,i installed and run it successfully,but i found a Error in Forums Module.The error file is forums/Topic.aspx.for example:
http://localhost/ThePhileVB/WebModul...spx?TopicId=50
get the following error:
Error Message:
¶à text Ãý¾ÃÃà Ãò»Ã§³Ã´úÃëóê»»¡ £´Ã: 1252 µ½: 936¡£
(text data type can't support code page tranform,from 1252 to 936)
Error Stack:
System.Data.SqlClient.SqlException: ¶à text Ãý¾ÃÃà Ãò»Ã§³Ã´úÃëóê»»¡ £´Ã: 1252 µ½: 936¡£
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior)
at System.Data.SqlClient.SqlCommand.System.Data.IDbCo mmand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillFromCommand(O bject 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 G:\asp.net\8163_code_v7\8163_code_v7\wrox\wrox\The PhileVB\WebModules\Core\DBObject.
vb:line 103
at Wrox.WebModules.Forums.Data.Replies.GetReplies(Int 32 topicId, Int32 pageNumber, Int32 pageSize) in G:\asp.net\8163_code_v7\8163_code_v7\wrox\wrox\The PhileVB\WebModules\Forums\Forums.Data\Replies.
vb:l ine 87
at Wrox.WebModules.Forums.Business.Topic.GetReplies(I nt32 pageNumber) in G:\asp.net\8163_code_v7\8163_code_v7\wrox\wrox\The PhileVB\WebModules\Forums\Forums.Business\Topic.
vb :line 150
at Wrox.WebModules.Forums.Web.Topic.BindGrid() in G:\asp.net\8163_code_v7\8163_code_v7\wrox\wrox\The PhileVB\WebModules\Forums\Topic.aspx.
vb:line 287
at Wrox.WebModules.Forums.Web.Topic.Page_Load(Object sender, EventArgs e) in G:\asp.net\8163_code_v7\8163_code_v7\wrox\wrox\The PhileVB\WebModules\Forums\Topic.aspx.
vb:line 144
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()
and i found a another problem,the snk file must copy to C disk,becase the config file was specify the directory.
Hope Administrator reply me early.
Thanks.