PDA

View Full Version : سوال: مشکل کد چیست؟



ghazal4843
یک شنبه 25 اردیبهشت 1390, 12:56 عصر
با سلام
من یه برنامه تحت وب دارم که بانک اطلاعاتی اون روی سرور هست. وقتی برنامه رو از طریق خود ویژوال استودیو اجرا می کنم اجرا میشه و کانکشن برقرار میشه ولی وقتی از browser آدرس وارد می کنم خطای اتصال به دیتابیس میده به نظر شما اشکال از چی هست؟
این connection string:
CN.ConnectionString = "Data Source=172.19.10.151;Initial Catalog=DbSetad

و این ارور :
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

و البته sql2000 رو سرور نصبه
با تشکر