Possible Duplicate:
Razor-based view doesn't see referenced assemblies컴파일러 오류 메시지 : CS0103 : 이름 '데이터베이스'는 현재 컨텍스트
에 존재하지 않는 나는 신참이 ASP.net 에서 나는 데이터베이스에 연결을 시도하고 그리고 난이 오류
점점 계속**Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Database' does not exist in the current context
Source Error:
Line 1: @{ Line 2: var db = Database.Open("demo"); ' Line 3:
Line 4:Source File: c:\Users\Ayoya\Documents\My Web Sites\demo\Page.cshtml
Line: 2 **
아무도 나에게 무슨 문제가 있다고 말할 수 있습니까? 감사합니다.
나는 W3schools를 따르고 있으며, 그들이 WebMatrix에있는 것을 처음 보았을 때 –
을 정확히 수행했습니다. WebMatrix에는 올바른 DLL이 포함되어 있습니다. 다른 환경을 사용하는 경우 DLL에 대한 참조가 없을 수도 있습니다. – codingbiz
예 WebMatrix를 사용하고 있습니까 DLL을 정확히 포함해야합니까? –