不存在在我的程序的頂部我有以下幾點:C#的AppSettings給錯誤:「ConfigurationManager中」這個名字在目前情況下
using System.Configuration;
在我的代碼,我有以下幾點:
int CompanyID = Convert.ToInt32(ConfigurationManager.AppSettings["CompanyId"]
.ToString());
我收到以下錯誤雖然:
The name 'ConfigurationManager' does not exist in the current context
我不知道我錯過了什麼。
你很可能已經[google搜索(HTTP:// WWW .google.com /查詢q =的+名稱+ 'ConfigurationManager中' +確實+未+存在+ IN +的+電流+上下文&水溶液= F&OQ =的+名稱+ 'ConfigurationManager中' +不會+未+存在+ IN +的離子電流+ context&sugexp = chrome,mod = 11&sourceid = chrome&ie = UTF-8)你自己就是一個答案。 :) –