2016-06-21 27 views
9

Viene visualizzato il messaggio di errore seguente quando si tenta di avviare la app ASP.Net Core utilizzando IIS Server v7.5. Ho pubblicato il sito Web (opzione File System in Visual Studio) in una directory specifica. Si avvia correttamente dal file approot/web.cmd. Ma quando provo a collegarlo al server IIS e puntarlo alla cartella wwwroot, ottengo il seguente errore:Server IIS e nucleo ASP.Net: non è possibile accedere alla pagina perché i relativi dati di configurazione per la pagina non sono validi

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

  • Detailed Error Information
  • Module IIS Web Core
  • Notification Unknown
  • Handler Not yet determined
  • Error Code 0x8007000d
  • Config Error
  • Config File \?\D:\WebDevelopment\UAT\creativeNamePROD\wwwroot\web.config
  • Requested URL http://10.2.177.226:59/
  • Physical Path
  • Logon Method Not yet determined
  • Logon User Not yet determined
  • Failed Request Tracing Log Directory

Qui di seguito sono due diversi file web.config ho provato qualsiasi nessuno ha funzionato. Quando provo ad accedere a Configuration Editor in IIS, ottengo anche un errore non chiaro. Qualsiasi aiuto sarebbe molto apprezzato!!!

<configuration> 
<system.web> 
    <httpRuntime maxQueryStringLength="64768" maxUrlLength="65536" /> 
</system.web> 
<system.webServer> 
<security> 
    <requestFiltering> 
    <requestLimits maxQueryString="64768" /> 
    </requestFiltering> 
</security> 
<handlers> 
    <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> 
</handlers> 
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform> 
</system.webServer> 
</configuration> 

web.config # 2 -gets lo stesso errore

<configuration> 
    <system.webServer> 
    <handlers> 
     <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> 
    </handlers> 
    <httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform> 
    </system.webServer> 
</configuration> 
+0

Chiunque? Qualcuno può fornire un file web.config di esempio che funzioni per loro utilizzando IIS? Sarebbe molto apprezzato !!! – andre

+0

Nessuna risposta? Questo è deludente. –

+0

stesso errore per me, ma solo un suggerimento, sul mio Windows 10 macchina funziona bene, ma gli stessi file esatti, distribuiti su Win Server 2013 R2, risultati sopra l'errore –

risposta

4

Questo ha funzionato per me, cancellare il file: project.lock.json ed eseguire dotnet restore, restart visual studio.

17

Credo di aver ricevuto questo errore. Non ho installato Installa il pacchetto di hosting di Windows Server Windows Core, come descritto in instructions like this one. Dopo aver installato quel modulo, la mia app è stata pubblicata (cioè nessun errore 500).

vedo @ Jørgen fatto questo commento su OP già, così ottiene credito:

Did you install the .NET Core Windows Server Hosting bundle? This is needed for IIS to work as a reverse proxy for the .net core libraries. You'll find the link in this article: docs.microsoft.com/en-us/aspnet/core/publishing/iis I had the same problem before installing this on my dev machine. – Jørgen Tvedt Mar 28 at 6:31

Problemi correlati