正文
asp.net怎样发现代码运行错误,aspnet application
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
asp.net代码运行错误!高手帮忙啊!
1、首先找到IIS。并双击打开;如下图所示 IIS打开效果如下:点击加号图标:展开列表。
2、进入“C:/Windows/ServiceProfiles/NetworkService/AppData/Local”(如果进入C:/Windows/ServiceProfiles/NetworkService里面没有AppData就直接再地址栏输入)。
3、首先查询什么地方调用了未找到的方法,然后确定是否导入了正确的命名空间,添加了必要的引用,最后重新生成再运行。添加断点调试,在哪行出错,把图发上来。
4、在使用VS2003开发 ASP.NET程序时候 有时候操作 SqlConnection对象的Open()方法时候会出现 未将对象引用设置到对象的实例。说明: 执行当前 Web 请求期间,出现未处理的异常。
5、使用Select语句还可以从Excel文件里查询记录,我还真不知道。报这个异常说明你的OleDbCommand对象没有创建成功,objCommand值为null。
编译asp.net在IIS运行错误
注册.NET。经过以上两步如果依然出现500错误,请仔细回忆一下,是不是先安装了vs,然后才开启的IIS服务,这样会导致IIS中的.NET注册失败,虽然IIS中可以看到,但并未注册,所以会导致500错误。
原因:配置问题。首先找到IIS。并双击打开;如下图所示 IIS打开效果如下:点击加号图标:展开列表。
bin文件夹是你的网站经过编译后才出现的,你不生成是看不见得,只要是经过编译后都会有bin文件夹的。
如何去查询asp.net语法的错误!
项目名右键添加新项全局应用程序类 就行了。 如果已经添加了,则可能找不到这个全局应用程序类的选项。
首先找到IIS。并双击打开;如下图所示 IIS打开效果如下:点击加号图标:展开列表。
有可能是contents变量包含有单引号,导致生成的sql语句中字符串没有按预期结束,从而导致语法错误。放个断点,看看sqlstr的值是什么。
我觉得应该是你要添加的内容中含有ASP.NET语法的关键字。在执行“向数据库中添加数据”的过程中,系统可能将你文本域中的“关键字”进行编译,从而导致错误出现。建议你在将文本域中的内容写入时先进行处理。
asp.net代码运行错误,高手再来帮忙啊!
首先找到IIS。并双击打开;如下图所示 IIS打开效果如下:点击加号图标:展开列表。
为 SQL 启用远程连接 单击“开始”,依次指向“程序”、“Microsoft SQL Server 2005”和“配置工具”,然后单击“SQL Server 外围应用配置器”。
在使用VS2003开发 ASP.NET程序时候 有时候操作 SqlConnection对象的Open()方法时候会出现 未将对象引用设置到对象的实例。说明: 执行当前 Web 请求期间,出现未处理的异常。
关于asp.net怎样发现代码运行错误和aspnet application的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。