日期:2014-05-19  浏览次数:20454 次

急:.net连接SQLServer数据库的问题
Server   Error   in   '/ '   Application.
--------------------------------------------

Configuration   Error  
Description:   An   error   occurred   during   the   processing   of   a   configuration   file   required   to   service   this   request.   Please   review   the   specific   error   details   below   and   modify   your   configuration   file   appropriately.  

Parser   Error   Message:   ' < ',   hexadecimal   value   0x3C,   is   an   invalid   attribute   character.   Line   17,   position   125.

Source   Error:  


Line   15:   <connectionStrings>
Line   16:       <remove   name= "LocalSqlServer "   />
Line   17:       <add   name= "SQLConnection "   connectionString= "data   source=.\;Initial   Catalog=BaoXiu;User   ID=sa;Password=luckpHHuYwUwuLn325,. <> "   providerName= "System.Data.SqlClient "   />
Line   18:     </connectionStrings>
Line   19:     <system.web>
 

Source   File:   D:\web\baoxiu\web.config         Line:   17  


--------------------------------------------
Version   Information:   Microsoft   .NET   Framework   Version:2.0.50727.42;   ASP.NET   Version:2.0.50727.42  


我是新手,这是什么原因谁能帮忙解决,谢谢

------解决方案--------------------
Password=luckpHHuYwUwuLn325,. <>

你的密码如此怪异?佩服

建议密码中别用 <> 字符