Database connection string in Asp.net LINQ

Source: Internet
Author: User

I used a three-tier structure for the project. I put the LINQ ing file to the Dal layer, and the ing file is automatically generated by vs2008. It has been normal on the original machine and has no problem at all, when ProgramWhen I moved to another machine, the situation changed and I couldn't connect to the database. This problem has been a problem for several days and I changed the app under Dal. config, also changed the web under the web. the error timeout expired is reported as soon as the database is connected. The problem may take several days, finally, we can find from the LINQ ing file of LINQ that the original database connection string is always the setting under properties called. setting, locate the problem, modify the connection string, and the problem will be solved immediately.

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.