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

عندي مشكله في web.config

بدأه yousef qazzaz في 14 مايو 2011 · 31 رد · 2,384 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اول مره طلعلي مشكله في <authentication mode="Windows"/>

عملته Forms طلعلي نفس خطاء

عملته None طلعلي نفس خطاء

بعدين قمت بحذف الجلمه كامله طلعلي Error ثاني

Server Error in '/yousefcode' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load the assembly 'App_Web_jcxw0ce6'. Make sure that it is compiled before accessing the page.

Source Error:

Line 1: <%@ page language="VB" autoeventwireup="false" inherits="a1, App_Web_jcxw0ce6" %>

Line 2:

Line 3: <%@ Register src="header.ascx" tagname="header" tagprefix="uc1" %>

Source File: /yousefcode/ampc/a1.aspx Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

ايش الحل مع انه الفايل App_Web_jcxw0ce6 موجود في فولدر اسمه bin ????? ايش الحل ياشباب

وهذا ملف الكود؟؟؟؟ 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="MyConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True;" />
    </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. 
        -->
        <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>
        -->
        <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>
#2

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

اخي الاحظ انك قمت باضافة inherits="a1, App_Web_jcxw0ce6" ليش اضافة اسم ال Assembly هنا؟!! قم باضافة مرجع له من Add Reference وقم بوضع الوسم Register للملف المطلوب

.:: Wish to become better and better ::.

#3

اخي الكريم،،،،،

انا ما اضفته عليه هذا لما سويت publish نفس البرنامج vb.net2008 عمل فايل اسمه bin حطه فيه هذي الملفات .ddl و غير على نفس فايلات aspx وحط بدل source هذا inherits

كيف يعني اخوي اسوي Reference ..؟؟؟؟ و Register ؟؟؟؟ مافهمت عليك؟

تم تعديل هذه المشاركة بواسطة yousef qazzaz في 16 مايو 2011 في 22:02

#4

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

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

.:: Wish to become better and better ::.

#5
yousef qazzaz كتب:

بس الملف مافيه تصميم بس كود والاشياء المهم ما ركبت عليه التصميم يعني فيك تقول مشروع بدائي

وياريت تعدل عليه من عندك لو شفت شي غلط :)

ياريت تجرب ترفعه على سيرفر وتقولي اذا نفع معك اخي العزيز

website1.zip

تم تعديل هذه المشاركة بواسطة yousef qazzaz في 16 مايو 2011 في 23:56

#6

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

اخي هذا التطبيق نشر ك Precompiled Website يعني مترجم مسبقا فلا يمكنك تعديل اي مصدر فيه .. يستخدم البعض هذه الطريقه لمنع الاخرين من تعديل المصدر ...

.:: Wish to become better and better ::.

#7

طيب يعني بدك اعطيك الملفات كامله يعني؟؟

ولا يهمك هذا هوه كامل مع ملفات aspx.vb

WebSite1.zip

تم تعديل هذه المشاركة بواسطة yousef qazzaz في 17 مايو 2011 في 08:05

#8

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

اخي الموقع شغال .. وين المشكله بالضبط؟!!

.:: Wish to become better and better ::.

#9

المشكله لما ارفعه على سيرفر على النت

#10

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

اخي اذا تم رفعه على الانترنت تأكد من اصدار الدوت نت نفس اصدار مشروعك, بالاضافه قم باعداد ال CustomError في ملف ال Web.Config وقم بتغيير نوع التحقق Authentication الى Forms اذا انت مستخدمها او اضبطها الى None .. ان شاء الله يضبط معاك والا قم بكتابة عنوان الموقع على الانترنت للتعرف على الخطأ

.:: Wish to become better and better ::.

#11

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

على العموم انا رفعته على موقع http://aspspider.com

وهذا رابط اول صفحه في المشروع http://aspspider.info/yousefcode/website1/Default.aspx

طبعا بعد ما حذفة جملة

<authentication mode="Windows"/>

لانه طلعلي error

وغيرتها Form و None ونفس error

#12

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

اخي انت قمت بعملية نشره بدون كود تأكد من انك سويت Build للمشروع

.:: Wish to become better and better ::.

#13

طيب ممكن تسويه انت هذا الكود عندك ممكن ؟

لان انا متأكد اني سويته

#14

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

اخي مش كود قم بالنقر على المشروع باليمين واختار Build ليتم ترجمت المشروع بأكمله والتأكد من الاخطاء قبل التصدير

.:: Wish to become better and better ::.

#15

سويته بدل المره الف :)

وبعدين؟

------ Build started: Project: C:\...\WebSite1\, Configuration: Debug .NET ------

Validating Web Site

Building directory '/WebSite1/'.

Validation Complete

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

#16

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

اخي يعني مافي طلعت اخطاء؟؟؟ انصحك برفع المشروع كاملا في الموقع بعد التأكد من صحة الأخطاء قم بعمل Publish

.:: Wish to become better and better ::.

#18

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

اخي تأكد من ان المستخدم الحالي لدية صلاحية للاتصال بقاعدة البيانات

.:: Wish to become better and better ::.

#19

اخي الكريم ممكن تضيفني على الايميل؟ ss_y203@hotmail.com

#20

المشكلة الاولي في ان العنصر تم اضافته من قبل ConnectionString

المشكلة الثانية في اسم الخادم لا اعتقد ان اسمه .\SQLExpress

#21

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

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

.:: Wish to become better and better ::.

#22

طيب ممكن واحد برفعه وبجرب

#23

ايش اسوي يا شباب

انا ما عندي فكره عن هاذي المشاكل؟؟؟

#24

اسءل الشركة عن اسم الخادم وضعة في الملف الخاص بك

#25

نفس الشركه حاطه

Connection string for SQL Server Express

You are allowed to upload and attach SQL Server databases. The database will be created with UserId as prefix. For example, if you attach an SQL Express database with the name 'Employees', the actual database name will be YourUserId_Exployees.

Here is a sample connection string to connect to SQL Server from your free web hosting account:

"Data Source=.\SQLExpress;Persist Security Info=True;Integrated Security=SSPI;Initial Catalog=YourUserId_DatabaseName"

طبعا انا سويت نفس الشي مع تغير YourUserId_DatabaseName الي اسم اليوزر_اسم الداتا

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