2009-07-14 9 views
0

Immer wenn ich meine Anwendung in IIS gehostet habe, habe ich Fehler bekommen. folgte ich habe die folgenden Schritte:IIS-Hosting-Problem

  1. InetMgr
  2. Standard-Website (rechte Maustaste)
  3. virtuelles Verzeichnis hinzufügen
  4. physischen Pfad
  5. ausgewählte Berechtigungen (lesen)
  6. browse

Dort habe ich den folgenden Fehler alle erhalten die Zeit:

Server Error in '/evals' Application. 
-------------------------------------------------------------------------------- Runtime Error 
Description: An application error occurred on the server. 
The current custom error settings for this application prevent the details of the application error from being viewed. 

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. 

This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off". <!-- Web.Config Configuration File --> 

<configuration> 
    <system.web> 
     <customErrors mode="RemoteOnly"/> 
    </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> 
    <system.web> 
     <customErrors mode="On" defaultRedirect="mycustompage.htm"/> 
    </system.web> </configuration> 

Antwort

0

Sie benötigen die Datei web.config für Ihre Anwendung zu öffnen und für das Element <customerrors> unter <system.web> aussehen. Wenn es nicht dort ist, fügen Sie es hinzu, und wenn es dort ist, stellen Sie sicher, mode="Off".

Wenn Sie die Datei speichern, wird Ihre App wiederverwendet, und Sie sollten einen Stacktrace des tatsächlichen Fehlers hinter diesem erhalten. Sie sollten von dort aus debuggen können.

0

Sie können Visual Studio auch an den Prozess w3wp anschließen, der Ihre Site hostet, um durch den Code zu gehen ...