2012-08-22 4 views
1

안녕하십니까, IIS를 통해 내 웹 사이트를 게시 할 때 아래에서 볼 수있는 것처럼이 오류 코드가 표시됩니다. 나 좀 도와 줄 수있어? IIS에서 웹 사이트 게시 오류

Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. 

    Source Error: 


    Line 27:  </assemblies> 
    Line 28:  </compilation> 
    Line 29:  <authentication mode="Forms"> 
    Line 30:  <forms loginUrl="~/Account/LogOn" timeout="2880" /> 
    Line 31:  </authentication> 


    Source File: C:\Users\furkan\Desktop\WebCity\webcity\web.config Line: 29 

그때 나는 응용 프로그램 내 루트 사전을 변환하지만 난 당신이 어딘가에 서브 디렉토리에 여러 web.configs이있는 경우

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. 

Source Error: 


Line 17: <system.web> 
Line 18:  <httpRuntime requestValidationMode="2.0" /> 
Line 19:  <compilation debug="true" targetFramework="4.0"> 
Line 20:  <assemblies> 
Line 21:   <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 


Source File: C:\Users\furkan\Desktop\WebCity\WebCity\web.config Line: 19 
+0

이 지금은 다른 문제이다 설치해야합니다. 첫 번째 문제는 귀하의 사이트가 애플리케이션이 아니라는 것입니다. 이제 Asp.Net 4.0이 설치되어 있지 않거나 Asp.Net 2.0을 사용하도록 IIS에 응용 프로그램이 구성되어 있습니다. 내 대답을 편집 할게. – JcFx

답변

1

에게 대답을 설명
링크이었다이 : 이것은 일반적으로 당신이 응용 프로그램으로 당신의 웹 사이트를위한 디렉토리를 구성하지 않은 의미

. IIS 관리자를 열고 웹 사이트의 루트 디렉터리 (web.config 위치)를 찾아 마우스 오른쪽 단추로 클릭하고 "응용 프로그램으로 변환"을 선택하십시오.

새로운 문제는 .NET 버전의 문제입니다. asp.net 4.0이 설치되어 있지 않거나 잘못된 프레임 워크를 사용하도록 응용 프로그램 풀을 설정했습니다. 아마도 후자 일 것이므로 사이트의 고급 설정으로 이동하여 응용 프로그램 풀 설정을 선택하고 ASP.NET 4.0 또는 다른 프레임 워크 4.0을 사용하는 응용 프로그램 풀을 선택하십시오. 어떤이없는 경우에, 당신은 .NET 4.0

Choosing an app pool:

+0

루트 디렉토리를 변환했지만 오류가 발생했습니다. 내 질문을 편집하게됩니다. –

+0

대답이 업데이트되었습니다. – JcFx

+0

대단히 감사합니다. –

0

당신은 확인 했나요이 오류가? 첫 번째 문제에 문제 here