<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="虚拟空间一访问SQL Server解决办法" id="card1">
<p> 游客</p><p>
标题:虚拟空间一访问SQL Server解决办法<br/>
正文:<br/>
 使用虚拟空间，建立Asp.net的网页，原来好好的，突然出现无法访问数据库的问题，提示下面的信息，同管理员共同研究，查阅国外是否有好的解决办法，弄了一天一头雾水。远程数据库使用本地的企业管理器，和本地建立网页（本地就是作者家里），均可以正常访问网站提供的远程数据库，而虚拟空间上的Asp和Asp.net网页均出现无法访问数据库的问题，Asp网页提示无法连接，Asp.net网页提示下面的信息。说明问题出在虚拟空间上，经过管理员更换空间后恢复正常。问题可能原因：数据库所在服务器防火墙拒绝了该虚拟空间IP的访问；虚拟空间防火墙阻挡了数据库访问出站；虚拟空间中关于数据库访问的组件出现问题。A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - 指定的网络名不再可用。) 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. Exception Details: System.Data.SqlClient.SqlException:&amp;nb<br/><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=50&amp;Page=1">[&lt;&lt;]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=50&amp;Page=1">[[1]]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=50&amp;Page=2">[2]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=50&amp;Page=3">[3]</a><a href="http://www.zhongguosou.com/blog/wap.asp?mode=WAP&amp;act=View&amp;id=50&amp;Page=6">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=50">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=50">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://www.zhongguosou.com/blog/wap.asp">首页</a>
</p>
</card>
</wml>