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

ماهي مشكلة هذه Database

بدأه هيموووو في 10 فبراير 2012 · 15 رد · 2,412 مشاهدة · في 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>

_______________________

errordatabase.rar

#2

السلام عليكم.

يرجى فتح ملف web.config الموجود في المشروع و قم بتغيير السطر الخاص ب : CustomErrors إلى التالي:

<customErrors mode="Off"/>

ثم أعد تشغيل البرنامج و عندها ستظهر تفاصيل الخطأ الحقيقي.

يمكنك فحص رسالة الخطأ, أو وضعها هنا للاطلاع عليها.

#3
Adel Khayata كتب:

السلام عليكم.

يرجى فتح ملف web.config الموجود في المشروع و قم بتغيير السطر الخاص ب : CustomErrors إلى التالي:

<customErrors mode="Off"/>

ثم أعد تشغيل البرنامج و عندها ستظهر تفاصيل الخطأ الحقيقي.

يمكنك فحص رسالة الخطأ, أو وضعها هنا للاطلاع عليها.

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

اين يتم التعديل بالزبط لكي اقوم به هذا ملف web.config في المرفقات

web.rar

#4

استبدل الأسطر التالية:

    	<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
        	<error statusCode="403" redirect="NoAccess.htm" />
        	<error statusCode="404" redirect="FileNotFound.htm" />
    	</customErrors>

بالسطر التالي :

<customErrors mode="Off"/>

تم تعديل هذه المشاركة بواسطة Adel Khayata في 11 فبراير 2012 في 09:54

#5

لم تحل وظهرة الرسالة التالية

________________________

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>

_____________

هل ملف 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>

<configSections>

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />

<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

</sectionGroup>

</sectionGroup>

</sectionGroup>

</configSections>

<appSettings />

<connectionStrings>

<add name="ConnectionString" connectionString="server=localhost;Database=alfaidiaqar;Uid=aidaqar;Password=123456789;" />

</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="true">

<assemblies>

<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

</assemblies>

</compilation>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<!--

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>

-->

<pages>

<controls>

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

</controls>

</pages>

<httpHandlers>

<remove verb="*" path="*.asmx" />

<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

</httpHandlers>

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

</httpModules>

</system.web>

<system.codedom>

<compilers>

<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

<providerOption name="CompilerVersion" value="v3.5" />

<providerOption name="WarnAsError" value="false" />

</compiler>

<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

<providerOption name="CompilerVersion" value="v3.5" />

<providerOption name="OptionInfer" value="true" />

<providerOption name="WarnAsError" value="false" />

</compiler>

</compilers>

</system.codedom>

<!--

The system.webServer section is required for running ASP.NET AJAX under Internet

Information Services 7.0. It is not necessary for previous version of IIS.

-->

<system.webServer>

<validation validateIntegratedModeConfiguration="false" />

<modules>

<remove name="ScriptModule" />

<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

</modules>

<handlers>

<remove name="WebServiceHandlerFactory-Integrated" />

<remove name="ScriptHandlerFactory" />

<remove name="ScriptHandlerFactoryAppServices" />

<remove name="ScriptResource" />

<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

</handlers>

</system.webServer>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>

_____________

#6

غير الكود من

<!--
            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>
        -->

الى

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

ظهرة رسالة الخطأ التاليه

____________________

Server Error in '/' Application.

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

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

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.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Source Error:

[No relevant source lines]

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\982a4386\6ee0c3b4\App_Web_f3lnd_qs.5.cs Line: 0

Stack Trace:

[ViewStateException: Invalid viewstate.

Client IP: 84.235.72.40

Port: 10794

User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)

ViewState: /wEPDwUKMTk1NjM3ODAwMQ9kFgJmD2QWAgIDD2QWAgIHDxYCHgtfIUl0ZW1Db3VudGZkZHnBc1vc6s9fdDOUH/6Vd0LYYUHx

Referer: http://www.alfaidiaqar.com/Customer_Login.aspx

Path: /Customer_Login.aspx]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]

System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106

System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14

System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +237

System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4

System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37

System.Web.UI.HiddenFieldPageStatePersister.Load() +207

System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105

System.Web.UI.Page.LoadAllState() +43

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785

System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242

System.Web.UI.Page.ProcessRequest() +80

System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21

System.Web.UI.Page.ProcessRequest(HttpContext context) +49

ASP.customer_login_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\982a4386\6ee0c3b4\App_Web_f3lnd_qs.5.cs:0

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

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

Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420

اتمنى ان اجد حل للمشكلة عندكم

وهذه صورة في المرفقات للمشكلة

error.rar

#8

على الاغلب ان المشكلة من machine key بحيث يجب وضعه يدويا في web.config بدلا من ان يكون تلقائيا

طريقة عمله من خلال هذا الموقع

#9

الحقيقة ليس عندي المام بالغة الانجليزية فهل هناك حل اسرع وافضل

#10
اقتباس
الحقيقة ليس عندي المام بالغة الانجليزية فهل هناك حل اسرع وافضل

ارجع للموقع السابق واضغط على الزر Generate machinekey حيث يتم وضع نص في مربع النص الاول قم بنسخ هذا النص والصقه في الملف web.config تحت <system.web> .

مربع النص MachineKey هو ماتحتاج نسخه

مربع النص MachineKey in web.config هو كمثال حيث يجب وضع النص .

#11

لم افهمك لكن

ضغطت على الزر Generate machinekey

MachineKey

______________________________________________________________

<machineKey validationKey='867B8CD566AA005A0E6E69EE2BA8B0E42FA89AA231DA14EA9FC1B7C6BAA41E31B14A52BB4400B941EFBB4106E089F3D2B42F3139E89B38A131D310F13633BD62' decryptionKey='CAB73262CA4C9DCAF7C83303ADCF4ABE6F5317A22E85498E' validation='SHA1'/>

MachineKey in web.config

______________________________________________________________

<?xml version="1.0"?>

<configuration>

<appSettings/>

<connectionStrings/>

<system.web>

<machineKey validationKey='867B8CD566AA005A0E6E69EE2BA8B0E42FA89AA231DA14EA9FC1B7C6BAA41E31B14A52BB4400B941EFBB4106E089F3D2B42F3139E89B38A131D310F13633BD62' decryptionKey='CAB73262CA4C9DCAF7C83303ADCF4ABE6F5317A22E85498E' validation='SHA1'/>

</system.web>

</configuration>

________________________________________________________________

وظهر نصين انسخ الي في MachineKey او الي MachineKey in web.config

واين انسخه بالزبط

بارك الله فيك

تم تعديل هذه المشاركة بواسطة هيموووو في 11 فبراير 2012 في 13:37

#12

انسخ الي في MachineKey الى ملف web.config الخاص بموقعك وضعه تحت سطر <system.web>

الموجود في MachineKey in web.config هو مثال لكيفية وضعه

#13

الحقيقة ما ادري ماذا اقول لكن لقد قمت بتغيير المتصفح وانحلت المشكلة

فهل هذا الحل الفعلي؟؟؟؟؟؟؟؟؟؟؟؟؟؟

#15

قم بعمل نسخة من web.config

ثم قم بحذف web.config من المشروع وقم بتشغيل المشروع وبعد التشغيل قم بمقارنة الملف الاول والثاني لتعرف اين الخطء

#16

اعتقد والله اعلم أن المشكلة في أن الاتصال بقاعدة البيانات مازال مفتوح

سبحان الله وبحمده سبحان الله العظيم


 


 


syria.jpg


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