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

ممكن مساعدة في ربط قاعدة البيانات بموقعasp

مغلق
بدأه meshal10 في 27 نوفمبر 2007 · 6 رد · 770 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

لدي موقع asp.net

مع قاعدة بيانات sql

مصمم على افيجوال 2005 والقاعدة اكسس تم تصديرها لsql

الموقع شغال على الجهاز المحلي

ولكن عندما رفعته على السيرفر لم يعمل فقط تظهر واجهت الموقع ولكن اذا ارت تسجيل الدخول اعطاني ان اليوزر خطا

فهماهو الحل

نص الاتصال هذا هو

Private Const CONNSTR As String = "PERSIST SECURITY INFO=False; DATA SOURCE=mssql10.hoststore.info; INITIAL CATALOG=smaacom_m; UID=smaacom_meshal; PWD=*****;"

هل صحيح ام يجب تغييره

#2

الكونكشن يبدو أنه صحيح.

ما نوع الداتابيس الذي تستخدمه؟ 2000 أم 2005؟

قد يكون الإتصال الخارجي مقفل.

#3

شكر لردك الداتا بيس

استخدم 2000

واين اجد الاتصال الخارجي

#4

هل أنت متأكد من أن اسم الجهاز الذي يحوي قاعدة البيانات هو mssql10.hoststore.info؟

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

#5

نعم اخي

اسم السيرفر صحيح

واستخدم استضافة مدفوعة

وراسلت الشركة بس ما ردوا

بس ممكن يكون من ملف الكونفق

وهل كذا صحيح

<?xml version="1.0" encoding="utf-8" ?>
<configuration>


	<system.web>
		<!--  DYNAMIC DEBUG COMPILATION
		  Set compilation debug="true" to insert debugging symbols (.pdb information)
		  into the compiled page. Because this creates a larger file that executes
		  more slowly, you should set this value to true only when debugging and to
		  false at all other times. For more information, refer to the documentation about
		  debugging ASP.NET files.
	-->
		<compilation defaultLanguage="vb" debug="true" />
		<!--  CUSTOM ERROR MESSAGES
		  Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
		  Add <error> tags for each of the errors you want to handle.
	-->
		<customErrors mode="Off" />
		<!--  AUTHENTICATION 
		  This section sets the authentication policies of the application. Possible modes are "Windows", 
		  "Forms", "Passport" and "None"
	-->
		<authentication mode="Forms">
			<forms loginUrl="prj10login.aspx" name=".ASPXFORMSAUTH"></forms>
		</authentication>
		<!--  AUTHORIZATION 
		  This section sets the authorization policies of the application. You can allow or deny access
		  to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
		  (unauthenticated) users.
	-->
		<authorization>
			<deny users="?" />
			<!--  <allow	 users="[comma separated list of users]"
							 roles="[comma separated list of roles]"/>
				  <deny	  users="[comma separated list of users]"
							 roles="[comma separated list of roles]"/>
			-->
		</authorization>
		<!--  APPLICATION-LEVEL TRACE LOGGING
		  Application-level tracing enables trace log output for every page within an application. 
		  Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
		  trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
		  application trace log by browsing the "trace.axd" page from your web application
		  root. 
	-->
		<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
		<!--  SESSION STATE SETTINGS
		  By default ASP.NET uses cookies to identify which requests belong to a particular session. 
		  If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
		  To disable cookies, set sessionState cookieless="true".
	-->
				<!--  PREVENT SOURCE CODE DOWNLOAD
		  This section sets the types of files that will not be downloaded. As well as entering
		  a httphandler for a file type, you must also associate that file type with the xspisapi.dll
		  in the App Mappings property of the web site, or the file can be downloaded.
		  It is recommended that you use this section to prevent your sources being downloaded.
	-->
		<!--  GLOBALIZATION
		  This section sets the globalization settings of the application. 
<sessionState mode="InProc" stateConnectionString="tcpip=mssql10.hoststore.info:1433" sqlConnectionString="data source=mssql10.hoststore.info;user id=smaacom_meshal;password=******;" cookieless="false" timeout="20" />

	-->
		<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
	</system.web>
</configuration>
#6

انا اواجه نفس المشكله مع Godaddy... وجربت اعمل backup ثم restore على السيرفر تبع Godaddy فتم الرفض لسبب امني....انت جرب هذه الطريقة مع ال server تبعك...لعلها تنفع.

وعدل فقط في web.config عند ال connectionstring خليه متوافق مع server تبعك.

وبالتوفيق.

هذا الموضوع مغلق.

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

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

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

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

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