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

مشكلة عند رفع الموقع

بدأه abdalhady في 15 فبراير 2010 · 10 رد · 1,492 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

بعون الله قمت بتصميم موقع و هو يعمل بشكل جدي على جهازي و عندما قررت رفع الموقع على سيرفر بعد حزه لم يعمل الموقع و دائما تظهر اخطاء مع العلم انه يعمل على جهاي بشكل جيد

قمت بالاتصال بالموقع عن طريق الفرجول استديو و قمت بانشاء صفحات اختبار و تم عرضها و تشغيلها

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

مع العلم تأكت من الاعدات و اصدار ASP و غيره

حاليا يظهر الخطأ التالي

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 52:             ASP.NET to identify an incoming user. 
Line 53:         -->
Line 54:     <authentication mode="Windows" />
Line 55:     <!--
Line 56:             The <customErrors> section enables configuration

هل يوجد نصائح قبل رفع الموقع على السيرفر

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

فلماذا

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

#2

هل مستظيفك يدعم asp تأكد من ذلك إذا كان نعم تأكد من ملف web.config

#3

تأكد من أن الفولدر الذي وضعت فيه التطبيق معرف على أنه Virtual Folder

#4

السلام عليكم

تم التأكيد من الاعدات و الملفات و الموقع استضافة ASP

الخطأ الحالي الذي يظهر هو

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: Could not load file or assembly 'DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.

Source Error: 


Line 41:         <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 42:         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 43:         <add assembly="DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
Line 44:         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Line 45:         <add assembly="DevExpress.Data.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />


Source File: E:\Domains\lgsyria.com\wwwroot\Test\web.config    Line: 43 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

و شكرا

#5

من الخطأ

Parser Error Message: Could not load file or assembly 'DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.

نعرف أن السيرفر لا يحتوي على مكتبة DevExpress.Web

#6

السلام عليكم

المشكلة من ادوات Devexpress . فاذا كانت هذه الادوات موجودة في المجلد bin وظهر هذا الخطأ فهذا يعني انها لاتعمل في medium trust level وهو مستوى امان مستخدم في شركات الاستضافة او انها بحاجة الى ان تسجل في GAC .

لذا عليك الاتصال بالدعم الفني للموقع .

#7
اقتباس
السلام عليكم

المشكلة من ادوات Devexpress . فاذا كانت هذه الادوات موجودة في المجلد bin وظهر هذا الخطأ فهذا يعني انها لاتعمل في medium trust level وهو مستوى امان مستخدم في شركات الاستضافة او انها بحاجة الى ان تسجل في GAC .

لذا عليك الاتصال بالدعم الفني للموقع .

فعلا الملفات غير موجودة في مجلد bin

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

#8

السلام عليكم

الادوات DevExpress هي ادوات خارجية (لاتأتي مع الفيجوال استوديو) ولا بد انك قمت بتنصيبها على جهازك فانت ادرى بمكانها .

وما سيتم ارفاقه يعتمد على الادوات التي استخدمتها من هذه المجموعة .

والمشكلة بعد ذلك اعتقد ستكون في medium trust level لذا انظر الى موقع الدعم الفني لشركة devexpress

http://www.devexpress.com/Help/?document=ExpressApp/CustomDocument3034.htm&levelup=true

#9

تم حل المشكلة جزاكم الله كل خير

لكن السؤال الثاني

مع الموقع هناك قاعدة بيانات من MS Server 2005

طبعا عند استدعاء بيانات ظهر خطأ

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

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) 
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: 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)

Source Error: 


Line 20:     protected void Page_Load(object sender, EventArgs e)
Line 21:     {
Line 22:         s.Open();
Line 23:     }
Line 24:     protected void Button1_Click(object sender, EventArgs e)

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

و تم تعديل بيانات الاتصال

لكن لماذا لم تعمل

او كيف يتم رفع قاعدة البيانات من هذا النوع على المضيف

هل عن طريق لوحة تحكم الموقع ام عن طريق مجلد App_Data

و شكرا

#10

يجب الأول أن تتأكد أن شركة الاستضافة تدعم MSSQL ... لأن الكثير من خطط الاستضافة لا تتضمن MSSQL وفقط تسمح بـ MSAccess ...

وبعد مراجعة شركة الاستضافة :

1- لو كانت لا تدعم MSSQL فيجب أن تعيد بناء قاعدة البيانات إلى MSAccess طبعاً مع تغيير البروفايدر من SQLClient إلى OleDbCLient.

2- لو كانت تدعم MSSQL فيجب معرفة عبر لوحة تحكمك كيف تبني وترفق قواعد البيانات ... وهذه تعرفها عبر الدعم الفني والشروحات على موقع شركة الاستضافة.

ASP.NET Team Leader

moh_kin_mah@hotmail.com

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

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

#11

السلام عليكم

كما ذكر الاخ moh_kin يجب عليك الدخول الى لوحة التحكم وثم الذهاب الى الدومين الخاص بك وثم قواعد البيانات وانشاء مستخدم وقاعدة بيانات من هناك .

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

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