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

شو يعني Runtime Error

مغلق
بدأه doto في 3 أغسطس 2007 · 26 رد · 3,698 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

سلام عليكم

انا سويت كمن صفحه بلغة asp.net وهي صفحات جاهزه من برنامج visual web developer 2005

ورفعتها على الموقع وتطلعلي هاي المشكله ....

وهاي اول تجربه في هاي اللغه :wacko:

والموقع يستخدم asp.net 2

ومع انها تشتغل في الكمبيوتر قبل ما ارفعها

فممكن مساعده

Server Error in '/' Application.

--------------------------------------------------------------------------------

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>

<system.web>

<customErrors mode="Off"/>

</system.web>

</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>

<system.web>

<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

</system.web>

</configuration>

#3

اخى العزيز اضف هذا المحتوى فى ال web.config

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Post Back Is My Enemy And JavaScript Is my Weapon

#4

مشكووورين على الردود

بس سؤال شو اهميه web.config

تم اضافه الكود

ونتيجه :

Server Error in '/' Application.

--------------------------------------------------------------------------------

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 50: ASP.NET to identify an incoming user.

Line 51: -->

Line 52: <authentication mode="Windows" />

Line 53: <!--

Line 54: The <customErrors> section enables configuration

Source File: d:\hosting\w\web.config Line: 52

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

تم تعديل هذه المشاركة بواسطة doto في 4 أغسطس 2007 في 17:48

#5

مرفق ملف config قم بالمقارنة

config.rar

Post Back Is My Enemy And JavaScript Is my Weapon

#6

في فرق كبير بس شو ما اعرف

انت عندك :

<compilation debug="false" strict="false" explicit="true" />

و

<compilation debug="true"/>

و

<globalization fileEncoding="windows-1256" responseEncoding ="windows-1256" requestEncoding="windows-1256" culture ="ar-sa" uiCulture ="ar-sa" />

اما انا فعندي :

<compilation debug="false" strict="false" explicit="true" />

<pages>

<namespaces>

<clear />

<add namespace="System" />

<add namespace="System.Collections" />

<add namespace="System.Collections.Specialized" />

<add namespace="System.Configuration" />

<add namespace="System.Text" />

<add namespace="System.Text.RegularExpressions" />

<add namespace="System.Web" />

<add namespace="System.Web.Caching" />

<add namespace="System.Web.SessionState" />

<add namespace="System.Web.Security" />

<add namespace="System.Web.Profile" />

<add namespace="System.Web.UI" />

<add namespace="System.Web.UI.WebControls" />

<add namespace="System.Web.UI.WebControls.WebParts" />

<add namespace="System.Web.UI.HtmlControls" />

</namespaces>

وهو لا يوجود عندك

#7

لازم اسوي قاعده بيانات في الموقع ؟؟؟؟

#8

انا معنديش خبرة كبيرة فى ملف الكنفج

انا معنديش السطر دة

compilation debug="false" strict="false" explicit="true" />

السطر دة خاص باللغة العربية

globalization fileEncoding="windows-1256" responseEncoding ="windows-1256" requestEncoding="windows-1256" culture ="ar-sa" uiCulture ="ar-sa" />

لا مش لزم يكون عندك قاعدة بيانات

تم تعديل هذه المشاركة بواسطة fligant في 4 أغسطس 2007 في 23:02

Post Back Is My Enemy And JavaScript Is my Weapon

#9

مشكوور fligant

بس تعرف ما اقدر اقوول الا سبحان الله

نحن شو ورانا غير ندور والله يخلي google و ربعه بس تعرف اني خلصت google والحين بعمل بحث في live واذا ما حصلت بجرب yahoo يمكن نحصل شي ولا ما شيات

#10

السلام عليكم

اخي انا جرب كثييير , اخر شي حذفت هذا السطر

<authentication mode="Windows"/>

واشتغل , ولكن لا اعرف اهمية هذا السطر في اليوب كونفيق هل لنا بجواب اخواني ؟

#11

ههههه انا حذفت ملف كامل

بس مب موجود في ملف موقع جاهز ( personal web site starter kit )

تم تعديل هذه المشاركة بواسطة doto في 5 أغسطس 2007 في 01:36

#12
اقتباس
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Of

هل حاولت أن تفهم ما هذا ؟؟

#13
اقتباس
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Of

هل حاولت أن تفهم ما هذا ؟؟

#14

خخخ فهمته وحفظته ...

شو تباني اسوي اذا <customErrors> اووردي مكتوب في web.config

انا جربت سويت صفحه عاديه ما فيها شي وما اشتغلت .... فحذفت ملف web.config

وجربت personal web site kit موقع جاهز ..... ما اشتغل

بس في الصفحه الفاضيه اضفت <customErrors> طلعلي مشكلع الوندوز

اما في موقع هو اوردي موجود = remotonly

#15

عزيز يالكريم :

(اووردي) كلمة ليست عربية و ربما أردت أن تقول (مسبقا) --راجع قوانين المنتدى من فضلك

أما بالنسبة للأخ Scool فقد قصد أن تفهم معنى العبارة

أي تقوم بتعديل الموجود <customErrors> حتى يظهر لك الخطأ الحقيقي وليس رسالة خطأ عادية

قم بتعديله ان وجد كالتالي:

<customErrors mode="Off"/>

وسيظهر لك الخطأ الأصلي (الخطأ التقني)

اذا لم تتمكن من حل المشكلة اعرضها في المنتدى وستجد الحل ان شاء الله

#16

انا كتبت شو المشكله الي طلعت

في حاله صفحه عاديه يقول <authentication mode="Windows" />

اما في خيار personal web site kit فما طلعلي شي لانه هو موجود وهذا الكوود

<?xml version="1.0"?>
<configuration>
	<connectionStrings>
		<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient" />
		<remove name="LocalSqlServer"/>
		<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />
	</connectionStrings>
	<system.web>
		<pages styleSheetTheme="White"/>
		<customErrors mode="RemoteOnly"/>
		<compilation debug="false"/>
		<authentication mode="Forms">
			<forms loginUrl="Default.aspx" protection="Validation" timeout="300" />
		</authentication>
		<authorization>
			<allow users="*"/>
		</authorization>
		<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
		<roleManager enabled="true"/>
		<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
			<providers>
				<add name="XmlSiteMapProvider"
					 description="SiteMap provider which reads in .sitemap XML files."
					 type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
					 siteMapFile="web.sitemap"
					 securityTrimmingEnabled="true"/>
			</providers>
		</siteMap>
	</system.web>
	<location path="Admin">
		<system.web>
			<authorization>
				<allow roles="Administrators"/>
				<deny users="*"/>
			</authorization>
		</system.web>
	</location>
</configuration>
#17

طيب عدل العبارة التالية:

<customErrors mode="RemoteOnly"/>

لتصبح :

<customErrors mode="Off"/>
#18

هذا الي طلع لي :

والمشكله في Line 12: <authentication mode="Forms">

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error: 


Line 10: 		<customErrors mode="Off"/>
Line 11: 		<compilation debug="false"/>
Line 12: 		<authentication mode="Forms">
Line 13: 			<forms loginUrl="Default.aspx" protection="Validation" timeout="300" />
Line 14: 		</authentication>

تم تعديل هذه المشاركة بواسطة doto في 5 أغسطس 2007 في 11:46

#19

لم تقم بعمل مجلد المشروع Virtual Directory <_< <_< ؟؟

#20

اخ arwany ما مهة هذا السطر <authentication mode="Forms/windows">

#21

تظهر هذه المشكلة عادة في مثل هذه الحالات

فالخاصية authentication (ان صح تعبير خاصية) توضع فقط في ملف اعداد المجلد الافتراضي في المسار

~/

والتي تعني في الروت

واذا تم تعريفها في ملف اعدادات موجود في مجلدات فرعية فلن يقبل المترجم هذه الحالة وستعتبر خطأ RunTime

فقط قم باعداد المجلد الذي وضعت الملفات فيه كمجلد افتراضي Virtual Directory وستنتهي مشكلتك ان شاء الله

#22

??????????????????????????????

لحظه !

يعني ملفات لازم اتكون في في الملف الرئيسي ؟؟؟

وشو يعني Virtual Directory

هل مثل ماهو مذكوور في هاي الصفحه :

/index.php?showtopic=129431

تم تعديل هذه المشاركة بواسطة doto في 5 أغسطس 2007 في 16:14

#23

عزيزي الكريم

المجلد الافتراضي هو مجلد تم اعداده ليكون تطبيق ويب بشكل منفصل

فمثلا لنقل لديك المجلد abc والذي هو المجلد الأساسي في تطبيقك

وتريد انشاء مجلد داخله (xyz) ولكن يعمل بشكل منفصل عنه

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

هذه الميزة موجودة في ويندوز سيرفر من خلال مدير IIS أما على الويب فهي متوفرة (غالبا) في Control Panel للموقع

تكون أحيانا محدودة (عدد معين من المجلدات الافتراضية في خطة الاستضافة ) وتكون أحيانا غير محدودة في بعض الخطط المميزة

فهي ميزة يجب التدقيق عليها عند شراء خطة الاستضافة

ملاحظة: يعمل التطبيق ضمن المجلد الافتراضي (xyz) ضمن نطاق مختلف عن التطبيق الأساسي (abc) ولا يتشاركان الموارد (Session , Application Domain ...etc)

#24

انا عندي وندوز فيستا هوم برميوم

كل الي سويته اني نزلت visual web developer مع sql

فـ IIS هل يكون في الجهاز ام انا انزله ؟

لاني دورت في النت بس اغلب المواضيع عن xp وتقول لازم ادخل cd الويندوز

#25

الحمد لله اتغيرت المشكله

Server Error in '/o' Application.
--------------------------------------------------------------------------------

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) 
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: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
	   <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace: 


[SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735043
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
   System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) +820
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
   System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
   System.Web.Security.SqlRoleProvider.RoleExists(String roleName) +482
   System.Web.Security.Roles.RoleExists(String roleName) +242
   ASP.global_asax.Application_Start(Object sender, EventArgs e) +60




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

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

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