none
Erro no web.config | HTTP Error 500.19 - Internal Server Error RRS feed

  • Pergunta

  • Gostaria da ajuda de todos para este problema.

    Enviei ao servidor porta80 uma aplicação que funciona tranquilamente na Locaweb mudando apenas a String de conexão com o banco, entretanto quando tento acessar a aplicação hospedada no porta80 encontro este erro:

    Error Summary

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.


    Detailed Error Information
    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x800700b7
    Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
    Config File \\?\c:\inetpub\portobelo\web\sistemaV2\web.config
    Requested URL http://www.portobelo.adv.br:80/sistemav2
    Physical Path c:\inetpub\portobelo\web\sistemaV2
    Logon Method Not yet determined
    Logon User Not yet determined

    Config Source
       16: 			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    17: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    18: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

    Abaixo encontra-se o meu webconfig. A linha que o IIS acusa como erro é a linha em destaque.

    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
            <!-- CONFIG TINYMCE -->
            <section name="TinyMCE" type="Moxiecode.TinyMCE.ConfigHandler,Moxiecode.TinyMCE" requirePermission="false"/>
            <!-- FIM DO CONFIG TINYMCE -->
            <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>
        <!-- CONFIGURAÇÃO DO TINYMCE  -->
        <TinyMCE installPath="../admsistema/tiny_mce" mode="src">
            <!-- Default settings for all TinyMCE instances -->
            <globalSettings>
                <add key="relative_urls" value="true"/>
            </globalSettings>
            <!-- Compressor specific settings -->
            <gzipCompressor enabled="yes" diskCache="no" cachePath="E:\Sistemas.NET\SistemaAdvogaweb\tiny_mce\cache" expiresOffset="10d"/>
        </TinyMCE>
        <!-- FIM DA CONFIGURAÇÃO -->
        <connectionStrings>
            <add name="strDesenvolvimento" connectionString="**********************************************************************"/>
            <add name="strProducao" connectionString="********************************************************************"/>
            <add name="OdbcReportviewer" connectionString="Dsn=advogaweb" providerName="System.Data.Odbc"/>
        </connectionStrings>
        <system.web>
            <customErrors mode="Off"/>
            <authentication mode="Forms">
                <forms loginUrl="default.aspx" name="UserIdAutenticado" timeout="120"></forms>
            </authentication>
            <pages styleSheetTheme="">
                <tagMapping>
                    <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0"/>
                    <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0"/>
                    <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0"/>
                    <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0"/>
                    <add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0"/>
                    <add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0"/>
                </tagMapping>
                <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>
            <compilation debug="false" strict="true" explicit="true">
                <assemblies>
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
                <buildProviders>
                </buildProviders>
            </compilation>
            <httpHandlers>
                <remove path="*.asmx" verb="*"/>
                <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
                <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
                <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
                <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
                <add verb="GET,HEAD,POST" path="TinyMCE.ashx" type="Moxiecode.TinyMCE.Web.HttpHandler,Moxiecode.TinyMCE"/>
            </httpHandlers>
            <httpModules>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </httpModules>
            <!-- <customErrors mode="RemoteOnly" defaultRedirect="~/admsistema/erro.aspx"/> -->
            <globalization enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-1" responseHeaderEncoding="utf-8" resourceProviderFactoryType="string" enableBestFitResponseEncoding="true" culture="pt-BR" uiCulture="pt-BR"></globalization>
            <siteMap defaultProvider="Advogado" enabled="true">
                <providers>
                    <add name="Advogado" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Advogado.SiteMap"/>
                    <add name="Administrador" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Administrador.SiteMap"/>
                    <add name="Secretaria" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Secretaria.SiteMap"/>
                    <add name="Socio" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Socios.SiteMap"/>
                    <add name="Estagiario" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Estagiario.SiteMap"/>
                    <add name="Cliente" type="System.Web.XmlSiteMapProvider" siteMapFile="~/admsistema/Cliente.SiteMap"/>
                </providers>
            </siteMap>
        </system.web>
        <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"/><remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
                <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>
            <!--<defaultDocument>
          <files>
            <clear/>
            <add value="default.aspx"/>
            <add value="Default.htm"/>
            <add value="Default.asp"/>
            <add value="index.htm"/>
            <add value="index.html"/>
            <add value="iisstart.htm"/>
          </files>
        </defaultDocument>-->
        </system.webServer>
        <appSettings>
            <add key="StrPostgreSQL" value="strProducao"/>
            <add key="delaySMS" value="60"/>
            <add key="idEscritorio" value="1"/>
            <add key="StrLog" value="~/admsistema/logadvogaweb.xml"/>
            <add key="var_str_direscritorio" value="~/admsistema/escritorios"/>
            <add key="var_str_smtp" value="**************"/>
            <add key="var_str_emailsistema" value="**************************"/>
            <add key="StrSenhaEmailSistema" value="************
            <add key="StrSenhaClienteWebService" value="*******************************"/>
            <add key="int_porta_smtp" value="***
            <add key="StrEmailPadraoCliente" value="**************************"/>
            <add key="quantidadeUsuarios" value="0"/>
            <add key="intQuantidadeDiasPrazos" value="7"/>
            <add key="StrChaveSMS" value="******"/>
            <add key="intQuantidadeSMS" value="0"/>
            <add key="var_str_titulo" value="Advogaweb | Seu software jurídico on-line. | Porto Belo e Advogados"/>
            <add key="var_str_url" value="http://sistema.advogaweb.com.br"/>
            <add key="var_str_imagem" value="~/img/NovaLogo.jpg"/>
            <add key="var_str_linkblog" value="****************************"/>
            <add key="var_str_urlconfirmacadastro" value="**********************************************************"/>
            <add key="WebServiceEmail.wsemail" value="****************************************************"/>
            <add key="WsCMS.wspgcliente" value="********************************************************"/>
            <add key="WsAutoCompletar.WsAutocomplet" value="******************************************************"/>
            <add key="wcfServicoEmail.servicoEmail" value="*********************************************************"/>
            <add key="advogawebSMS.servicoHumanSMS" value="*******************************************"/>
            <add key="wsJQuery.servicosjQuery" value="******************************************************************"/>
        </appSettings>
        <location path="admsistema">
            <system.web>
                <authorization>
                    <allow users="*"/>
                    <deny users="?"/>
                </authorization>
                <pages theme="padrao"/>
            </system.web>
        </location>
        <location path="administrador">
            <system.web>
                <authorization>
                    <allow users="2"/>
                    <deny users="?"/>
                </authorization>
                <pages theme="padrao"/>
            </system.web>
        </location>
        <system.codedom>
                <compilers>
                    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="WarnAsError" value="false"/></compiler>
                    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="OptionInfer" value="true"/>
                        <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom>
        <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>


    Guilherme Carvalho
    segunda-feira, 23 de novembro de 2009 10:37

Respostas

Todas as Respostas

  • Apague essa linha ela está duplicada
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    segunda-feira, 23 de novembro de 2009 10:52
    Moderador
  • Após remover as linhas duplicadas o erro mudou para isto

    Server Error in '/sistemaV2' Application.

    The current identity (WEB3\iusr_portobelo) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    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: The current identity (WEB3\iusr_portobelo) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): The current identity (WEB3\iusr_portobelo) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +8913774
    System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +152

    [HttpException (0x80004005): The current identity (WEB3\iusr_portobelo) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8886319
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259


    Version Information:  Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053


    Notei que a versão do Frmaework está apontando para 2.0.50727.3053 esta versão corresponde à versão 3.5 do .NET?

    Guilherme Carvalho
    segunda-feira, 23 de novembro de 2009 15:29
  • Problema resolvido, era problema de permissão no provedor.

    Obrigado pela ajuda.

    Guilherme Carvalho
    segunda-feira, 23 de novembro de 2009 17:26