System.Configuration.ConfigurationManager 클래스를 찾기 위해 Visual Studio 2005를 가져올 수 없습니다. 나는 절대적으로, 긍정적으로 가 프로젝트에 System.Configuration에 대한 참조를 가지고는 바로 프로젝트에 확실히 할ConfigurationManager에 대한 참조를 가져올 수 없습니다.
using System.Configuration;
...
x = ConfigurationSettings.AppSettings["MySetting"]
// The name 'ConfigurationManager' does not exist in the current context
x = System.Configuration.ConfigurationManager.AppSettings["MySetting"]
// The type or namespace name 'ConfigurationManager' does not exist in the
// namespace 'System.Configuration' (are you missing an assembly reference?)
: 여기에 코드입니다. DLL은 버전 2.0.0.0이고 런타임 버전은 2.0.50727입니다. 다른 모든 DLL과 동일합니다. 참조를 제거하고 다시 추가하려고했습니다. 한 가지 이상한 점은 프로젝트의 References '폴더'에 표시 될 때 'System.configuration'- 소문자 'c'로 표시된다는 것입니다.
Visual Studio는 더 이상 사용되지 않는다는 경고 외에도 System.Configuration.ConfigurationSettings 클래스를 찾을 수 있습니다. 프로젝트는 웹 프로젝트이며 코드는 WebControl의 코드 숨김에 있습니다.
아이디어가 어떻게되고 있습니까?
제안 해 주셔서 감사합니다. .NET 런타임은 설치된 계정에 충분한 권한이 없으므로 엉망이되었습니다. '신'계정으로 전체를 다시 설치하면 문제가 해결되었습니다. 엄청 이상해. – TallGuy