الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

عند دخولي على الموقع ياتيني هذا الخطاء

بدأه peace_123 في 7 مارس 2011 · 2 رد · 502 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اخواني الكرام لم تحل هذه المشكله الى الان ارجو المساعده من ذوي الخبره

بعد ان قمت بتنزيل الموقع على السرفر عند دخولي على الموقع باستخدام login.aspx اسم المستخدم وكلمه المرور

فانه يظهر لي هذا الخطاء

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

ماذا يحتاج لي ان اغير لكي استطيع الدخول على الموقع باستخدام login.aspx اسم المستخدم وكلمه المرور

system.web>

<membership>

<providers>

<remove name="AspNetSqlMembershipProvider"/>

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>

</providers>

</membership>

حيث اني مبتدا في asp.net

وجزاكم الله خيرا

#2

أخي الكريم أول مابحثت وجدت هذه الحلول لمشكلتك وأعتقد أنك ستجد ضالتك هنا لأني في الحقيقة قد مررت بنفس المشكلة

ولكن أخي الكريم عليك بالبحث عن الحل بنفسك قبل أن تكتب موضوعا لأنك ستجده حتما فهناك الملايين حول العالم يواجهون

نفس المشاكل ...

SQL Server 2005 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) ”

Things to check:

1. Make sure your database engine is configured to accept remote connections

• Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration

• Click on Surface Area Configuration for Services and Connections

• Select the instance that is having a problem > Database Engine > Remote Connections

• Enable local and remote connections

• Restart instance

2. Check the SQL Server service account

• If you are not using a domain account as a service account (for example if you are using NETWORK SERVICE), you may want to switch this first before proceeding

3. If you are using a named SQL Server instance, make sure you are using that instance name in your connection strings in your ASweb P.NET application

• Usually the format needed to specify the database server is machinename\instancename

• Check your connection string as well

<connectionStrings>

<add name=”SampleConnectionString” connectionString=”Data Source=machinename\instancename;Initial Catalog=AdventureWorks;Integrated Security=SSPI;Min Pool Size=5;Max Pool Size=60;Connect Timeout=30″ providerName=”System.Data.SqlClient”/>

</connectionStrings>

4.You may need to create an exception on the firewall for the SQL Server instance and port you are using

• Start > Run > Firewall.cpl

• Click on exceptions tab

• Add the sqlservr.exe (typically located in C:\Program Files (x86)\Microsoft SQL Server\MSSQL.x\MSSQL\Binn), and port (default is 1433)

• Check your connection string as well

5. If you are using a named SQL Server instance, make sure you are using that instance name in your connection strings

6. Check SQLBrowser; check that it is running. You may also need to create an exception in your firewall for SQLBrowser.

7. Check that you have connectivity to the SQL Server. Note what you are using to connect: machine name, domain name or IP address? Use this when checking connectivity. For example if you are using myserver

• Start > Run > cmd

•netstat -ano| findstr 1433

•telnet myserver 1433

•ping -a myserver

Check what ports are IP addresses are being returned.

Alternative:

If you still can’t get any connection, you may want to create a SQL account on the server, a corresponding SQL user on the database in question, and just use this username/password combo in your web application.

تم تعديل هذه المشاركة بواسطة روبوت في 8 مارس 2011 في 01:15

#3

بختصار ان الموقع غير قادر علي الوصول لقاعدة البيانات ناتج احد الاتي

1-اسم سرفر البيانات خطء

2-اسم قاعدة البيانات خطء

3-اسم المستخدم خطء او كلمة السر خطء

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…