日期:2014-05-18  浏览次数:20477 次

使用webpart有什么要求?
必须得有sqlserver2005吗?
我使用webpart后报错如下:

An   error   has   occurred   while   establishing   a   connection   to   the   server.     When   connecting   to   SQL   Server   2005,   this   failure   may   be   caused   by   the   fact   that   under   the   default   settings   SQL   Server   does   not   allow   remote   connections.   (provider:   Named   Pipes   Provider,   error:   40   -   Could   not   open   a   connection   to   SQL   Server)

Description:   An   unhandled   exception   occurred   during   the   execution   of   the   current   web   request.   Please   review   the   stack   trace   for   more   information   about   the   error   and   where   it   originated   in   the   code

Source   Error:  

An   unhandled   exception   was   generated   during   the   execution   of   the   current   web   request.   Information   regarding   the   origin   and   location   of   the   exception   can   be   identified   using   the   exception   stack   trace   below.    

请哪位老大帮忙看看!谢谢

------解决方案--------------------
必须得有sql server ,不一定是2000,具体看这里:
http://msdn2.microsoft.com/en-us/library/hhy9ewf1.aspx