2013-08-21 2 views
5

asp.net (C#은 아님)에 익숙하며 \ bin에서 .. \ Build \ debug로 출력 디렉토리를 이동하려고합니다. 빌드 속성에서이 작업을 수행하고 올바르게 빌드하여 올바른 출력 디렉터리에 저장합니다. 그러나 응용 프로그램을 실행하려고하면 다음 오류가 발생합니다.Visual Studio에서 asp.net 프로젝트의 출력 디렉토리 변경

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'MyApp.Backend.WebApiApplication'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="MyApp.Backend.WebApiApplication" Language="C#" %>

Source File: /global.asax Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045.

Visual Studio에서 웹 사이트를 호스팅하는 방식과 관련이 있습니까? 어떤 도움을 주시면 감사하겠습니다.

답변

3

그것은 asp.net이 bin 폴더에있는 웹 사이트의 dll 파일을 찾는 방식과 관련이 있습니다. 당신의 Web.config의 추가 기능에서

:

당신은 몇 가지 추가 구성을 할 필요가

<runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
    <probing privatePath="/Build/debug" /> 
    </assemblyBinding> 
</runtime> 

나는 이전 게시물에서이있어 : http://forums.asp.net/t/1303052.aspx. 그것도 확인하십시오.

+1

제안 해 주셔서 감사합니다.하지만 계속해서 같은 오류가 발생합니다. 나는 그들이 게시물에서 작동하도록 의도되었지만 실제로 작동하지 않는다고 말하고 있다고 생각합니다. – Theo

관련 문제