布置网站报错,解决办法Compiler Error Message: CS0002: Unable to load message string from resources.
来源:互联网 发布:javascript推箱子游戏 编辑:程序博客网 时间:2024/05/16 08:57
报错如下
Server Error in '/' Application.Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0002: Unable to load message string from resources.Source Error:[No relevant source lines]Source File: Line: 0
在你设置了文件夹权限、重装.net4.0之后,如果还报错,可以阅读本文进行参考
新建空网站,添加一个空的aspx页面,放到服务器上。看aspx页面是否可以运行。
如果可以
说明环境还能凑活用。
将网站源码全部考到服务器上
包括解决方案中其他工具类项目
这时在运行一个简单的aspx页面,看是否可以运行。
今天发现一个新的问题导致上述这个
在app_code下
public static string GaoDeKey { get { return ConfigurationSettings.AppSettings["XXXX"]; } }
经过测试,应该是这端代码引起了问题。
其中
ConfigurationSettings.AppSettings已过时
应该是 已过时的东西会引起类似的报错产生上述问题。
解决办法:
将过时的方法换成这个。
System.Configuration.ConfigurationManager.AppSettings["XXX"]
0 0
- 布置网站报错,解决办法Compiler Error Message: CS0002: Unable to load message string from resources.
- Compiler Error Message: CS0002: Unable to load message string from resources.
- Compiler Error Message: CS0002: Unable to load message string from resources.
- 部署打开文件报错 Compiler Error Message: CS0433:
- 报错ERROR MESSAGE
- 远程登录mysql,报错:message from server: "Host is not allowed to connect to this MySQL server"解决办法
- Compiler Error Message: CS1513: } expected
- Solution to Error Message: "Unable to start debugging the webserver"
- Gtk-Message: Failed to load module “overlay-scrollbar”的解决办法
- 如何解决Unable to parse template "Interface"Error Message;
- myeclips报错:!MESSAGE Unhandled event loop exception !STACK 0 java.lang.OutOfMemoryError: unable to cr
- How to capture error message raised from FM inside
- Compiler Error Message错误,常见错误!
- 解决Compiler Error Message: CS0016拒绝访问
- 解决Compiler Error Message: CS0016拒绝访问
- 解决Compiler Error Message: CS0016拒绝访问
- emulator: ERROR: Unable to load VM from snapshot.解决方法
- emulator:ERROR:Unable to load VM from snapshot.
- 栈的应用 — 逆波兰记法
- 内存寻址一(分段)
- CMO秘笈:不能忽视的6大品牌策略
- js 混淆加密/解密
- MFC快捷键
- 布置网站报错,解决办法Compiler Error Message: CS0002: Unable to load message string from resources.
- HDU 1051 Wooden Sticks(贪心)
- NodeJS入门
- 多个文件合并,去除文件中的冗余信息
- codeforces 425C Sereja and Two Sequences DP
- 将对象作为参数传递
- 栈的应用 — 平衡符号
- 为什么构造函数不能使虚函数
- Unit9_problem1-复数大排练