Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Fábio Zamboni

erro no web config

Recommended Posts

Bom dia,

 

Alguém poderia me dizer o que esta acontecendo? Pq esta dando esse erro:

 

Erro de Servidor no Aplicativo '/'.

--------------------------------------------------------------------------------

 

Erro de configuração

Descrição: Erro durante o processamento de um arquivo de configuração necessário para o serviço desta solicitação. Examine os detalhes específicos do erro e modifique esse arquivo de configuração apropriadamente.

 

Mensagem de Erro do Analisador: Seção de configuração não reconhecida: 'connectionStrings'

 

Erro de Origem:

 

 

Linha 10: <configuration>

Linha 11: <appSettings/>

Linha 12: <connectionStrings>

Linha 13: <add name="UsersDB" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Users.mdb;Persist Security Info=True" />

Linha 14: <add name="sulbrassiteConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|sulbras.mdb"

 

 

Arquivo de Origem: E:\Clientes\sulbras\site\web.config Linha: 12

 

 

--------------------------------------------------------------------------------

Informações sobre a Versão: Microsoft .NET Framework Versão:1.1.4322.2032; Versão do ASP.NET:1.1.4322.2032

 

 

o código do web config é esse:

 

<?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>  <appSettings/>   <connectionStrings>	<add name="UsersDB" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Users.mdb;Persist Security Info=True" />	<add name="sulbrassiteConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|sulbras.mdb"	  providerName="System.Data.OleDb" />  </connectionStrings>  <system.web>	<customErrors mode="Off"/>	<!-- 			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.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.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<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.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>		<add assembly="System.ServiceProcess, 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.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>	  </assemblies>	</compilation>	<!--			The <authentication> section enables configuration 			of the security authentication mode used by 			ASP.NET to identify an incoming user. 		-->	<authentication mode="Forms">	  <forms name="FormsAuthentication" path="gerenciador" loginUrl="login.aspx" timeout="20" defaultUrl="gerenciador/default.aspx"/>	</authentication>	<!--			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>-->	   	<authorization>	  <allow users="*"/>	</authorization>	<membership defaultProvider="AccessMembershipProvider">	  <providers>		<clear/>		<add name="AccessMembershipProvider" type="AccessProvider.AccessMembershipProvider" connectionStringName="UsersDB"/>	  </providers>	</membership>	<roleManager enabled="true" defaultProvider="AccessRoleProvider">	  <providers>		<clear/>		<add name="AccessRoleProvider" type="AccessProvider.AccessRoleProvider" connectionStringName="UsersDB"/>	  </providers>	</roleManager>   </system.web>  <!--<location path="User">	<system.web>	  <authorization>		<deny users="?"/>		<allow roles="User"/>		<deny users="*"/>	  </authorization>	</system.web>  </location>-->  <location path="gerenciador">	<system.web>	  <authorization>		<deny users="?"/>		<allow roles="Admin"/>		<allow roles="AdminSite"/>		<deny users="*"/>	  </authorization>	</system.web>  </location></configuration>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.