نمایش نتایج 1 تا 2 از 2

نام تاپیک: خطای HTTP Error 500.19 - Internal Server Error

  1. #1
    کاربر دائمی
    تاریخ عضویت
    اردیبهشت 1393
    محل زندگی
    ایران
    پست
    487

    Lightbulb خطای HTTP Error 500.19 - Internal Server Error

    سلام
    جدیدا سرور وب سایت رو عوض کردم قبلا ویندوز 8.1 و iis 8.5 بود الان ویندوز 10 2016 R2 و iis10 روش نصب هست.
    مشکلی که الان دارم اینه که هر کاری میکنم سایت اجرا نمیشه و این خطا رو میده :

    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.

    کد وب کانفیگ :

    <?xml version="1.0" encoding="utf-8"?>


    <configuration>
    <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.Entit yFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGrou p, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <section name="TravelEnterProject.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    </configSections>
    <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=.;Initial Catalog=TravelEnterDB;User ID=User;Password=rLyVhrghj#A39Ac" providerName="System.Data.SqlClient" />
    <add name="TravelEnterDBEntities" connectionString="metadata=res://*/AdakDbModel.csdl|res://*/AdakDbModel.ssdl|res://*/AdakDbModel.msl;provider=System.Data.SqlClient;pro vider connection string=&quot;data source=.;initial catalog=TravelEnterDB;persist security info=True;user id=User;password=rLyVhrdfffd@j#A39Ac;MultipleActiv eResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    <add name="TravelEnterDBEntities2" connectionString="metadata=res://*/Models.DbModel.TravelEnterModels.csdl|res://*/Models.DbModel.TravelEnterModels.ssdl|res://*/Models.DbModel.TravelEnterModels.msl;provider=Syst em.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=TravelEnterDB;user id=User;password=rLyVhr9dfdf39Ac;multipleactiveres ultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="fullsize" value="/uploadimage/UploadImages/" />
    <add key="Image900x500" value="/uploadimage/UploadImages/900x500/" />
    <add key="Image270x160" value="/uploadimage/UploadImages/270x160/" />
    <add key="Image70x70" value="/uploadimage/UploadImages/70x70/" />


    <add key="Sitekey" value="6LfbRCwUAAAAANSNLUZvBUMmn6Nzc-q" />
    <add key="Secretkey" value="6LfbRCwUAAAAAKDeRsyy7vcupQME1wO" />


    </appSettings>
    <system.web>
    <authentication mode="None" />
    <compilation debug="false" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <httpCookies requireSSL="true" />
    <customErrors mode="on" />


    </system.web>
    <system.webServer>
    <stripHeaders>
    <header name="Server" />
    <header name="X-Powered-By" />
    <header name="X-Aspnet-Version" />
    </stripHeaders>
    <httpProtocol>
    <customHeaders>
    <remove name="X-Powered-By" />


    <add name="X-Frame-Options" value="SAMEORIGIN" />
    <add name="Access-Control-Allow-Origin" value="*" />
    </customHeaders>
    </httpProtocol>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
    </modules>
    <rewrite>
    <rules>
    <rule name="Redirect to HTTPS" stopProcessing="true">
    <match url="(.*)" />


    <conditions>
    <add input="{HTTPS}" pattern="^OFF$" />
    </conditions>
    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
    </rule>
    <rule name="charter" enabled="false">
    <match url="^charter/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/(.*)" />
    <action type="Rewrite" url="Charter?depCountryId={R:1}&amp;DepCityId={R:2 }&amp;ArrCountryId={R:3}&amp;ArrCityId={R:4}&amp;F romdate={R:5}&amp;DateRange={R:6}&amp;ADT={R:7}&am p;CHD={R:8}&amp;INF={R:9}&amp;S={R:10}" />
    </rule>
    <rule name="Redirect non-www to www" patternSyntax="Wildcard" stopProcessing="true">
    <match url="*" />
    <conditions>
    <add input="{HTTP_HOST}" pattern="travelenter.com" />
    </conditions>
    <action type="Redirect" url="https://www.travelenter.com/{R:0}" />
    </rule>


    </rules>
    <outboundRules>
    <rule name="changeServerHeader">
    <match serverVariable="RESPONSE_Server" pattern=".*" />
    <action type="Rewrite" value="heloooo" />
    </rule>
    </outboundRules>
    </rewrite>
    <security>
    <requestFiltering>
    <verbs>
    <add verb="TRACE" allowed="false" />
    <add verb="HEAD" allowed="false" />
    <add verb="OPTIONS" allowed="false" />
    </verbs>
    </requestFiltering>
    </security>
    <tracing>
    <traceFailedRequests>
    <add path="*">
    <traceAreas>
    <add provider="ASP" verbosity="Verbose" />
    <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
    <add provider="ISAPI Extension" verbosity="Verbose" />
    <add provider="WWW Server" areas="Rewrite" verbosity="Verbose" />
    </traceAreas>
    <failureDefinitions timeTaken="00:00:00" statusCodes="500" verbosity="Ignore" />
    </add>
    </traceFailedRequests>
    </tracing>
    <staticContent>
    <clientCache cacheControlCustom="public" cacheControlMaxAge="96:00:00" cacheControlMode="UseMaxAge" />
    </staticContent>
    <caching>
    <profiles>
    <add extension=".woff" policy="CacheUntilChange" kernelCachePolicy="DontCache" />
    <add extension=".ico" policy="CacheUntilChange" kernelCachePolicy="DontCache" duration="00:00:30" />
    <add extension=".css" policy="DisableCache" kernelCachePolicy="DontCache" duration="24.00:00:00" />
    <add extension=".js" policy="DisableCache" kernelCachePolicy="DontCache" duration="24.00:00:00" />
    <add extension=".ttf" policy="CacheUntilChange" kernelCachePolicy="DontCache" duration="24.00:00:00" />
    <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="DontCache" duration="24.00:00:00" />
    <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="DontCache" duration="24.00:00:00" />
    </profiles>
    </caching>
    <httpErrors errorMode="Detailed" existingResponse="Replace">
    <remove statusCode="404" />
    <error statusCode="404" path="https://www.ttttttt.com/404.htm" responseMode="Redirect" />
    </httpErrors>


    </system.webServer>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbCon nectionFactory, EntityFramework">
    <parameters>
    <parameter value="v11.0" />
    </parameters>
    </defaultConnectionFactory>
    <providers>
    <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServ ices, EntityFramework.SqlServer" />
    </providers>
    </entityFramework>
    <system.serviceModel>
    <bindings>
    <customBinding>
    <binding name="CustomBinding_IFlightService">
    <textMessageEncoding messageVersion="Soap12" />
    <httpTransport />
    </binding>
    </customBinding>
    <basicHttpBinding>
    <binding name="BindingCharter" maxReceivedMessageSize="999999999" maxBufferSize="999999999" maxBufferPoolSize="999999999" sendTimeout="00:55:00" receiveTimeout="00:09:00" openTimeout="00:10:00" closeTimeout="00:10:00" />
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint name="BasicHttpBinding_ICharterService" address="http://localhost:8080/CharterWs/CharterService.svc" binding="basicHttpBinding" bindingConfiguration="BindingCharter" contract="CharterMiddleWebService.ICharterService" />
    <endpoint name="CustomBinding_IFlightService" address="http://82.50.209.208:8080/FlightMiddleService/FlightService.svc" binding="customBinding" bindingConfiguration="CustomBinding_IFlightService " contract="flightReference.IFlightService" />
    </client>
    </system.serviceModel>
    <applicationSettings>
    <TravelEnterProject.Properties.Settings>
    <setting name="TravelEnterProject_AdakFlightRefrence_AdakFl ight" serializeAs="String">
    <value>http://localhost:8080/FlightWS/AdakFlight.svc</value>
    </setting>
    <setting name="TravelEnterProject_RajaReference_online2Serv ices" serializeAs="String">


    <value>https://webservices.raja.ir/online2Services.asmx</value>
    </setting>
    <setting name="TravelEnterProject_CharterFlightsReference_S ervice1" serializeAs="String">
    <value>http://localhost:8080/CharterFlights/Flights.svc</value>
    </setting>
    <setting name="TravelEnterProject_AutoRentService_AutoRentS ervice" serializeAs="String">
    <value>http://service.karanehnovin.ir/AutoRentService.asmx</value>
    </setting>
    <setting name="AdakCharterLib_CharterMiddleWebService_Chart erService" serializeAs="String">
    <value>http://localhost:8080/CharterWs/CharterService.svc</value>
    </setting>
    <setting name="AdakTrainLib_AdakTrainWebReference_TrainServ ice" serializeAs="String">
    <value>http://127.0.0.1:8085/TrainService.svc</value>
    </setting>
    </TravelEnterProject.Properties.Settings>
    </applicationSettings>
    </configuration>


    جستجو که کردم فهمیدم باید بخش compilation تو وب کانفیگ داشته باشم که الان ندارم

    <section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" requirePermission="false"/>

    Untitled.png

    الان این بخش رو کجا باید قرار بدم و اینکه آیا مورد دیگری هم هست؟
    با تشکر

  2. #2
    کاربر دائمی
    تاریخ عضویت
    مهر 1390
    محل زندگی
    rayancode.ir
    پست
    1,559

    نقل قول: خطای HTTP Error 500.19 - Internal Server Error

    سلام.
    شما ارتباط با دیتابیست دچار مشکل شده.
    یک بار دیگه دیتابیس ، یوزر دیتابیس و نام دیتابیس رو با دقت پک کن و در webconfig هم اونها رو دقیق ست کن

تاپیک های مشابه

  1. HTTP Error 500.19 - Internal Server Error
    نوشته شده توسط نیکناز در بخش ASP.NET Web Forms
    پاسخ: 0
    آخرین پست: چهارشنبه 02 مرداد 1392, 09:31 صبح
  2. خطای IIS 7.5 Detailed Error - 500.19 - Internal Server Error
    نوشته شده توسط bahmansh در بخش ASP.NET Web Forms
    پاسخ: 2
    آخرین پست: شنبه 11 آذر 1391, 17:30 عصر
  3. سوال: خطای HTTP Error 500.22 - Internal Server Error
    نوشته شده توسط saied7468 در بخش ASP.NET Web Forms
    پاسخ: 3
    آخرین پست: پنج شنبه 06 بهمن 1390, 11:07 صبح
  4. HTTP Error 500.19 - Internal Server Error خطای
    نوشته شده توسط عادل شجاع تنگستانی در بخش ASP.NET Web Forms
    پاسخ: 2
    آخرین پست: سه شنبه 13 دی 1390, 18:07 عصر
  5. مشکل HTTP Error 500.19 - Internal Server Error چه طوری حل می شه؟
    نوشته شده توسط Behrouz1985 در بخش ASP.NET Web Forms
    پاسخ: 4
    آخرین پست: شنبه 11 دی 1389, 14:27 عصر

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •