如何从Http错误500.19中获取 - 内部服务器错误 [英] How Do I Get Ride From Http Error 500.19 - Internal Server Error

查看:86
本文介绍了如何从Http错误500.19中获取 - 内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF,ITS在我的笔记本电脑上正常工作,但当我把它放在我的桌面的IIS下时,它的put错误解释如上。

web.config文件如下

i have a WCF ,ITS working properly on my laptop ,but when i put it under IIS OF my Desktop ,its put error explain above.
web.config file is as below

<configuration>
  <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.0">
	<httpRuntime maxRequestLength="1000000"  targetFramework="4.0"/>
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="LargeDataBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service name="Service" behaviorConfiguration="service_behavior">
        <endpoint address="" binding="webHttpBinding" behaviorConfiguration="web" contract="IService"/>
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="web">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="service_behavior">
          <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <protocolMapping>
      <add binding="basicHttpsBinding" scheme="https"/>
    </protocolMapping>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <!--
        To browse web app root directory during debugging, set the value below to true.
        Set to false before deployment to avoid disclosing web app folder information.
      -->
    <directoryBrowse enabled="true"/>
  </system.webServer>
</configuration>



此服务正在连接DB TO android app

ERROR IS ON BELOW line


this service is being connected DB TO android app
ERROR IS ON BELOW line

8:     <httpRuntime maxRequestLength="1000000"  targetFramework="4.0"/>
   9:   </system.web>
  10:   <system.serviceModel>

推荐答案

您好,



您在系统中遇到语法错误。你的配置的网页部分。



请尝试以下方法:

1)关闭你的编译元素

2)从httpRuntime中删除targetFramework属性



ie:

Hi,

you have syntax errors in the system.web section of your config.

Try the following:
1) Close your compilation element
2) Remove the targetFramework attribute from the httpRuntime

i.e.:
<system.web>
  <compilation debug="true" targetFramework="4.0" />
  <httpRuntime maxRequestLength="1000000" />
</system.web>





...希望它有所帮助。



... hope it helps.


这里是答案,我离开了我的一个taq,这是我面临的问题

here is the answer ,i left one of my taq open that is way i am facing that problem
<compilation debug="true" targetframework="4.0" />
   <httpruntime maxrequestlength="1000000" targetframework="4.0" />


这篇关于如何从Http错误500.19中获取 - 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆