Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2003, 10:02 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DreamVisa Send a message via Yahoo to DreamVisa
Default Help for ASP.NET

Thank you very much for solving this problem
When I use web page to connect Database(SQL Server 2000) by ,I don't know why I can't connect database successfully as following errors
************************************************** ******************
¡°/WroxJokeShop¡±Ó¦ÓóÌÐòÖеķþÎñÆ ÷´íÎó¡£
--------------------------------------------------------------------------------

SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆÚ¼ä£¬³öÏÖδ´¦ÀíµÄÒì³ £¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔ Á˽âÓйظôíÎóÒÔ¼°´úÂëÖе ¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£

Òì³£ÏêϸÐÅÏ¢: System.Data.SqlClient.SqlException: SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£

Ô´´íÎó:


ÐÐ 10£º command.CommandType = CommandType.StoredProcedure
ÐÐ 11£º
ÐÐ 12£º connection.Open()
ÐÐ 13£º
ÐÐ 14£º


Ô´Îļþ: D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.vb ÐÐ: 12

¶ÑÕ»¸ú×Ù:


[SqlException: SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£]
   System.Data.SqlClient.SqlConnection.Open() +761
   WroxJokeShop.Catalog.GetDepartments() in D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.vb:12
   WroxJokeShop.DepartmentsList.Page_Load(Object sender, EventArgs e) in D:\E-Tutorial\Self Study\WroxJokeShop\UserControls\DepartmentsList.as cx.vb:28
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +29
   System.Web.UI.Control.LoadRecursive() +92
   System.Web.UI.Control.LoadRecursive() +92
   System.Web.UI.Page.ProcessRequestMain() +724






Qiang Guo
 
Old October 12th, 2003, 04:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure about this error, but I think
that it is character set problem.

character set (china) not properly installed.


Quote:
quote:Originally posted by DreamVisa
 Thank you very much for solving this problem
When I use web page to connect Database(SQL Server 2000) by ,I don't know why I can't connect database successfully as following errors
************************************************** ******************
¡°/WroxJokeShop¡±Ó¦ÓóÌÐòÖеķþÎñÆ ÷´íÎó¡£
--------------------------------------------------------------------------------

SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆÚ¼ä£¬³öÏÖδ´¦ÀíµÄÒì³ £¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔ Á˽âÓйظôíÎóÒÔ¼°´úÂëÖе ¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£

Òì³£ÏêϸÐÅÏ¢: System.Data.SqlClient.SqlException: SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£

Ô´´íÎó:


ÐÐ 10£º command.CommandType = CommandType.StoredProcedure
ÐÐ 11£º
ÐÐ 12£º connection.Open()
ÐÐ 13£º
ÐÐ 14£º


Ô´Îļþ: D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.vb ÐÐ: 12

¶ÑÕ»¸ú×Ù:


[SqlException: SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø¡£]
System.Data.SqlClient.SqlConnection.Open() +761
WroxJokeShop.Catalog.GetDepartments() in D:\E-Tutorial\Self Study\WroxJokeShop\BusinessObjects\Catalog.vb:12
WroxJokeShop.DepartmentsList.Page_Load(Objec t sender, EventArgs e) in D:\E-Tutorial\Self Study\WroxJokeShop\UserControls\DepartmentsList.as cx.vb:28
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Control.LoadRecursive() +92
System.Web.UI.Control.LoadRecursive() +92
System.Web.UI.Page.ProcessRequestMain() +724






Qiang Guo





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 3.5 answers in Professional ASP.NET 3.5 jminatel ASP.NET 3.5 Professionals 1 August 22nd, 2011 07:34 AM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Database diagram in .net using asp.net,c#.net scotttiger ADO.NET 2 February 16th, 2005 01:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.