Nicht erkannte Konfiguration Abschnitt httpHandlers Web.Config mit Microsoft Visual Web Developer 2010 Express

Ich bin in der Notwendigkeit etwas Hilfe mit einer Fehlermeldung die ich bekomme mit Microsoft Visual Web Developer 2010 Express.

Ich würde gern eine Galerie für meine Website so ich habe die NotesForGallery von codeplex. Ich habe den Verweis in das Projekt, wie man es mir sagte, auf die in der Montageanleitung. Die Anweisungen sagen Sie dann

Registrieren ThumbnailHandler im Web.Config-Datei (httpHandlers-Abschnitt):

<httpHandlers>

<add verb="*" path="ThumbnailHandler.ashx" type="NotesFor.ThumbnailHandler, NotesForGallery"/>

</httpHandlers> 

Also öffne ich die web.config-Datei in meine Lösung, die ich fügen Sie es in. Wenn ich versuche, und starten Sie die website (Klick auf den play-button in Web-Entwickler), bekomme ich die Fehlermeldung:

Nicht erkannte Konfiguration Abschnitt httpHandlers.

Die vollständige Liste der Fehler, die ich bekommen sind:

Nachricht 1 nicht finden Konnte, die Schemainformationen für das element 'httpHandlers'. C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 38 4 C:...\FatBoyFudge\
Nachricht 2 nicht finden Konnten, die Schemainformationen für das element 'hinzufügen'. C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 8 C:...\FatBoyFudge\
Nachricht 3 nicht finden Konnte-schema-Informationen, die für das Attribut 'verb'. C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 12 C:...\FatBoyFudge\
Nachricht 4 nicht finden Konnte, schema-Informationen für das Attribut "Pfad". C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 21 C:...\FatBoyFudge\
Nachricht 5 nicht finden Konnte-schema-Informationen, die für das Attribut 'type'. C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 50 C:...\FatBoyFudge\
Fehler 6 nicht erkannte Konfiguration Abschnitt httpHandlers. C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 38

Warnung 7 C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Gallery.aspx: ASP.NET runtime-Fehler: nicht erkannte Konfiguration Abschnitt httpHandlers. (C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\web.config Zeile 38) C:\Documents und Einstellungen\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Gallery.aspx 1 1 C:...\FatBoyFudge\

Das Projekt, das ich schuf, war eine website, wenn das hilft jedem.

Das komplette web.config ist wie folgt:

<configuration>
    <connectionStrings>
        <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0"/>
        <authentication mode="Forms">
            <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
        </authentication>
        <membership>
            <providers>
                <clear/>
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
            </providers>
        </membership>
        <profile>
            <providers>
                <clear/>
                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
            </providers>
        </profile>
        <roleManager enabled="false">
            <providers>
                <clear/>
                <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
                <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
            </providers>
        </roleManager>
    </system.web>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>
  <httpHandlers>
      <add verb="*" path="ThumbnailHandler.ashx" type="NotesFor.ThumbnailHandler, NotesForGallery"/>
  </httpHandlers>
</configuration>

Jede Hilfe Sie ihm geben könnte mir nützlich sein würde, weil ich bin mir nicht sicher, was ich falsch mache

InformationsquelleAutor lardymonkey | 2010-05-29
Schreibe einen Kommentar