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

مشكلة في رفع الملفات للسيرفر

بدأه ابوضحى في 23 مارس 2008 · 29 رد · 3,529 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

:wub:

صممت موقع عن طريق ASP.NET 2.0 وبعد الانتها من التصميم

تم اختيار BULID WEBSIT من قائمة BULID

وبعدها اخترت PUBLISH WEBSID من قائمة BULID

بعد تم رفع الملفات للسيرفر ولكن للاسف لم يعمل المشروع

نرجوا المساعدة في حل المشكلة

نص الرسالة ادناه

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>

#2

وينكم يا شباب انا في انتظار الحل

الموقع على النت www.shendi.sd

#3

أولا web.config محتاج للتعديل حسب قيم السيرفر أونلاين .. ويرجي تعديله حتى يظهر رسائل الخطأ بجعل

<customErrors mode="Off"/> لأن الرسالة الظاهرة ليست رسالة الخطأ بعينها وإنما رسالة تفيد وجود خطأ

ثانياً في الغالب تكون المشاكل التي تحدث أول الرفع هي المتعلقة باللغة والربط على قاعدة البيانات

جرب تعدل في web.config وضع لنا هنا رسالة الخطأ الحقيقية ودعنا نرى

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#4

السلام عليكم ورحمة الله

لنعرف الخطأ ارجو ان تعمل كما ذكر الاخ moh_kin

بعض الاخطاء الشائعة :

1- اصدار الفريموورك على السيرفر مختلف عن موقعك

2-لم تقم بانشاء Virtual directory وهي من لوحة التحكم للموقع

3- لم تغيير بيانات الاتصال بقواعد البيانات

#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.

Visual Basic options:

Set strict="true" to disallow all data type conversions

where data loss can occur.

Set explicit="true" to force declaration of all variables.

-->

<compilation debug="true" 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>

</pages>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<authentication mode="Windows"/>

<!--

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" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

-->

</system.web>

</configuration>

ماهو المطلوب تعديله حتى يعمل الموقع

#7

تم التعديل

<?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.

Visual Basic options:

Set strict="true" to disallow all data type conversions

where data loss can occur.

Set explicit="true" to force declaration of all variables.

-->

<compilation debug="true" 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>

</pages>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<authentication mode="Windows"/>

<!--

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="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

<customErrors mode="Off"/>

-->

</system.web>

</configuration>

ولازالت المشكلة قائمة

#9

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

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#10

نفذت المطلوب ولكن لا زالت المشكلة

هل يوجد موقع مجاني ارفع فيه الملفات للتجربة

لاني اصبحت اشك في موقع الاستضافة

وضع الملفات على السرفر للمراجعة

post-64607-1206368963_thumb.jpg

#11

السلام عليكم ورحمة الله

لحد الان لم تنفذ المطلوب بشكل صحيح .

لكن بما اني عرفت لوحة التحكم التي تستخدمها فادخل على Web Site Settings وهناك تجد نسخة asp.net والمفروض ان يكون عندك 1.1 و 2.0 فيجب عليك ان تختار 2.0 لانك تعمل على فيجوال 2005 .

وان لم تنفع ارجو ان ترفق ملف web.config حتى نعدلها بشكل الصحيح

#12

شكرا لك على الرد

لقد ضبط asp.net 2.0 مسبقا على لوحة التحكم

مرفق لك الملف

<?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.

Visual Basic options:

Set strict="true" to disallow all data type conversions

where data loss can occur.

Set explicit="true" to force declaration of all variables.

-->

<compilation debug="true" 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>

</pages>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<authentication mode="Windows"/>

<!--

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="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

-->

<customErrors mode="Off"/>

</system.web>

</configuration>

#13

هنالك سؤال هل يحتاج asp2.0 الى iis خاص به ام هنالك اعدادات على iis المصاحب للويندوز

#14

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

الملف هذا صحيح لكن الخطأ لحد الان لم يظهر بالتالي هناك مشكلة اما في تحميل الملف او وضعه في مكان غير مناسب او....

اقتباس
هنالك سؤال هل يحتاج asp2.0 الى iis خاص به ام هنالك اعدادات على iis المصاحب للويندوز

المفروض من الشركة ان تكون موفرة كل شيء لذا لا يلزمك اي شيء بخصوص اعداد IIS .

#15

أخي الكريم إرفق لنا نسخة من موقعك في المرفقات بعد تعديلك للقيم التي تريد منا ألا نراها أو نطلع عليها .. يعني اربط موقعك مثلاً على Northwind .. وطبعاً ذلك في حالة إذا كان متاح منك فعل ذلك .. وإلا يجب أن تظهر لنا رسالة الخطأ الحقيقية حتى نتمكن من المساعدة

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#16

هذه الملفات قبل المعالجة والرفع

ليس لدي اي مانع في ارسال الدخول للموقع في لوحة التحكم لمشاهدة الاعدادات

حيث انني يعتبر مبتدئ وفي حوجة للتعلم والفائدة

ارسل الى الايميل الخاص بك

folder.rar

#17

لا ترسل أخي الحبيب بيانات الدخول للوحة التحكم لأحد الآن .. دعنا نجرب ونحاول ودع هذا السبيل كآخر حل

أنا نزلت الموقع وسأجرب إن شاء الله

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#18

الآن انا في طور عمل remove للفجوال استديو وال iss واعادة تحميلها ربما تساعد في حل الموضوع

هنالك مجلدات الصور لم ارفقها بسبب كبر حجمها

#19

لقد جربت ولم تسبب عندي أي مشكلة .. ولكني قمت ببعض التغييرات في web.config فأرجو تجربتها على السيرفر

وإليك أخي النسخة المعدلة من ملفاتك

folder.rar

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#20

السلام عليكم ورحمة الله

تصميم موقعك ما في اي مشكلة

http://3lamat.net/shendi

وقد قمت بانشاء Virtual directory وهي من لوحة التحكم للموقع لكن انت لا تحتاج الى ذلك لانك تتعامل مع اساس الموقع wwwroot

فالمشكلة اعتقد انها من شركة الاستضافة لكن قبل ذلك انصحك بعمل مجلد جديد ووضع الموقع فيه ثم من لوحة التحكم اعمل virtual directory على هذا المجلد وجرب بعد ذلك

#21

سوف اجرب الآن واقوم بالرد عليكم

ونشكركم على هذا المجهود

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

#22

لقد قمت بانشاء Virtual directory وتحميل الملفات عليه ولكن ظهرت نفس المشكلة

#23

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

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

#24

لقد فتحت تذكرة لديهم الآن وهذه للمرة الرابعة عسى ان يفدوني بشئ

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

واشكرك انت والاخ طارق على المجهود ولو الله وانتم من بعده لتركت asp.net لاني تعبت بسبب المشكلة رغم انني لم ادخل في البرمجة الحقيقة فيه وقواعد البيانات

:wacko:

#25

السلام عليكم ورحمة الله

اخي ابوضحى انت لحد الان لم تغيير web.config حتى يظهر الخطأ بشكله الصحيح لذا سارفق لك الملف مع التغيير وارجو ان ترفعه الى موقعك وتستبدل القديم

web.rar

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