2013-12-20 4 views
1

asp.net mvc Project를 시작했고 db Access에 대해 Nibernate를 사용하려고합니다.nhibernate nuget - 스키마를 찾을 수 없습니다.

나는 Visual Studio에서 다음과 같은 warings를 얻을 :

Could not find schema information for the element 'urn:nhibernate-configuration-2.2:hibernate-configuration'. 
Could not find schema information for the element 'urn:nhibernate-configuration-2.2:session-factory'. 
Could not find schema information for the element 'urn:nhibernate-configuration-2.2:property'. 
Could not find schema information for the attribute 'name'. 
Could not find schema information for the element 'urn:nhibernate-configuration-2.2:property'. 
Could not find schema information for the attribute 'name'. 
Could not find schema information for the element 'urn:nhibernate-configuration-2.2:property'. 
Could not find schema information for the attribute 'name'. 

내 Web.conf :

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <configSections> 
    <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /> 
    </configSections> 
.... 
    <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> 
    <session-factory> 
     <property name="dialect">NHibernate.Dialect.MySQLDialect</property> 
     <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> 
     <property name="connection.connection_string_name">MainDb</property> 
    </session-factory> 
    </hibernate-configuration> 
... 

나는 nuget를 통해 NHibernate에 설치되어 있어야합니다.

아이디어가 있으십니까? 미리 감사드립니다.

답변

4

일반적으로 무시할 수 있습니다.

원한다면 Visual Studio에서 XML 유효성 검사에 스키마를 추가 할 수 있습니다. XML 메뉴> 스키마는>

이 패키지 폴더에서

패키지 \ 자 NHibernate를 NHibernate에-configuration.xsd 선택 추가 \ lib 디렉토리 \ < .NetVersion>

지금 VS 유효성을 검사 할 수 있어야한다 귀하의 XML (web.config) 올바르게.

+1

도움 주셔서 감사합니다. – user3123036

관련 문제