如何使用Web部件 [英] how to work with web parts

查看:99
本文介绍了如何使用Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请指导我使用我一直尝试使用的Web部件
但这给了我这个错误??


please guide me to use web parts I have been trying to use it
but it gives me this error ??


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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)








我是第一次使用Web部件,并下载了要在该教程中运行的教程,这给了我这个错误
帮帮我 ??该教程的链接

http://www.c-sharpcorner.com/UploadFile/a_anajwala/Building_WebParts. mht08042005042119AM/Building_WebParts.mht.aspx [ ^ ]








i m first time using web parts and i download tutorials to run in that tutorial its giving me this error
help me out ?? link of that tutorials

http://www.c-sharpcorner.com/UploadFile/a_anajwala/Building_WebParts.mht08042005042119AM/Building_WebParts.mht.aspx[^]

推荐答案

这是与WebParts无关的错误.关于SQL Server配置.

检查您的数据库服务器的 Surface Area配置,看看它是否允许远程连接和TCP/IP管道.

像这样启用它:
1.打开此窗口:开始"->所有程序"->"MS SQL Server 2005"->配置工具-> SQL Server外围应用配置器
2.选择服务和连接"的外围应用配置"
3.选择"MSSQLServer"->数据库引擎"->远程连接"
4.现在选择单选按钮:本地和远程连接
5.同时选择同时使用TCP/IP和命名管道
6.选择确定按钮.您可以根据需要重新启动SQL服务.
It''s an error not related to WebParts. It''s about SQL Server configuration.

Check you Surface Area configuration of database server and see if it allows remote connections and TCP/IP pipelines.

Enable it like this:
1. Open this: Start->All Programs->MS SQL Server 2005-> Configuration Tools -> SQL Server Surface Area Configuration
2. Choose Surface Area configuration for Services and Connections
3. Select MSSQLServer->Database Engines->Remote Connections
4. Now select radio button: Local and Remote Connections
5. Also select using both TCP/IP and named pipes
6. Select Ok button. You can restart the SQL Service if needed.


您收到的错误通常是由于连接字符串不正确引起的.

您是否已更改了教程中的连接字符串以适合您的系统/设置?
The error that you are getting is commonly caused by having an incorrect connection string.

Have you altered the connection string in the tutorial to fit with your system/setup?


这篇关于如何使用Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆