2012-12-13 3 views

답변

1

게터

입니다. 그것은 작동합니다. app.config에 대소 문자를 구별하기 만하면됩니다. 태그 연결 문자열은 소문자로 시작해야합니다.
+0

감사 :

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ...DAL.get_ConnectionString() 

이것은 당신이 make Fit Sharp aware of your App.config file 필요 거라고 생각

get{ var result = ConfigurationManager.ConnectionStrings["CN1"].ConnectionString; if (String.IsNullOrEmpty(result)) throw new NoNullAllowedException("Connection string does not exist"); return result; } 

Why ConfigurationManager is not initialized?

How to configure Fitnesse for testing DAL?

Thanks for any advice