2016-06-21 6 views
9

IIS 서버 v7.5를 사용하여 ASP.Net 핵심 응용 프로그램을 시작하려고하면 다음 오류가 발생합니다. 특정 디렉토리에 웹 사이트 (Visual Studio의 파일 시스템 옵션)를 성공적으로 게시했습니다. approot/web.cmd 파일에서 잘 실행됩니다. 나는 IIS 서버로를 연결하고 wwwroot 폴더를 가리려고 할 때, 나는 다음과 같은 오류가 발생합니다 : 페이지의 관련 구성 데이터가 유효하지 않기 때문에 IIS 서버 및 ASP.Net 코어 - 페이지에 액세스 할 수 없습니다.

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

다음은 내가 어느 하나 일 모든 노력 서로 다른 두 가지의 web.config 파일입니다. IIS 내의 Configuration Editor로 들어가려고 할 때 불분명 한 오류가 발생합니다. 어떤 도움을 주시면 대단히 감사하겠습니다 !!!

<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 이것은 나를 위해 일한 같은 오류

<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

누구를? 누구든지 IIS를 사용하여 작동하는 샘플 web.config 파일을 제공 할 수 있습니까? 대단히 감사하겠습니다! – andre

+0

아직 답변이 없습니까? 이것은 실망 스럽다. –

+0

나를 위해 동일한 오류가 있지만 내 Windows 10 컴퓨터에 그냥 힌트,하지만 정확히 동일한 파일, Win Server 2013 R2에 배포 된 위의 오류가 발생합니다 –

답변

4

을 -gets, 파일을 삭제 : project.lock.json하고, dotnet restorerestart visual studio를 실행합니다.

17

나는이 오류가 발생했다고 생각합니다. 내가하지 않았다 instructions like this one에 설명 된대로 .NET 코어 Windows 서버 호스팅 번들을 설치합니다. 해당 모듈을 설치 한 후 내 앱이 게재되었습니다 (예 : 500 오류 없음).

요르겐 이미 OP에이 댓글을 만든 @ 내가 보는, 그래서 그는 신용 가져옵니다

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

관련 문제