小编roz*_*ze 的帖子

WebConfigurationManager

我正在使用C#2010.由于此错误,我的网站无法运行:

当前上下文中不存在名称"WebConfigrationManager".

虽然我已经包含了using System.Web.Configuration;,但错误指向的代码行是这样的:

String connectionString = WebConfigrationManager.ConnectionStrings["costr"].ConnectionString;
Run Code Online (Sandbox Code Playgroud)

c# asp.net configuration

1
推荐指数
2
解决办法
1万
查看次数

标签 统计

asp.net ×1

c# ×1

configuration ×1