Web.Config调用了其他目录的数据库。
----------------------------------------------相关代码为:
<appSettings>
<add key= "constr " value= "provider=microsoft.jet.oledb.4.0; data source= "/>
<add key= "connectionstring " value= "server=127.0.0.1;database=call;uid=sa;pwd=123456; "/>
<add key= "blogbd " value= "D:\oblog4\data\oblog4.aspx "/>
</appSettings>
==================================================================
数据库有足够的权限。sql所有者为ODB;OBLOG的数据库EVERYONE可写。
请问如何修正这个错误???
===============================================出错信息如下:
Server Error in '/ ' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
------解决方案--------------------------------------------------------
未将对象引用到实例
------解决方案--------------------------------------------------------
字符串对吗?
------解决方案--------------------------------------------------------
未将对象引用到实例
帖相关调用的代码
------解决方案--------------------------------------------------------
未将对象引用到实例
帖代码出来
------解决方案--------------------------------------------------------
后台代码!前台的要来干什么。要.cs的。
------解决方案--------------------------------------------------------
是你的后台代码有错
需要你贴出后台代码来
VS中 将工程 设置 asp.net允许调试 设置为true
web.config中
<compilation
defaultLanguage= "c# "
debug= "true "
/>
用dubug模式 执行 程序
看是那一行出的错..
------解决方案--------------------------------------------------------
未将对象引用到实例的错误
有东西没实例吧