你是否缺少global.asax.cs中的using指令或程序集引用? [英] are you missing a using directive or an assembly reference in global.asax.cs

查看:78
本文介绍了你是否缺少global.asax.cs中的using指令或程序集引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



需要你的想法和帮助,



我的项目在当地运行良好,但在部署UAT后,我收到Global.asax.cs文件中的错误,现在它还没有在我的本地运行。



Global.asax.cs中的错误消息行< br $>
====================================



AppConfigs.SenderName = Properties.Settings.Default。 SenderName ;


当我将鼠标移到SenderName附近时
它显示如下,



'myproject.Properties.Settings'不包含'SenderName'的定义,也没有扩展方法'SenderName'接受第一个可以找到类型为'myproject.Properties.Settings'的参数(你是否缺少using指令或汇编引用?)



i不知道哪里我做错了?如何解决?



希望我能尽快得到解决方案。



谢谢大家

renga

Hi friends,

need your ideas and help,

My project locally run fine, but after UAT deployment i receive error in Global.asax.cs file, also now its not running in my local.

Error message line in Global.asax.cs
====================================

AppConfigs.SenderName = Properties.Settings.Default.SenderName;

when i mouse over near SenderName its showing like this,

'myproject.Properties.Settings' does not contain a definition for 'SenderName' and no extension method 'SenderName' accepting a first argument of type 'myproject.Properties.Settings' could be found (are you missing a using directive or an assembly reference?)

i don't know where i did wrong? how to solve it?

Hope i will get solution soon.

Thanks all
renga

推荐答案

确保设置文件中的 SenderName 可用,如果密钥不存在,尝试添加相同,构建一次并检查它。
Make sure that the SenderName is available in the Settings file, if the Key is not present, try adding the same, build it once and check it.


这篇关于你是否缺少global.asax.cs中的using指令或程序集引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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