Occurs when a data source is configured under ASP.net: An object reference is not set to an instance of an object. _ Practical Tips

Source: Internet
Author: User
Open vs2005 or VS2008,
Create a new Web site, copy the acccess database to App_Data,
Drag "AccessDataSource" into the window,
Configure Data Source ...
Select Database
Next
The SQL statement is empty, point "Query Builder ..."
Pop:

---------------------------
Microsoft Visual Studio
---------------------------
An object reference is not set to an instance of an object.
---------------------------
Are you sure
---------------------------

If I don't click "Query Builder ..." instead, write the SQL statement directly, and the next step, complete, drag a GridView to bind the AccessDataSource1 above, and it works.


--------------------------------------------------------------------------------

All the methods have been tried, no, and then all the services of the system are set to Automatic, then start, cmd Half-day, and then try, OK, so it seems to be the system which service I give off, and then restore the system found no dynamic service, also normal, do not know for you, such as the person who know, please advise.

I felt like it was probably the first time the system was going to run, and then it didn't work out, and I stopped the service from his first run, so he didn't make it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.