Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 2.0 / 3.5 / 4.0
Problema nel web.config
mercoledì 20 dicembre 2006 - 17.55
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
squilibrio
Profilo
| Expert
527
messaggi | Data Invio:
mer 20 dic 2006 - 17:55
Ciao a tutti, credo di aver fatto confusione nell'integrazione degli elementi presenti in un web.config proveniente da un'applicazione web realizzata in .NET 1.1 all'interno di un web.config di un'applicazione .NET 2.0
ottengo questo errore
Messaggio 46 Could not find schema information for the element '
http://schemas.microsoft.com/.NetConfiguration/v2.0
:configuration'. C:\Visual Studio 2005\WebSites\APP\web.config 2 2 C:\...\APP\
Dettaglio web.config
<configuration xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="DBTYPE" value="SQLSERVER"/>
<add key="SQLConnString" value="Provider=sqloledb;Server=APP\SQLEXPRESS;uid=sa;pwd=PSW;Integrated Security=SSPI;"/>
<add key="SQLDBName" value="APP"/>
<!-- Database Name -->
<!-- HTML Template Files -->
<add key="SiteTemplate" value="UI\Login\Templates\SiteTemplate.htm"/>
<add key="ValidateEmailTemplate" value="UI\Login\Templates\ValidateEmailTemplate.htm"/>
<add key="ForgotPasswordEmailTemplate" value="UI\Login\Templates\ForgotPasswordEmailTemplate.htm"/>
<!-- Application Files-->
<!-- Note: HTML links to these files will need to modified in the appropriate files also -->
<add key="adminpage" value="~\UI\APP_BackOffice\Admin.aspx"/>
<add key="loginpage" value="~\UI\Login\Login.aspx"/>
<add key="securepage" value="~\UI\Login\Default.aspx"/>
<add key="signuppage" value="~\UI\Login\Signup.aspx"/>
<!-- User Group Settings -->
<add key="ADGroupName" value="Active Directory Users"/>
<!-- Encoded Links Secret Key -->
<!-- Note: If you change this key, you should regenerate
the group tags in the 'Generate HTML' page which are
embedded in the signup.aspx page.-->
<add key="EncodingSecretKey" value="12345678"/>
<!-- Return logged user to requested page -->
<add key="RefererReturn" value="true"/>
<!-- Send Mail Debug: Setting this to true will display the error message from the .NET
MailMessage object used to send emails with.
For security reasons, this option should be set to false in general usage. -->
<add key="DisplayEmailException" value="false"/>
</appSettings>
<connectionStrings>
<remove name="APP"/>
<add name="APP" connectionString="Server=APP\SQLEXPRESS;Database=APP;Trusted_Connection=true;uid=sa;pwd=PSW;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<xhtmlConformance mode="Strict"/>
<httpModules>
<add name="XhttpModule" type="XhttpModule.XhttpModule"/>
</httpModules>
<pages styleSheetTheme="APP" enableViewState="false"/>
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<compilation debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
</system.web>
</configuration>
Dove sbaglio?
GvnnRules
Profilo
| Senior Member
436
messaggi | Data Invio:
gio 28 dic 2006 - 16:35
Il problema sta nel tag configuration, attributo XMLNS. Basta che lo cancelli e tutto dovrebbe funzionare
se vuoi approffondire
http://forums.asp.net/thread/1359525.aspx
Peace
Gvnn
http://www.gvnn.it
http://www.sqlwebarchitect.org
http://blogs.dotnethell.it/gvnn/
squilibrio
Profilo
| Expert
527
messaggi | Data Invio:
ven 29 dic 2006 - 11:30
Grazie mille!!! E chi cavolo l'aveva messo
... Aggiornamento: ho letto il post nel link, colpa di VS :(
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !