Erro Web.Config

10/03/2007

0

Caro colega

Navegando pelo site Clube Delphi, percebi que você responde varias perguntas e deve ter um alto conhecimento no Delphi 2006.
Gostaria muito da sua ajuda.

Erro gerado:


Server Error in ´/HomePage´ Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition=´MachineToApplication´ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 54: -->
Line 55:
Line 56: <authentication mode=´Forms´>
Line 57: <forms name=´Empresa\WebForm3´loginUrl=´WebForm2.aspx´/>
Line 58: </authentication>


Source File: C:\WebPageASP\Empresa\web.config Line: 56


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032


O projeto esta com a seguinte estrutuara:

C:\HomePageASP
WebForm1.aspx (Home page da empresa que contem o link para o WebForm2)
WebForm2.aspx (Formulario de Login com Usuário e senha e um button1.

C:\HomePageASP\Empresa
Web.Config
WebForm3 (Pagina do menu do sistema da empresa protegido por login e senha)

Código do arquivo Web.Config:

<?xml version=´1.0´ encoding=´utf-8´ ?>
<configuration>
<system.web>

<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug=´true´ to enable ASPX debugging. Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug=´true´ to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes
more slowly, you should set this value to true only when debugging and to
false at all other times. For more information, refer to the documentation about
debugging ASP .NET files.
-->
<compilation
defaultLanguage=´c#´
debug=´true´>
<assemblies>
<!-- BORLAND DEBUG KERNEL
The httpModule Borland.DbkAsp.DbkConnModule is required for debugging under IIS.
This module may be installed in web.config or machine.config, but not both.
Move the following line outside this comment to install.
<add assembly=´Borland.dbkasp, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b0524c541232aae7´/>
-->
</assemblies>
</compilation>

<httpModules>
<!-- BORLAND DEBUG KERNEL
The httpModule Borland.DbkAsp.DbkConnModule is required for debugging under IIS.
This module may be installed in web.config or machine.config, but not both.
Move the following line outside this comment to install.
<add name=´DbgConnect´ type=´Borland.DbkAsp.DbkConnModule,Borland.dbkasp,Version=10.0.0.0, Culture=neutral, PublicKeyToken=b0524c541232aae7´/>
-->
</httpModules>

<!-- CUSTOM ERROR MESSAGES
Set customError mode values to control the display of user-friendly
error messages to users instead of error details (including a stack trace):

´On´ Always display custom (friendly) messages
´Off´ Always display detailed ASP.NET error information.
´RemoteOnly´ Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.
-->
<customErrors
mode=´RemoteOnly´
/>

<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: ´*´ mean everyone, ´?´ means anonymous
(unauthenticated) users.
-->

<authentication mode=´Forms´>
<forms name=´Empresa\WebForm3´loginUrl=´WebForm2.aspx´/>
</authentication>

<authorization>
<allow roles=´adm´ />
<deny users=´?´ />
</authorization>

<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every page within an application.
Set trace enabled=´true´ to enable application trace logging. If pageOutput=´true´, the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the ´trace.axd´ page from your web application
root.
-->
<trace
enabled=´false´
requestLimit=´10´
pageOutput=´false´
traceMode=´SortByTime´
localOnly=´true´
/>

<!-- SESSION STATE SETTINGS
By default ASP .NET uses cookies to identify which requests belong to a particular session.
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
To disable cookies, set sessionState cookieless=´true´.
-->
<sessionState
mode=´InProc´
stateConnectionString=´tcpip=127.0.0.1:42424´
sqlConnectionString=´data source=127.0.0.1;user id=sa;password=´
cookieless=´false´
timeout=´20´
/>

<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->
<globalization
requestEncoding=´utf-8´
responseEncoding=´utf-8´
/>

</system.web>

</configuration>


Desde já agradeço pela ajuda


Responder

Que tal ter acesso a um e-book gratuito que vai te ajudar muito nesse momento decisivo?

Ver ebook

Recomendado pra quem ainda não iniciou o estudos.

Eu quero
Ver ebook

Recomendado para quem está passando por dificuldades nessa etapa inicial

Eu quero

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar