2016-06-21 7 views
9

ASP.Net Core Uygulamamı IIS Server v7.5 kullanarak başlatmaya çalıştığımda aşağıdaki hatayı alıyorum. Web sitesini (Visual Studio'da Dosya Sistemi seçeneği) belirli bir dizine başarıyla yayınladım. Approot/web.cmd dosyasından ince başlatır. Ben IIS sunucusundaki o kadar kanca ve wwwroot klasörüne işaret çalıştığınızda Ama şu hatayı alıyorum: IIS Server & ASP.Net Core - sayfasına erişilemiyor çünkü sayfa için ilgili yapılandırma verileri geçersiz

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

Aşağıda ben ne biri çalışmış herhangi denedik iki farklı web.config dosyalarıdır. IIS içinde Yapılandırma Düzenleyicisi'ne girmeye çalıştığımda da belirsiz bir hata alıyorum. Herhangi bir yardım büyük takdir edilecektir!

<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. Bu benim için çalıştı aynı hatayı

<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

herkes? Herhangi biri, IIS kullanarak çalışan bir örnek web.config dosyası sağlayabilir mi? Büyük ölçüde takdir olurdu! – andre

+0

Henüz cevap yok mu? Bu hayal kırıklığı yaratıyor. –

+0

benim için aynı hata, ama sadece bir ipucu, benim windows 10 makinede iyi çalışıyor, ancak aynı kesin dosyalar, Win Server 2013 R2 üzerinde dağıtılan, yukarıdaki hatayla sonuçlanır –

cevap

4

-gets, dosyayı silin: project.lock.json ve dotnet restorerestart visual studio çalıştırın.

17

Bu hatayı aldığımı düşünüyorum. Yüklemedi instructions like this one'da açıklandığı gibi .NET Core Windows Server Barındırma paketini yükleyin. Bu Modülü yükledikten sonra uygulamam sunuldu (yani 500 hata yok).

Jørgen zaten OP şu yorumlarda bulunuyor @ Anlıyorum, bu yüzden kredi alır:

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

İlgili konular