已成功与服务器建立连接,但是在登录前的握手期间发生错误。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 0 - 管道的另一端上无任何进程。)在WEB.CONFIG中设置如下:<connectionStrings>
 <add name="MySql"  connectionString="server=192.168.0.169;Uid=sa;Pwd=*****;database=aspnetdb" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<anonymousIdentification enabled="true"/>
<profile defaultProvider="SqlProvider">
<providers>
<clear/>
<add name="SqlProvider" connectionStringName="MySql" type="System.Web.Profile.SqlProfileProvider" applicationName="bdwz"/>
</providers>
<properties>
<add name="Name" allowAnonymous="true"/>
</properties>
</profile>