如何添加程序集引用 [英] How to Add assembly reference

查看:121
本文介绍了如何添加程序集引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在web.config文件中添加连接字符串。

现在我尝试在应用程序(类文件)中使用连接字符串,然后它会给出以下错误。

DBConnectionString不是in beliclic。



错误1找不到类型或命名空间名称DBConnectionString(您是否缺少using指令或程序集引用?)

Hi I am adding connection string in web.config file.
now i am trying to use connection string in application(class file)then it will give following error.
DBConnectionString is not coming in inthelicence.

Error 1 The type or namespace name 'DBConnectionString' could not be found (are you missing a using directive or an assembly reference?)

推荐答案

您好,



请通过以下链接,他们可以帮助您。

如何从C#中的App.Config获取连接字符串 [ ^ ]

http://stackoverflow.com/questions/5316957/use-connectionstring-from-web-config-in-source-code-file [ ^ ]



Ho pe有帮助!!



问候,

Praneet
Hi,

Please the following links, they may help you.
How to get Connection String from App.Config in C#[^]
http://stackoverflow.com/questions/5316957/use-connectionstring-from-web-config-in-source-code-file[^]

Hope this helps !!

Regards,
Praneet


这篇关于如何添加程序集引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆