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

آه يا .. Web.config

بدأه العقده في 13 أكتوبر 2009 · 10 رد · 2,989 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه ،،

قمت بعمل موقع وعند رفعه على السيرفر الخاص بالجهة المستفيده ظهرت الرساله أدناه :

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>

طبعا حاولت عمل ذلك ولكن دون جدوى ! فهل من حل لهذا اللغـز :wacko:

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#2

السلام عليكــم ورحمـة الله وبركاتــه ،،

هل جربت موقعك على IIS الخاص بجهازك قبل رفعه؟ إذا لم تفعل فافعل.

قم بتعديل الوسم CUSTOMERROR MODE إلى "OFF" حتى تعرف ما هو الخطأ

عموما " قد تجد في هذا الرابط ما يفيدك/index.php?showtopic=200808

#3
اقتباس
هل جربت موقعك على IIS الخاص بجهازك قبل رفعه؟ إذا لم تفعل فافعل.

أكيد طبعاً .. المشكله على الموقع المستضيف وقد قمت بتعديل ملف Web.Config بــ <customErrors mode="Off"></customErrors> ظهر لي التالي :

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 24:			 ASP.NET to identify an incoming user. 
Line 25:		 -->
Line 26: 		<authentication mode="Windows"/>
Line 27: 		<!--
Line 28:			 The <customErrors> section enables configuration 


Source File: D:\inetpub\vhosts\schooleast.net\httpdocs\eforms\web.config	Line: 26 


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

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#4

وجربت بالوضعيه authentication mode=None ظهرت لي الرساله التاليه :

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 24:			 ASP.NET to identify an incoming user. 
Line 25:		 -->
Line 26: 		<authentication mode="None"/>
Line 27: 		<!--
Line 28:			 The <customErrors> section enables configuration 


Source File: D:\inetpub\vhosts\schooleast.net\httpdocs\eforms\web.config	Line: 26 


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

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#5

هذه محتويات ملف Web.Config حالياً :

<?xml version="1.0"?>
<!-- 
	Note: As an alternative to hand editing this file you can use the 
	web admin tool to configure settings for your application. Use
	the Website->Asp.Net Configuration option in Visual Studio.
	A full list of settings and comments can be found in 
	machine.config.comments usually located in 
	\Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<appSettings/>
	<connectionStrings/>
	<system.web>
		<!-- 
			Set compilation debug="true" to insert debugging 
			symbols into the compiled page. Because this 
			affects performance, set this value to true only 
			during development.
		-->
		<compilation debug="false"/>
		<!--
			The <authentication> section enables configuration 
			of the security authentication mode used by 
			ASP.NET to identify an incoming user. 
		-->
		<authentication mode="None"/>
		<!--
			The <customErrors> section enables configuration 
			of what to do if/when an unhandled error occurs 
			during the execution of a request. Specifically, 
			it enables developers to configure html error pages 
			to be displayed in place of a error stack trace.	
		-->

<customErrors mode="Off"></customErrors>

	</system.web>
</configuration>

فهل من حل !

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#6

انت واخد الاستضافة من جودادى ؟؟

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

اصلى كنت عامل موقع ببرنامح ironspeed5

وكام عندي مشكلة شبيه بدي

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

#7

المشروع ASP.NET 2.0 & C# Code & SQL Server 2005

مقدم الخدمه المستضيف يدعم ASP.NET و Sql Server 2005

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#8

السلام عليكم

على الاغلب ان الحل هو بانشاء virtual directory من خلال لوحة التحكم والسبب انك وضعت التطبيق داخل مجلد عادي هو eforms .

فعليك بالبحث عن virtual directory داخل لوحة التحكم او app settting

#9

انا مع الاخ طارق بس بردة تاكد من اعدادات الامان trast level

#10
TareqVB كتب:
السلام عليكم

على الاغلب ان الحل هو بانشاء virtual directory من خلال لوحة التحكم والسبب انك وضعت التطبيق داخل مجلد عادي هو eforms .

فعليك بالبحث عن virtual directory داخل لوحة التحكم او app settting

هذا صحيح، هذه المشكلة تحدث عندما تحمل برنامجك على ملجد ليس Application في ال IIS

الحل، اما ان تصنع virtual Directory أو أن تتصل بمزود الاستضافة لمساعدتك.

بالتوفيق

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

#11
اقتباس
فعليك بالبحث عن virtual directory داخل لوحة التحكم او app settting
اقتباس
انا مع الاخ طارق
اقتباس
هذا صحيح، هذه المشكلة تحدث عندما تحمل برنامجك على ملجد ليس Application في ال IIS

الحل، اما ان تصنع virtual Directory أو أن تتصل بمزود الاستضافة لمساعدتك.

نعم هو ذاك الــ virtual Directory وسبب حيرتي ان الجهة المستفيده لديهم قسم IT وهم من شككوني بأن الخلل في المشروع وأرسلو لي حساب صلاحيات الدخول للـ ftp الخاص بالــ eForms Directory لاقوم بحل المشكله وقمت برفعه لأن أول مره هم من قام بذلك بعد إستلامهم المشروع المهم عند مراجعتهم للمختصين الذين يملكون السيرفر حددوا لهم إستخدام جزئيه في لوحة التحكم لتفعيل eForms ليصبح virtual Directory وأشتغل الموقع ولله الحمد والمنه .

أشكر الجميع على مشاركتهم لي فقد كانت هذه المعلومات داعمه لما كنت متوقعه ولمواجهة فريق IT الخاص بهم .

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

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