Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 13
  1. #1
    Utente di HTML.it L'avatar di Fra
    Registrato dal
    Oct 1999
    Messaggi
    221

    Prima pagina ASP.NET : Server Error

    Oggi ho iniziato a vedermi ASP.NET
    Sono così bravo che non riesco neanche a far funzionare una stupidissima pagina .aspx !!!!

    Ho istallato il framework .NET 1.1;
    Ho avviato IIS;
    Ho creato una pagina .aspx (anche vuota);
    Ho richiamato la pagina in localhost;

    Ma mi continua a dare questo errore :

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Access denied to 'c:\inetpub\wwwroot\adomd\web.config'. Failed to start monitoring file changes.
    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: Access denied to 'c:\inetpub\wwwroot\adomd\web.config'. Failed to start monitoring file changes.

    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 (0x80070005): Access denied to 'c:\inetpub\wwwroot\adomd\web.config'. Failed to start monitoring file changes.]
    System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
    System.Web.DirectoryMonitor.StartMonitoringFile(St ring file, FileChangeEventHandler callback, String alias) +76
    System.Web.FileChangesMonitor.StartMonitoringFile( String alias, FileChangeEventHandler callback) +322
    System.Web.Configuration.HttpConfigurationSystem.A ddFileDependency(String file) +139
    System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String reqPath, IHttpMapPath configmap) +503
    System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath, IHttpMapPath configmap) +434
    System.Web.HttpContext.GetCompleteConfig() +49
    System.Web.HttpContext.GetConfig(String name) +195
    System.Web.CustomErrors.GetSettings(HttpContext context, Boolean canThrow) +20
    System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow) +39
    System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext context, Exception e) +486




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


    Ricercando nel forum e in rete nn ho trovato niente a riguardo. Sembra che questo problema l'abbia riscontrato solo io



    Mi aiutate?

    Grazie

    ------------------
    FORSE ERA MEGLIO CHE ME NE STAVO AL MARE !!!
    SO : Windows XP - Linux Gentoo
    Java - Visual Basic - C++

  2. #2
    ma lo stai provando in locale?

    perchè se è cosi è strano, una volta installato IIS, il framework e le relative patch non dovresti avere problemi, forse hai scritto un web.config sbagliato, prova ad usare questo:

    codice:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        
      <system.web>
    
        <!--  DYNAMIC DEBUG COMPILATION
              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="vb" debug="true" />
    
        <!--  CUSTOM ERROR MESSAGES
              Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
              Add <error> tags for each of the errors you want to handle.
        -->
        <customErrors mode="RemoteOnly" />
    
        <!--  AUTHENTICATION 
              This section sets the authentication policies of the application. Possible modes are "Windows", 
              "Forms", "Passport" and "None"
        -->
        <authentication mode="Windows" /> 
    
    
        <!--  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.
        -->
        <authorization>
            <allow users="*" /> 
    
                <!--  <allow     users="[comma separated list of users]"
                                 roles="[comma separated list of roles]"/>
                      <deny      users="[comma separated list of users]"
                                 roles="[comma separated list of roles]"/>
                -->
        </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>

  3. #3
    Utente di HTML.it L'avatar di Fra
    Registrato dal
    Oct 1999
    Messaggi
    221
    Sto 'lavorando' il locare (o meglio vorrei lavorare in locale).
    Cmq nn ho cambiato nulla delle impostazioni ho solo installato il framework 1.1 . La versione di IIS è la 5

    Ma dove dovrei metterlo il web.config ?

    (Grazie Daniele x la risposta, di questi tempi è difficile riceverne ... )
    SO : Windows XP - Linux Gentoo
    Java - Visual Basic - C++

  4. #4
    il file web.config lo devi mettere nella root del sito, cioè dove girano tutti i file del sito.

  5. #5
    Utente di HTML.it L'avatar di Fra
    Registrato dal
    Oct 1999
    Messaggi
    221
    Quindi per ogni sito che sviluppo ho bisogno di inserire web.config?
    Ma quali sono le funzioni di questo file?
    SO : Windows XP - Linux Gentoo
    Java - Visual Basic - C++

  6. #6

  7. #7
    Utente di HTML.it L'avatar di Fra
    Registrato dal
    Oct 1999
    Messaggi
    221
    Continua a darmi lo stesso errore (anche dopo aver messo web.config nella root del sito).

    Ho l'impressione che dipenda da IIS ... forse bisogna impostare qualcosa di particolare?

    P.S.
    Il SO è Windows 2000 Server
    SO : Windows XP - Linux Gentoo
    Java - Visual Basic - C++

  8. #8
    boh cmq se tu non hai toccato nulla, io it consiglio di togliere IIS, il .NET e reinstallarlo di nuovo.

    non so cosa potrebbe essere.


    I permessi sulle directory sono giusti? anche se noncredo che sia una problema di permessi

  9. #9
    zampa dice:
    ma il web.config lo hai messo qua?
    'c:\inetpub\wwwroot\adomd\web.config'

  10. #10
    Utente di HTML.it L'avatar di Fra
    Registrato dal
    Oct 1999
    Messaggi
    221
    SI
    SO : Windows XP - Linux Gentoo
    Java - Visual Basic - C++

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.